------- Comment #5 from jue at jue dot li  2010-04-16 11:20 -------
Reopened the bug, because I'm still not convinced that the new behaviour of gcc
4.5 is correct.

With gcc 4.4 you have to explicit set arch optimization, usually done via
CFLAGS. If not set there's no optimization. That's the reason why you can build
glibc without problems, because glibc calls gcc without setting CFLAGS if
appropriate. 

With gcc 4.5 arch is always set to the host arch and the caller has no
possibility to unset arch, only to change it to something different. 

To build glibc it's therefor not sufficient to set CFLAGS to something like
-march=i585 but you have to do a 'make CC="gcc -march=i586"'. That's ugly and
not what you want at all on a i686 host.


-- 

jue at jue dot li changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43750

Reply via email to