diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-02-06 23:01:25 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-02-06 23:01:25 +0000 |
commit | d4a54ac6494dd47a9c3d490e02897c69c0432341 (patch) | |
tree | 32f4178ed80b3215b1068c23df3da79231e046cc /sysdeps/i386/sysdep.h | |
parent | 314054eaef2aec965d2f1bced7e86abca118463e (diff) | |
download | glibc-d4a54ac6494dd47a9c3d490e02897c69c0432341.tar.gz glibc-d4a54ac6494dd47a9c3d490e02897c69c0432341.tar.xz glibc-d4a54ac6494dd47a9c3d490e02897c69c0432341.zip |
Undefine and redefine __i686 for assembly code.
Diffstat (limited to 'sysdeps/i386/sysdep.h')
-rw-r--r-- | sysdeps/i386/sysdep.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/i386/sysdep.h b/sysdeps/i386/sysdep.h index 1dbb8e12a9..c1dac6c361 100644 --- a/sysdeps/i386/sysdep.h +++ b/sysdeps/i386/sysdep.h @@ -23,7 +23,13 @@ #include <features.h> /* For __GNUC_PREREQ. */ /* It is desirable that the names of PIC thunks match those used by - GCC so that multiple copies are eliminated by the linker. */ + GCC so that multiple copies are eliminated by the linker. Because + GCC 4.6 and earlier use __i686 in the names, it is necessary to + override that predefined macro. */ +#if defined __i686 && defined __ASSEMBLER__ +#undef __i686 +#define __i686 __i686 +#endif #ifdef __ASSEMBLER__ # if __GNUC_PREREQ (4, 7) |