[Bug c/39330] Bad program bahavior with -O2 optimization in plain C

adeymo at dc dot uba dot ar gcc-bugzilla@gcc.gnu.org
Sun Mar 1 05:08:00 GMT 2009



------- Comment #3 from adeymo at dc dot uba dot ar  2009-03-01 05:08 -------
(From update of attachment 17380)
Compile with:
gcc -save-temps -O2 -Wall -Werror xqsort-small.c -o xqsort-small

Run with:
./xqsort-small && echo ok

If compiled with -O1 , the echo command must be executed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39330



More information about the Gcc-bugs mailing list