This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]