[Bug middle-end/28042] optimizer (-O2) changes the semantics of my programs

2006-06-16 Thread tonyg-gccbugzilla at lshift dot net
--- Comment #2 from tonyg-gccbugzilla at lshift dot net 2006-06-16 09:07 --- Created an attachment (id=11678) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11678&action=view) Test case (cleaned for -Wall) from Wolfgang's page Identical (and still failing) test case t

[Bug middle-end/28042] optimizer (-O2) changes the semantics of my programs

2006-06-16 Thread tonyg-gccbugzilla at lshift dot net
--- Comment #3 from tonyg-gccbugzilla at lshift dot net 2006-06-16 09:07 --- Jun 16 10:07:17 [EMAIL PROTECTED] ~$ gcc -Wall -O0 -o is_small is_small.c Jun 16 10:07:29 [EMAIL PROTECTED] ~$ ./is_small 0 Jun 16 10:07:32 [EMAIL PROTECTED] ~$ gcc -Wall -O1 -o is_small is_small.c Jun 16

[Bug middle-end/28042] optimizer (-O2) changes the semantics of my programs

2006-06-16 Thread tonyg-gccbugzilla at lshift dot net
--- Comment #4 from tonyg-gccbugzilla at lshift dot net 2006-06-16 09:28 --- Even better, if you remove the redundant parens, so that the program reads ... if ((integerValue >= 0) && (integerValue >= -1073741824) && (integerValue < 1073741824)) {