------- Comment #4 from pinskia at gcc dot gnu dot org 2007-11-16 01:52 ------- (In reply to comment #3) > Here's another example, which I think may represent a different case (and > which > I found much more surprising than the first):
> no_loop_opt2.c:5: warning: cannot optimize possibly infinite loops No this is correct, try having n as UINT_MAX. The conditional will always be true. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34114