<html>
<head>
<base href="https://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 --- - Assertion failed: (!isCommon()), function getOffset, file include/llvm/MC/MCSymbol.h, line 69." href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23621&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=GinAo5y2251acRC2e8DGm0124LDVYvyI6W3j4u9JRYA&s=rI_7lz5A0gcTiV4o2TGPOuWf7nnwUSSCFVa_HAFq2sI&e=">23621</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: (!isCommon()), function getOffset, file include/llvm/MC/MCSymbol.h, line 69.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</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>This assertion was reported in FreeBSD bug: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freebsd.org_200362&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=GinAo5y2251acRC2e8DGm0124LDVYvyI6W3j4u9JRYA&s=YS25xQ7LHXQMyO3kHAbGxev43fmmXy2Lf2adIarLytU&e=">https://bugs.freebsd.org/200362</a>
The minimized test case is:
void fn1() { __asm__(".comm FOO, 1"); }
void fn2() { fn1(); }
Compile this with any optimization level > 0, and it will assert:
$ ~/obj/237905-trunk-freebsd11-i386-ninja-rel-1/bin/clang -cc1 -emit-obj -O
comm-func.c
Assertion failed: (!isCommon()), function getOffset, file
/share/dim/src/llvm/trunk/include/llvm/MC/MCSymbol.h, line 69.
Abort trap</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>