[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread gwpublic at wp dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 --- Comment #1 from Grzegorz Wierzowiecki gwpublic at wp dot pl 2012-04-02 10:09:15 UTC --- Created attachment 27064 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27064 overflow_loop-O1.s - Assembly after -O1

[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread gwpublic at wp dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 --- Comment #2 from Grzegorz Wierzowiecki gwpublic at wp dot pl 2012-04-02 10:09:48 UTC --- Created attachment 27065 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27065 overflow_loop-O2.s - assembly after -O2

[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread gwpublic at wp dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 --- Comment #3 from Grzegorz Wierzowiecki gwpublic at wp dot pl 2012-04-02 10:11:02 UTC --- Created attachment 27066 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27066 compiler flags enabled by -O1

[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread gwpublic at wp dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 --- Comment #4 from Grzegorz Wierzowiecki gwpublic at wp dot pl 2012-04-02 10:11:32 UTC --- Created attachment 27067 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27067 compiler flags enabled by -O2

[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org 2012-04-02 10:12:34 UTC --- (In reply to comment #0) following code is based on artihmetic overflow assumption (after overflow we gen 0 number on x86 and x86_64): Bad assumption,

[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread gwpublic at wp dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 Grzegorz Wierzowiecki gwpublic at wp dot pl changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/52833] -O2 optimizes loop to infinite when loop invariant based on arithmetic overflow

2012-04-02 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52833 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Resolution|FIXED |INVALID