Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/gcc/config/i386 i386 uses _GLOBAL_OFFSET_...
details: https://anonhg.NetBSD.org/src/rev/425e771711f6
branches: trunk
changeset: 533652:425e771711f6
user: itohy <itohy%NetBSD.org@localhost>
date: Sat Jul 06 13:17:18 2002 +0000
description:
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.
diffstat:
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(-)
diffs (45 lines):
diff -r ebd1caddd958 -r 425e771711f6 gnu/dist/toolchain/gcc/config/i386/i386.c
--- a/gnu/dist/toolchain/gcc/config/i386/i386.c Sat Jul 06 10:43:32 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/i386/i386.c Sat Jul 06 13:17:18 2002 +0000
@@ -1725,19 +1725,14 @@
{
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 @@
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 -r ebd1caddd958 -r 425e771711f6 gnu/dist/toolchain/gcc/config/i386/i386.md
--- a/gnu/dist/toolchain/gcc/config/i386/i386.md Sat Jul 06 10:43:32 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/i386/i386.md Sat Jul 06 13:17:18 2002 +0000
@@ -7031,7 +7031,7 @@
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")])
Home |
Main Index |
Thread Index |
Old Index