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 target/9766] [ARM/Thumb]thumb mode produces an arm instruction with -Os


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dhazeghi@yahoo.com  2003-05-26 19:39 -------
Hello,

with gcc 3.2.3, 3.3 branch and mainline (20030509), I get code like the following on arm-elf. Is 
this correct code? Thanks,

Dara


junk.s
        .file   "junk.c"
        .text
        .align  2
        .thumb_func
        .type   dave, %function
dave:
        ldrb    r3, [r0]
        sub     sp, sp, #32
        lsr     r3, r3, #5
        mov     r2, sp
        lsl     r3, r3, #2
        ldr     r0, [r3, r2]
        add     sp, sp, #32
        @ sp needed for prologue
        bx      lr
        .size   dave, .-dave
        .ident  "GCC: (GNU) 3.4 20030508 (experimental)"



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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