[Bug rtl-optimization/24810] [4.1/4.2 Regression] mov + mov + testl generated instead of testb
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 29 11:53:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list