]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: silence warning
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 29 Sep 2023 14:45:30 +0000 (15:45 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 10 Nov 2023 17:57:02 +0000 (17:57 +0000)
gcc/ChangeLog:

* config/gcn/gcn.cc (print_operand): Adjust xcode type to fix warning.

(cherry picked from commit eb239c7f22b646873e93f8115ee992c4fb4d878a)

gcc/ChangeLog.omp
gcc/config/gcn/gcn.cc

index 9c1fbc89588e135d8477874c195a5567df350da0..029884c05e9e6211015a349059763693170302c2 100644 (file)
@@ -1,3 +1,10 @@
+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:
index 4b7f8725a41bfe1ef7305eb69314d7dcbdb4b876..02964b05db3351beead3b661ebaf5137feb20148 100644 (file)
@@ -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)
     {