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?
- From: Andrew Haley <aph at redhat dot com>
- To: Sergei Organov <osv at topconrd dot ru>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 20 Jun 2005 15:04:45 +0100
- Subject: Re: How to replace -O1 with corresponding -f's?
- References: <878y159mhr.fsf@osv.topcon.com>
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.
> 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.
Andrew.