[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-21 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 --- Comment #7 from Bernd Edlinger --- How can I set the status of this tracker to CONFIRMED ? Should'nt the component be "tree-optimization" instead of "middle-end" ?

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-20 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 --- Comment #6 from Bernd Edlinger --- Created attachment 30681 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30681&action=edit possible fix This seems to be a possible fix. What do you think of it, Jan?

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-19 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 --- Comment #5 from Bernd Edlinger --- Summary: tree-ssa-loop-im.c moves code, out of an if statement inside the loop it it can not cause side effects or faults, but it does not care of integer overflows. this seems to be an optimization! BUT tr

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-19 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 Bernd Edlinger changed: What|Removed |Added CC||bernd.edlinger at hotmail dot de --- Co

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-14 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 Mikael Pettersson changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-12 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 --- Comment #2 from Zhendong Su --- Andrew, because of short-circuiting, when p >= 0, the expression "-2147483647 - 1 - p" isn't actually evaluated. Thanks for looking into this so quickly! Zhendong

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 --- Comment #1 from Andrew Pinski --- -2147483647 - 1 - p Hmm, this overflows for p > 1.