Am 12.11.2012 03:27, schrieb Michael Hope:
I think I've found the problem. We pass -U_FORTIFY and -fno-stack-protector to make the binary more universal, and the way that crosstool-NG passes these flags on to the tool overrides the default package flags and turns off any optimisations.
Short story: GCC was being built without optimisations. I've got a test build running to verify.
setting STAGE1_CFLAGS should not overwrite the CFLAGS used for the build. Setting these flags for a native stage3 build should not be necessary. The stage1 compiler isn't shipped.