[RFC PATCH] glibc doesn't build with "gcc -march=i686"
Paul Pluzhnikov
ppluzhnikov@google.com
Fri May 23 23:22:00 GMT 2008
Greetings,
Attempting to build glibc (cvs) with CC='gcc -march=i686' results in errors:
../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier for ".ifdef"
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first
unrecognized character is `1'
../sysdeps/i386/fpu/s_frexp.S:66: Error: unrecognized symbol type ""
This is because gcc defines __i686 to 1 when -march=i686
Attached patch fixes that, but perhaps there is a better way?
Thanks,
--
Paul Pluzhnikov
2008-05-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* sysdeps/i386/sysdep.h: Undef __i686 before using.
* sysdeps/i386/i686/memcmp.S: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-i686.patch
Type: text/x-patch
Size: 1359 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20080523/c11b7eb0/attachment.bin>
More information about the Libc-alpha
mailing list