[LLVMbugs] [Bug 12107] __builtin_longjmp code not generated for Arm.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 16 17:11:51 PDT 2015


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

Matthias Braun <matze at braunis.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |matze at braunis.de
         Resolution|---                         |WORKSFORME

--- Comment #3 from Matthias Braun <matze at braunis.de> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150717/3ae6d1b7/attachment.html>


More information about the llvm-bugs mailing list