Boost logo

Boost-Build :

From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2007-07-11 07:49:47


On 7/11/07, Jos Hickson <jos.hickson_at_[hidden]> wrote:
> [snip]
> >
> > > One thing I was wonder was why -O3 is the default as that is usually
> > > considered a bit risky?
> >
> > Is it? I'm not aware of that.
> >
>
> To quote from the Gentoo Linux "Safe CFLAGS" page
> (http://gentoo-wiki.com/Safe_Cflags) as an example:
>
> <quote>
> Note that -O2 is regarded as safer than "-O3", and "-O3" can often be
> a counter-productive attempt at optimization.
> </quote>
>

Any particular reason why this would be the case? How is "safety"
defined in this manner? Does conservative optimization mean safer?

-- 
Dean Michael C. Berris
http://cplusplus-soup.blogspot.com/
mikhailberis AT gmail DOT com
+63 928 7291459

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk