mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 11:33:45 +08:00
x86: Silence GCC 12 warning on tc-i386.c
Silence GCC 12 warning on tc-i386.c: gas/config/tc-i386.c: In function ‘md_assemble’: gas/config/tc-i386.c:5039:16: error: too many arguments for format [-Werror=format-extra-args] 5039 | as_warn (_("only support RIP-relative address"), i.tm.name); * config/tc-i386.c (md_assemble): Print mnemonic in RIP-relative warning. * estsuite/gas/i386/x86-64-prefetchi-warn.l: Updated.
This commit is contained in:
parent
7807dfae36
commit
f2462532e2
@ -5036,7 +5036,7 @@ md_assemble (char *line)
|
||||
/* Check if IP-relative addressing requirements can be satisfied. */
|
||||
if (i.tm.cpu_flags.bitfield.cpuprefetchi
|
||||
&& !(i.base_reg && i.base_reg->reg_num == RegIP))
|
||||
as_warn (_("only support RIP-relative address"), i.tm.name);
|
||||
as_warn (_("'%s' only supports RIP-relative address"), i.tm.name);
|
||||
|
||||
/* Update operand types and check extended states. */
|
||||
for (j = 0; j < i.operands; j++)
|
||||
|
@ -1,5 +1,5 @@
|
||||
.*: Assembler messages:
|
||||
.*:[0-9]*: Warning: only support RIP-relative address
|
||||
.*:[0-9]*: Warning: only support RIP-relative address
|
||||
.*:[0-9]*: Warning: only support RIP-relative address
|
||||
.*:[0-9]*: Warning: only support RIP-relative address
|
||||
.*:[0-9]*: Warning: 'prefetchit0' only supports RIP-relative address
|
||||
.*:[0-9]*: Warning: 'prefetchit1' only supports RIP-relative address
|
||||
.*:[0-9]*: Warning: 'prefetchit0' only supports RIP-relative address
|
||||
.*:[0-9]*: Warning: 'prefetchit1' only supports RIP-relative address
|
||||
|
Loading…
Reference in New Issue
Block a user