]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
x86: Correct ASM_OUTPUT_SYMBOL_REF
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Feb 2025 05:47:54 +0000 (13:47 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Feb 2025 10:28:12 +0000 (18:28 +0800)
x is not a macro argument.  It just happens to work as final.cc passes
x for 2nd argument:

final.cc:      ASM_OUTPUT_SYMBOL_REF (file, x);

PR target/118825
* config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Replace x with
SYM.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/config/i386/i386.h

index e8e528c7811bebdb500cc2f8e93c8ae65b30f29b..40b1aa4e6dfe176a2c9caa7e75d4504e37425d8a 100644 (file)
@@ -2235,7 +2235,7 @@ extern unsigned int const svr4_debugger_register_map[FIRST_PSEUDO_REGISTER];
 #define ASM_OUTPUT_SYMBOL_REF(FILE, SYM) \
   do {                                                 \
     const char *name                                   \
-      = assemble_name_resolve (XSTR (x, 0));           \
+      = assemble_name_resolve (XSTR (SYM, 0));         \
     /* In -masm=att wrap identifiers that start with $ \
        into parens.  */                                        \
     if (ASSEMBLER_DIALECT == ASM_ATT                   \