This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/23909] Incorrect code generated for SSE2 based xor routine when compiled with -O2 -fomit-frame-pointer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2005 14:40:58 -0000
- Subject: [Bug target/23909] Incorrect code generated for SSE2 based xor routine when compiled with -O2 -fomit-frame-pointer
- References: <20050916053517.23909.jeff@panasas.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-16 14:40 -------
This works for me with 4.1.0 but I really think it is just an accident.
/*@unused@*/ int cr0; /* really, it's used, but lclint doesn't "get" __asm__ */
This comment does not make sense.
Specificly since GCC also warns about it:
t.c:110: warning: unused variable ?cr0?
t.c:109: warning: unused variable ?reg_store?
I still think you are making a mistake in your code by using inline-asm.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23909