[oe] [rfc] change default for BUILD_OPTIMIZATION, remove spurious assignments

Tom Rini trini at embeddedalley.com
Tue Jun 23 18:09:25 UTC 2009


On Tue, Jun 23, 2009 at 06:46:54PM +0100, Phil Blundell wrote:
> On Tue, 2009-06-23 at 10:30 -0700, Khem Raj wrote:
> >  -frename-registers was a workaround to get past a ARM GCC ICE in 4.2 IIRC
> > we should get rid of it.
> 
> No, -frename-registers is an optimisation in its own right.  I think we
> probably want to keep that.  You might be thinking of the
> -fno-rename-registers that we do use for some packages to avoid an ice
> on arm with gcc 3.4.
> 
> > -fexpensive-optimizations and -fomit-frame-pointer are passed by
> > default at O2 so we should get rid of them too.
> 
> Is that true on all targets?  I didn't think that -O2 implied
> -fomit-frame-pointer on arm.

The 4.2.4 manual says:
"`-O' also turns on `-fomit-frame-pointer' on machines where doing so
does not interfere with debugging."  Which means that yes, iirc ARM
won't have that turned on.

-- 
Tom Rini




More information about the Openembedded-devel mailing list