This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Add "-U __i686" to asm-CPPFLAGS
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 29 Jul 2009 10:59:48 -0700
- Subject: PATCH: Add "-U __i686" to asm-CPPFLAGS
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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