From eb239c7f22b646873e93f8115ee992c4fb4d878a Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Fri, 29 Sep 2023 15:45:30 +0100 Subject: [PATCH] amdgcn: silence warning gcc/ChangeLog: * config/gcn/gcn.cc (print_operand): Adjust xcode type to fix warning. --- gcc/config/gcn/gcn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2