--- Comment #9 from jingyu at google dot com 2010-02-10 12:18 ---
I still get the 10-instruction code with trunk GCC I checked out today.
$arm-eabi-gcc -mthumb -mthumb-interwork -fpic -Os code.c -S
test:
push{lr}
sub sp, sp, #20
ldr r2, [r0]
--- Comment #10 from steven at gcc dot gnu dot org 2010-02-10 13:00 ---
My compiler is configured for arm-elf, I guess that's the difference...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39871
--- Comment #11 from steven at gcc dot gnu dot org 2010-02-10 13:04 ---
Closed for wrong ABI.
--
steven at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #12 from steven at gcc dot gnu dot org 2010-02-10 16:27 ---
Trying with r156650, I get this before regalloc (in the .184r.asmcons dump):
1 NOTE_INSN_DELETED
4 NOTE_INSN_BASIC_BLOCK
2 r135:SI=r0:SI
REG_DEAD: r0:SI
3 NOTE_INSN_FUNCTION_BEG
6
--- Comment #8 from steven at gcc dot gnu dot org 2010-02-08 11:15 ---
test:
push{lr}
sub sp, sp, #12
ldr r2, [r0]
ldr r1, [r0, #4]
mov r0, sp
str r2, [sp, #4]
bl func
add sp, sp, #12
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Target Milestone|4.3.5 |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39871
--- Comment #6 from bonzini at gnu dot org 2010-01-02 10:28 ---
I don't know but I found a tree that generates the 9-instruction sequence, and
it was GCC: (GNU) 4.4.0 20090314 (experimental).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39871
--- Comment #7 from bonzini at gnu dot org 2010-01-02 10:31 ---
(That would be r144855 or r144857).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39871
--- Comment #5 from steven at gcc dot gnu dot org 2010-01-02 00:21 ---
Re. comment #1: Paulo, which compiler did you use (svn revision number)?
--
steven at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #2 from mikpe at it dot uu dot se 2009-06-14 10:24 ---
(In reply to comment #1)
With 4.5 I see
With 4.5.0 I see:
push{lr}
sub sp, sp, #12
ldr r2, [r0]
ldr r1, [r0, #4]
mov r0, sp
str r2, [sp,
--- Comment #3 from mikpe at it dot uu dot se 2009-06-14 14:06 ---
(In reply to comment #1)
With 4.5 I see
With 4.5.0 I see:
push{lr}
sub sp, sp, #12
ldr r2, [r0]
ldr r1, [r0, #4]
mov r0, sp
str r2, [sp,
--
ramana at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last
--- Comment #1 from bonzini at gnu dot org 2009-05-06 15:06 ---
With 4.5 I see
With 4.5.0 I see:
push{lr}
sub sp, sp, #12
ldr r2, [r0]
ldr r1, [r0, #4]
mov r0, sp
str r2, [sp, #4]
bl func
add
--
mmitchel at gcc dot gnu dot org changed:
What|Removed |Added
Priority|P3 |P2
Summary|[4.3/4.4/4.5 regression] CSE|[4.3/4.4/4.5
14 matches
Mail list logo