This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/35661] __attribute__((cold)) generates wrong code



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]