[Bug c/59590] gcc produces an infinite loop on O2 optimization

2013-12-23 Thread cottrell at wfu dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59590 --- Comment #2 from Allin Cottrell --- OK, you're right, there's an off-by-one bug in the second k-loop. But it's not very nice that gcc takes that as a license to produce an infinite loop. However, I guess that makes this report a duplicate of s

[Bug c/59590] New: gcc produces an infinite loop on O2 optimization

2013-12-23 Thread cottrell at wfu dot edu
Assignee: unassigned at gcc dot gnu.org Reporter: cottrell at wfu dot edu Created attachment 31508 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31508&action=edit minimal test case I'm getting an infinite loop with -O2, though the code is compiled correctly