This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to replace -O1 with corresponding -f's?
Andrew Haley <aph@redhat.com> writes:
> Sergei Organov writes:
> > Hi,
> >
> > Using gcc compiled from gcc-4_0-branch, in an attempt to see which
> > particular optimization option makes my test case to be mis-optimized, I
> > try to replace -O1 (which toggles on the problem) with corresponding set
> > of -fxxx optimization options.
>
> In general you can't do this. You can turn some optimization passes
> off, though.
Sigh :(
>
> > How one finds out what optimization pass misbehaves?
>
> Look at the dumps. If you use the gcc option -da you'll get a full
> set of RTL dump files.
I'm afraid that it's one of the tree optimization passes as
const.cc.00.expand is already [mis]optimized the way I don't like.
--
Sergei.