This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c
- From: "Ulrich Jakobus" <jakobus at emss dot co dot za>
- To: "Toon Moene" <toon at moene dot indiv dot nluug dot nl>
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>,"gcc-gnats at gcc dot gnu dot org" <gcc-gnats at gcc dot gnu dot org>,"gcc-prs at gcc dot gnu dot org" <gcc-prs at gcc dot gnu dot org>,"nobody at gcc dot gnu dot org" <nobody at gcc dot gnu dot org>,"toon at gcc dot gnu dot org" <toon at gcc dot gnu dot org>
- Date: Wed, 13 Mar 2002 06:59:50 +0200
- Subject: Re: c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c
- Reply-to: "Ulrich Jakobus" <jakobus at emss dot co dot za>
>
>Ah, now I see - you really meant this a *C* bug report :-)
>
Yes, I meant this to be a *C* bug of the optimiser (and I
submitted it as a C bug). Obviously the created code with
-O2 or -O3 is not correct, resulting in an infinite loop.
Compiling exactly the same code with -O works, and also
using e.g. gcc-2.95.2 with -O2 or -O3 works fine.
>Now that you know how to work around the problem, can I close the report?
Well, I already knew before submitting the issue that if I
use just -O it works. If you think it is not important that
also gcc-3.0.4 gives correct code (as gcc-2.95.2 did for in-
stance) when using -O2 or -O3 you are welcome to close the issue.
Thanks,
Ulrich