------- Comment #2 from eric dot weddington at atmel dot com 2008-11-14 00:41 ------- Created an attachment (id=16668) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16668&action=view) Generated assembler listing showing bad code at -O2.
The problem in 20081112-1-bad.s is in the function foo. The compare and branch have been optimized out, but it is wrongly calling abort, when it should just ret. The wrong block is being generated. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38109