https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68214

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #1 from ktkachov at gcc dot gnu.org ---
How was the compiler configured?
The testcases passes for me with a recent trunk.
Compiling it with a arm-none-eabi compiler with -march=armv4t -mthumb
-mfloat-abi=softfp (for example) gives:
main:
        push    {r4, lr}
        sub     sp, sp, #8
        mov     r3, sp
        adds    r4, r3, #7
        ldr     r3, .L5
        ldr     r3, [r3]
        mov     ip, r4
        bl      .L7
        cmp     r0, r4
        bne     .L4
        movs    r0, #0
        add     sp, sp, #8
        @ sp needed
        pop     {r4}
        pop     {r1}
        bx      r1
.L4:
        bl      abort
.L6:
        .align  2
.L5:
        .word   .LANCHOR0
        .size   main, .-main
        .global ptr
        .data
        .align  2
        .set    .LANCHOR0,. + 0
        .type   ptr, %object
        .size   ptr, 4
ptr:
        .word   foo
        .ident  "GCC: (unknown) 6.0.0 20151127 (experimental)"
        .text
        .code 16
        .align  1
.L7:
        bx      r3

Reply via email to