This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35661] __attribute__((cold)) generates wrong code
- From: "zuxy dot meng at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2008 20:18:37 -0000
- Subject: [Bug target/35661] __attribute__((cold)) generates wrong code
- References: <bug-35661-12845@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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