[Bug target/38109] [avr] Wrong code with gcc.c-torture/execute/20081112-1.c
eric dot weddington at atmel dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 14 00:42:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list