--- Comment #1 from chenyang at cs dot utah dot edu 2009-11-17 21:13
---
The inconsistent results also show up with the following combinations:
-O3 -fno-delete-null-pointer-checks
-O2 -fno-delete-null-pointer-checks
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42084
--- Comment #2 from chenyang at cs dot utah dot edu 2009-11-17 21:21
---
I am sorry I should also mention that the code works with -Os, or -O3 or
-O2, but not with the extra flag -fno-delete-null-pointer-checks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42084