[llvm-bugs] [Bug 51489] New: [Sparc] `__builtin_longjmp` is broken

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 16 03:31:58 PDT 2021


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

            Bug ID: 51489
           Summary: [Sparc] `__builtin_longjmp` is broken
           Product: new-bugs
           Version: 12.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: xtkoba at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 25135
  --> https://bugs.llvm.org/attachment.cgi?id=25135&action=edit
Repro: minimal code using `__builtin_longjmp`

$ cat builtin_longjmp.c

void *jmp_buf[5];

void foo(void)
{
  __builtin_longjmp(jmp_buf, 1);
}

$ /usr/lib/llvm/12/bin/clang --target=sparc64-sun-solaris builtin_longjmp.c -c
-o builtin_longjmp.o

$ llvm-objdump -d builtin_longjmp.o

builtin_longjmp.o:      file format elf64-sparc

Disassembly of section .text:

0000000000000000 <foo>:
       0: 9d e3 bf 80   save %sp, -128, %sp

$

-- 
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/20210816/e399fd7e/attachment.html>


More information about the llvm-bugs mailing list