This is the mail archive of the glibc-bugs@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]

[Bug libc/4507] New: sysv/linux/i386/sysdep.h problems with asm-preproc that define __i686


An old bug-glibc message for glibc 2.3.1
<http://lists.gnu.org/archive/html/bug-glibc/2003-01/msg00016.html> seemingly
didn't get followed up on.  Simon Poole reported a similar problem for a
crosstool build; see <http://sourceware.org/ml/crossgcc/2004-11/msg00013.html>.

The problem is that an __asm__ generates code containing the symbol __i686, but
some preprocessor/compiler combinations automatically #define __i686 to 1, which
messes up the generated code.

On 2004-05-17 a similar problem was fixed in
sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h by renaming the affected symbol;
see
<http://cvs.savannah.gnu.org/viewvc/libc/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h?root=libc&r1=1.13&r2=1.14>.
I'll attach a similar (but untested) patch for
sysdeps/unix/sysv/linux/i386/sysdep.h.

-- 
           Summary: sysv/linux/i386/sysdep.h problems with asm-preproc that
                    define __i686
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: eggert at gnu dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4507

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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