From: Andrew Stubbs Date: Fri, 29 Sep 2023 14:45:30 +0000 (+0100) Subject: amdgcn: silence warning X-Git-Tag: basepoints/gcc-15~5705 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb239c7f22b646873e93f8115ee992c4fb4d878a;p=thirdparty%2Fgcc.git amdgcn: silence warning gcc/ChangeLog: * config/gcn/gcn.cc (print_operand): Adjust xcode type to fix warning. --- diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc index f6cff6597031..ef3b6472a52d 100644 --- a/gcc/config/gcn/gcn.cc +++ b/gcc/config/gcn/gcn.cc @@ -6991,7 +6991,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) {