[OE-core] why do we poison -Os?

Phil Blundell philb at gnu.org
Wed Aug 24 10:52:47 UTC 2011


On Wed, 2011-08-24 at 09:47 +0800, Xu, Dongxiao wrote:
> My understanding is that, if GCC is not configured with the ability of code space optimization, target recipes will not have code size benefit even if adding "-Os" option.

No, that's incorrect.  All that --enable-target-optspace does is change
the definition of CFLAGS_FOR_TARGET, which causes the GCC support
libraries (i.e. libgcc, libstdc++, etc) to be built with -Os rather than
-O2.  It has no effect on the functionality of the compiler itself.

p.






More information about the Openembedded-core mailing list