c/5914: Infinite loop when compiling with optimisation on of z_log.c of libf2c
Tue Mar 12 21:00:00 GMT 2002
>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.
More information about the Gcc-bugs