<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - res=__builtin_setjmp(); -> invalid assembler"
href="http://llvm.org/bugs/show_bug.cgi?id=18974">18974</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>res=__builtin_setjmp(); -> invalid assembler
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arigo@tunes.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>__builtin_setjmp() only works when we immediately switch on its result and
branch into two different code paths. If instead we write this kind of code:
int res = __builtin_setjmp();
do_this_in_all_cases();
then, at least on x86-64, it produces this kind of assembler for the first
line:
movq %rbp, -80(%rbp)
movq %rsp, -64(%rbp)
movq $".LBB4_-1", -72(%rbp)
where ".LBB4_-1" is a bogus label not defined anywhere in the .s file. It
fails to assemble, of course.</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>