aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2023-09-29 15:45:30 +0100
committerAndrew Stubbs <ams@codesourcery.com>2023-11-10 17:57:02 +0000
commit206422f6e6ce902cfbca4121b972ef3df04ab993 (patch)
tree869877de6fe8e35d17909d354fce87bd722f9a08 /gcc
parent52d6fbaaec95b8a95f9d6d7a91a3169840c748b7 (diff)
downloadgcc-206422f6e6ce902cfbca4121b972ef3df04ab993.zip
gcc-206422f6e6ce902cfbca4121b972ef3df04ab993.tar.gz
gcc-206422f6e6ce902cfbca4121b972ef3df04ab993.tar.bz2
amdgcn: silence warning
gcc/ChangeLog: * config/gcn/gcn.cc (print_operand): Adjust xcode type to fix warning. (cherry picked from commit eb239c7f22b646873e93f8115ee992c4fb4d878a)
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.omp7
-rw-r--r--gcc/config/gcn/gcn.cc2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index 9c1fbc8..029884c 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,6 +1,13 @@
2023-11-10 Andrew Stubbs <ams@codesourcery.com>
Backport from mainline:
+ Andrew Stubbs <ams@codesourcery.com>
+
+ * config/gcn/gcn.cc (print_operand): Adjust xcode type to fix warning.
+
+2023-11-10 Andrew Stubbs <ams@codesourcery.com>
+
+ Backport from mainline:
Tamar Christina <tamar.christina@arm.com>
* gensupport.cc (class conlist, add_constraints, add_attributes,
diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index 4b7f872..02964b0 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -7037,7 +7037,7 @@ print_operand_address (FILE *file, rtx mem)
void
print_operand (FILE *file, rtx x, int code)
{
- int xcode = x ? GET_CODE (x) : 0;
+ rtx_code xcode = x ? GET_CODE (x) : UNKNOWN;
bool invert = false;
switch (code)
{