This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add "-U __i686" to asm-CPPFLAGS


When gcc is configured with --with-arch=i686, __i686 will be defined as
1. There are many __i686.get_pc_thunk.?x in assembly code and __i686
will be replaced by `1'.  This patch adds "-U __i686" to asm-CPPFLAGS.

Thanks.


H.J.
---
2009-07-29  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/i386/Makefile (asm-CPPFLAGS): Add "-U __i686".

diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index ef45ce6..07a970b 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -1,6 +1,7 @@
 # The mpn functions need a #define for asm syntax flavor.
-# Every i386 port in use uses gas syntax (I think).
-asm-CPPFLAGS += -DGAS_SYNTAX
+# Every i386 port in use uses gas syntax (I think).  Don't replace
+# __i686 in __i686.get_pc_thunk.bx.
+asm-CPPFLAGS += -DGAS_SYNTAX -U __i686
 
 # The i386 `long double' is a distinct type we support.
 long-double-fcts = yes


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