[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/23424] gold doesn't build on Darwin
From: |
harryf at gmx dot com |
Subject: |
[Bug gold/23424] gold doesn't build on Darwin |
Date: |
Mon, 23 Jul 2018 20:36:22 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23424
--- Comment #4 from Harald Fernengel <harryf at gmx dot com> ---
FYI - switching to C++11 also requires the following patch, as one of the case
labels is larger than INT_MAX
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 27f273d64b..a88f534d60 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -1585,7 +1585,7 @@ Target_x86_64<size>::record_gnu_property(
{
uint32_t val = 0;
- switch (pr_type)
+ switch (unsigned(pr_type))
{
case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
case elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED:
@@ -1606,7 +1606,7 @@ Target_x86_64<size>::record_gnu_property(
break;
}
- switch (pr_type)
+ switch (unsigned(pr_type))
{
case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
this->isa_1_used_ |= val;
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/23424] New: gold doesn't build on Darwin, harryf at gmx dot com, 2018/07/17
- [Bug gold/23424] gold doesn't build on Darwin, harryf at gmx dot com, 2018/07/17
- [Bug gold/23424] gold doesn't build on Darwin, zenith432 at users dot sourceforge.net, 2018/07/17
- [Bug gold/23424] gold doesn't build on Darwin, ccoutant at gmail dot com, 2018/07/17
- [Bug gold/23424] gold doesn't build on Darwin, harryf at gmx dot com, 2018/07/22
- [Bug gold/23424] gold doesn't build on Darwin,
harryf at gmx dot com <=
- [Bug gold/23424] gold doesn't build on Darwin, zenith432 at users dot sourceforge.net, 2018/07/24