[Bug other/19088] volatile attr. doesn't work with pointers / wrong code

2004-12-20 Thread pluto at pld-linux dot org

--- Additional Comments From pluto at pld-linux dot org  2004-12-20 12:11 
---
oops, unlockMutex contains an error.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19088


[Bug other/19088] volatile attr. doesn't work with pointers / wrong code

2004-12-20 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-20 
12:52 ---
This works for me on the mainline.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19088


[Bug other/19088] volatile attr. doesn't work with pointers / wrong code

2004-12-20 Thread rearnsha 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