crosstool-ng/packages/binutils-oracle/git-43eccdca/0002-fix_to_patch_92.patch

45 lines
1.2 KiB
Diff
Raw Normal View History

diff --git a/gold/i386.cc b/gold/i386.cc
index a65f3a034df..3f1312c8640 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -1081,7 +1081,7 @@ Target_i386::record_gnu_property(
{
uint32_t val = 0;
- switch (pr_type)
+ switch ((unsigned int) pr_type)
{
case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
case elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED:
@@ -1102,7 +1102,7 @@ Target_i386::record_gnu_property(
break;
}
- switch (pr_type)
+ switch ((unsigned int) pr_type)
{
case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
this->isa_1_used_ |= val;
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 16bcffc9541..63b551957ef 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -1468,7 +1468,7 @@ Target_x86_64<size>::record_gnu_property(
{
uint32_t val = 0;
- switch (pr_type)
+ switch ((unsigned int) pr_type)
{
case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
case elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED:
@@ -1489,7 +1489,7 @@ Target_x86_64<size>::record_gnu_property(
break;
}
- switch (pr_type)
+ switch ((unsigned int) pr_type)
{
case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
this->isa_1_used_ |= val;