[Bug c/36232] Optimizer removes condition check to terminate loop

nick dot spence at freescale dot com gcc-bugzilla@gcc.gnu.org
Tue May 13 19:51:00 GMT 2008



------- Comment #1 from nick dot spence at freescale dot com  2008-05-13 19:51 -------
Created an attachment (id=15636)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15636&action=view)
Example code source file 

Compile with 'gcc -Os test.c' or 'gcc -O2 test.c' and examine assembly output.
Note this code cannot be run in user space becuase it will generate a
segmentation fault.


-- 


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



More information about the Gcc-bugs mailing list