public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4507] New: sysv/linux/i386/sysdep.h problems with asm-preproc that define __i686
@ 2007-05-14 18:18 eggert at gnu dot org
  2007-05-14 18:18 ` [Bug libc/4507] " eggert at gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: eggert at gnu dot org @ 2007-05-14 18:18 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-4507-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2012-02-18  0:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14 18:18 [Bug libc/4507] New: sysv/linux/i386/sysdep.h problems with asm-preproc that define __i686 eggert at gnu dot org
2007-05-14 18:18 ` [Bug libc/4507] " eggert at gnu dot org
2007-05-14 19:02 ` drepper at redhat dot com
2007-05-15 13:39 ` eggert at gnu dot org
2007-05-15 13:41 ` eggert at gnu dot org
2007-11-08  0:00 ` drepper at redhat dot com
2007-12-10  1:01 ` vapier at gentoo dot org
2007-12-19 20:25 ` wbrana at gmail dot com
2008-08-10 15:07 ` wbrana at gmail dot com
2009-12-21  5:05 ` divided dot mind at gmail dot com
     [not found] <bug-4507-131@http.sourceware.org/bugzilla/>
2012-02-18  0:19 ` jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).