This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What is exactly in O2?


On Wed, Jan 31, 2001 at 05:42:21PM -0500, Michael Meissner wrote:
> On Wed, Jan 31, 2001 at 05:33:42PM -0500, Phil Edwards wrote:
> > 
> > Somewhere I have a patch to allow a -print-flags switch to the compiler,
> > which will parse all the other command-line switches and then print the
> > flag_* variables which get changed.  It's useful for this kind of thing,
> > e.g., "-O2 -print-flags".  If you would this useful I'll mail it to you.
> 
> Even without -print-flags you can get this information via two methods:

Yup, that's why the patch was never checked in.  :-)  I still use it because
"-v -Q" contains lots of other verbiage.


> Note, the flags set by -O2 will change over time.

Wasn't there a push at one point to spread the optimizations out over a
slightly wider range than the current 1-3?  Like 1-5 or thereabouts?


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]