This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What optimizations does -O1 enable?
- From: Lars Brinkhoff <lars dot spam at nocrew dot org>
- To: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: Will Newton <will at debian dot org>, <gcc at gcc dot gnu dot org>
- Date: 12 Mar 2003 18:01:04 +0100
- Subject: Re: What optimizations does -O1 enable?
- Organization: nocrew
- References: <Pine.LNX.4.30.0303121756320.25648-100000@linux17.zdv.uni-tuebingen.de>
Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de> writes:
> On Wed, 12 Mar 2003, Will Newton wrote:
> > I have some code[1] that breaks when compiled with gcc 3.2 -O1. I
> > have tried enabling all these optimizations:
> Try -S -fverbose-asm and look at the .s file.
Try extracting the minimum amount of code that will break. Start with
the entire program if necessary, and remove pieces bit by bit.
--
Lars Brinkhoff, Services for Unix, Linux, GCC, PDP-10, HTTP
Brinkhoff Consulting http://www.brinkhoff.se/