This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/24810] [4.1/4.2 Regression] mov + mov + testl generated instead of testb
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2005 11:53:00 -0000
- Subject: [Bug rtl-optimization/24810] [4.1/4.2 Regression] mov + mov + testl generated instead of testb
- References: <bug-24810-1008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jakub at gcc dot gnu dot org 2005-12-29 11:53 -------
I don't think this is a bug, in fact, not honoring the volatile in GCC 4.0.x
and earlier was a bug. If you want to allow byte access rather than word
access, you really need to remove the volatile keyword and then it compiles
into
restore_fpu:
testb $1, boot_cpu_data+15
je .L2
jmp foo
.L2:
jmp bar
.size restore_fpu, .-restore_fpu
.ident "GCC: (GNU) 4.2.0 20051223 (experimental)"
You should report this against Linux kernel, it shouldn't use volatile in
there.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24810