From bd6a4107d8e92f87ddbbf7f0fb780e7117e5bb5c Mon Sep 17 00:00:00 2001 From: itohy Date: Sat, 6 Jul 2002 13:17:18 +0000 Subject: [PATCH] i386 uses _GLOBAL_OFFSET_TABLE_, not __GLOBAL_OFFSET_TABLE_, for GOT symbol even if on a.out compiler. Yes this is weird, but it is the traditional behavior. --- gnu/dist/toolchain/gcc/config/i386/i386.c | 9 ++------- gnu/dist/toolchain/gcc/config/i386/i386.md | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/gnu/dist/toolchain/gcc/config/i386/i386.c b/gnu/dist/toolchain/gcc/config/i386/i386.c index 0333b194c0fd..681d3064adcf 100644 --- a/gnu/dist/toolchain/gcc/config/i386/i386.c +++ b/gnu/dist/toolchain/gcc/config/i386/i386.c @@ -1725,19 +1725,14 @@ load_pic_register (do_rtl) { emit_insn (gen_prologue_get_pc (xops[0], xops[1])); emit_insn (gen_prologue_set_got (xops[0], -#ifdef YES_UNDERSCORES - gen_rtx_SYMBOL_REF (Pmode, - "$__GLOBAL_OFFSET_TABLE_"), -#else gen_rtx_SYMBOL_REF (Pmode, "$_GLOBAL_OFFSET_TABLE_"), -#endif xops[1])); } else { output_asm_insn (AS1 (call,%X1), xops); - output_asm_insn ("addl $%__GLOBAL_OFFSET_TABLE_,%0", xops); + output_asm_insn ("addl $_GLOBAL_OFFSET_TABLE_,%0", xops); pic_label_rtx = 0; } } @@ -1760,7 +1755,7 @@ load_pic_register (do_rtl) ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "L", CODE_LABEL_NUMBER (xops[1])); output_asm_insn (AS1 (pop%L0,%0), xops); - output_asm_insn ("addl $%__GLOBAL_OFFSET_TABLE_+[.-%P1],%0", xops); + output_asm_insn ("addl $_GLOBAL_OFFSET_TABLE_+[.-%P1],%0", xops); } } diff --git a/gnu/dist/toolchain/gcc/config/i386/i386.md b/gnu/dist/toolchain/gcc/config/i386/i386.md index 649c7d544ba8..186ce17c0317 100644 --- a/gnu/dist/toolchain/gcc/config/i386/i386.md +++ b/gnu/dist/toolchain/gcc/config/i386/i386.md @@ -7031,7 +7031,7 @@ byte_xor_operation: ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\", CODE_LABEL_NUMBER (operands[1])); output_asm_insn (AS1 (pop%L0,%0), operands); - output_asm_insn (\"addl $%__GLOBAL_OFFSET_TABLE_+[.-%X1],%0\", operands); + output_asm_insn (\"addl $_GLOBAL_OFFSET_TABLE_+[.-%X1],%0\", operands); RET; }" [(set_attr "memory" "none")])