<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Sparc] `__builtin_longjmp` is broken"
   href="https://bugs.llvm.org/show_bug.cgi?id=51489">51489</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Sparc] `__builtin_longjmp` is broken
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xtkoba@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25135" name="attach_25135" title="Repro: minimal code using `__builtin_longjmp`">attachment 25135</a> <a href="attachment.cgi?id=25135&action=edit" title="Repro: minimal code using `__builtin_longjmp`">[details]</a></span>
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

$</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>