[Bug target/35661] __attribute__((cold)) generates wrong code
zuxy dot meng at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Mar 21 20:19:00 GMT 2008
------- Comment #1 from zuxy dot meng at gmail dot com 2008-03-21 20:18 -------
Created an attachment (id=15356)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15356&action=view)
Sample C file that gets compiled incorrectly
Compile with "gcc -march=pentium-m -mtune=generic -O3 -fomit-frame-pointer -c"
will give an object. Run "objdump -D" over the object and you'll see several
"add %al,(%eax)" that should be NOP instead.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35661
More information about the Gcc-bugs
mailing list