[Bug c/42084] Wrong result with -Os -fno-delete-null-pointer-checks

2009-11-17 Thread chenyang at cs dot utah dot edu


--- 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



[Bug c/42084] Wrong result with -Os -fno-delete-null-pointer-checks

2009-11-17 Thread chenyang at cs dot utah dot edu


--- 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