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 build/10062] 'make' for glibc-2.9 fails even though 'configure' is OK


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

--- Comment #21 from Carlos O'Donell <carlos at systemhalted dot org> 2012-02-23 16:49:09 UTC ---
(In reply to comment #20)
> FWIW, my inclination would be to refine that solution: if the compiler 
> generates out-of-line __sync_* calls, but we are building for an i486-* 
> triplet, add -march=i486 automatically (likewise i586-*, i686-*; use 
> -march=i686 also for i786-* which glibc accepts as well), and only give 
> the error if the configuration is i386-* *and* the compiler generates 
> out-of-line calls for __sync_* operations.
> 
> The sysdeps directories for i486 etc. have assembly sources that use i486 
> etc.-specific instructions, so adding -march like that (if glibc would 
> otherwise fail to build) is safe.

That sounds like a good solution.

The only case I can think where it matters is if the user tries to use i686-*
target and specifies -march=i386 (which will be ignored).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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