* [committed] amdgcn: silence warning
@ 2023-10-06 13:18 Andrew Stubbs
0 siblings, 0 replies; only message in thread
From: Andrew Stubbs @ 2023-10-06 13:18 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 73 bytes --]
I've just committed this simple patch to silence an enum warning.
Andrew
[-- Attachment #2: 231006-silence-warning.patch --]
[-- Type: text/plain, Size: 520 bytes --]
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 f6cff659703..ef3b6472a52 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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-06 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-06 13:18 [committed] amdgcn: silence warning Andrew Stubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).