This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Another MI thunks fix for -mintel-syntax


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);						    \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]