optimization/10562: Code segment optimization incorrectly disappeared with -O2 option
Falk Hueffner
falk.hueffner@student.uni-tuebingen.de
Wed Apr 30 10:56:00 GMT 2003
The following reply was made to PR optimization/10562; it has been noted by GNATS.
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: fleming.feng@intel.com
Cc: gcc-gnats@gcc.gnu.org, eddie.dong@intel.com
Subject: Re: optimization/10562: Code segment optimization incorrectly disappeared with -O2 option
Date: 30 Apr 2003 12:51:30 +0200
fleming.feng@intel.com writes:
> The code in the "for" loop should at least executed one time! [...]
> but if it is compiled with -O2 option the code segment in "for" loop
> will not be executed.
This sounds a lot like a bug that was recently fixed (10171), and I
cannot reproduce it with gcc 3.2.3. Can you try it with 3.2.3?
--
Falk
More information about the Gcc-prs
mailing list