This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/19088] volatile attr. doesn't work with pointers / wrong code
- From: "rearnsha at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2004 13:03:24 -0000
- Subject: [Bug other/19088] volatile attr. doesn't work with pointers / wrong code
- References: <20041220115844.19088.pluto@pld-linux.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-12-20 13:03 -------
Not a bug. You aren't showing the relocations that still need applying. You
need to add the -r flag to objdump for this.
Looking at the assembler output we see:
lockMutex:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
@ lr needed for prologue
.L2:
ldr r3, [r0, #0]
cmp r3, #1
bne .L2
sub r3, r3, #1
str r3, [r0, #0]
mov pc, lr
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19088