This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/9766] [ARM/Thumb]thumb mode produces an arm instruction with -Os
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2003 19:39:17 -0000
- Subject: [Bug target/9766] [ARM/Thumb]thumb mode produces an arm instruction with -Os
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.