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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to