https://llvm.org/bugs/show_bug.cgi?id=12107

Matthias Braun <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WORKSFORME

--- Comment #3 from Matthias Braun <[email protected]> ---
I cannot reproduce this with llvm trunk r242481. When I compile with clang
-target armv7a-- ("-arch armv7-a" doesn't seem to exist) I get the following:

foo_l:                                  @ @foo_l
    .fnstart
@ BB#0:                                 @ %entry
    push    {r7, lr}
    movw    r1, :lower16:buf
    mov    r0, #0
    movt    r1, :upper16:buf
    ldr    sp, [r1, #8]
    ldr    r0, [r1, #4]
    ldr    r7, [r1]
    bx    r0

which looks correct. In any case I would also advise against using
__builtin_setjmp/__builtin_longjmp, they are not documented in the gcc or clang
manuals and are intended to implement compiler runtimes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to