This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to fix PR70689
- From: Jiong Wang <jiong dot wang at foss dot arm dot com>
- To: Vladimir N Makarov <vmakarov at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Apr 2016 09:45:00 +0100
- Subject: Re: patch to fix PR70689
- Authentication-results: sourceware.org; auth=none
- References: <57159DFD dot 9060800 at redhat dot com>
On 19/04/16 03:54, Vladimir N Makarov wrote:
The following patch fixes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70689
The patch was successfully tested and bootstrapped on x86/x86-64.
Committed to the trunk as rev. 235184.
This caused the following regression on trunk
FAIL: gcc: gcc.target/arm/eliminate.c scan-assembler-times r0,[\\t ]*sp 3
configuration: --target=arm-none-eabi --enable-languages=c
compile option: -O2 -march=armv7-a
before:
===
foo:
str lr, [sp, #-4]!
sub sp, sp, #12
add r0, sp, #4
bl bar
add r0, sp, #4
bl bar
add r0, sp, #4
bl bar
add sp, sp, #12
ldr pc, [sp], #4
after:
===
foo:
str lr, [sp, #-4]!
sub sp, sp, #20
add r3, sp, #12
str r3, [sp, #4]
mov r0, r3
bl bar
add r3, sp, #12
str r3, [sp, #4]
mov r0, r3
bl bar
add r3, sp, #12
str r3, [sp, #4]
mov r0, r3
bl bar
add sp, sp, #20
ldr pc, [sp], #4