[Bug c/48793] Optimization -O2 Incorrectly Removes Logic

2011-04-27 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48793 --- Comment #3 from Andrew Pinski 2011-04-27 22:59:51 UTC --- (In reply to comment #2) > myInteger = -myInteger; > > is undefined for the integer MIN_INT? The above is undefined for the value of MIN_INT. As there is an overflow as -MIN_INT is

[Bug c/48793] Optimization -O2 Incorrectly Removes Logic

2011-04-27 Thread chris at durso dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48793 --- Comment #2 from Chris DUrso 2011-04-27 22:36:16 UTC --- Hi Andreas, Are you saying that myInteger = -myInteger; or if( myInteger < 0 ) is undefined for the integer MIN_INT? Read a little closer, the overflow/underflow/abs are just

[Bug c/48793] Optimization -O2 Incorrectly Removes Logic

2011-04-27 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48793 Andreas Schwab changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|