This is the mail archive of the gcc-patches@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]

Re: patch to fix PR70689




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


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