This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Another MI thunks fix for -mintel-syntax
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] Another MI thunks fix for -mintel-syntax
- From: Diego Novillo <dnovillo at cygnus dot com>
- Date: Tue, 17 Oct 2000 14:19:58 -0400
- Organization: Red Hat Canada
I missed removing the $ prefix for _GLOBAL_OFFSET_TABLE when
using -mintel-syntax.
Is this OK to install?
2000-10-17 Diego Novillo <dnovillo@cygnus.com>
* unix.h (ASM_OUTPUT_MI_THUNK): Symbol _GLOBAL_OFFSET_TABLE should
not have a $ prefix when using -mintel-syntax.
Index: unix.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/unix.h,v
retrieving revision 1.11
diff -u -p -r1.11 unix.h
--- unix.h 2000/10/16 16:52:47 1.11
+++ unix.h 2000/10/17 18:17:53
@@ -117,7 +117,7 @@ do { \
output_asm_insn ("call\t%P1", xops); \
ASM_OUTPUT_INTERNAL_LABEL (FILE, "L", CODE_LABEL_NUMBER (xops[1])); \
output_asm_insn ("pop{l}\t%0", xops); \
- output_asm_insn ("add{l}\t$_GLOBAL_OFFSET_TABLE_+[.-%P1], %0", xops); \
+ output_asm_insn ("add{l}\t{$}_GLOBAL_OFFSET_TABLE_+[.-%P1], %0", xops); \
xops[0] = gen_rtx_MEM (SImode, XEXP (DECL_RTL (FUNCTION), 0)); \
output_asm_insn ("mov{l}\t{%0@GOT(%%ebx), %%ecx|%%ecx, %0@GOT[%%ebx]}",\
xops); \