<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 - Illegal fragment fill size when using current address in size computation"
href="https://bugs.llvm.org/show_bug.cgi?id=46702">46702</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Illegal fragment fill size when using current address in size computation
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jean-michel.gorius@ens-rennes.fr
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23723" name="attach_23723" title="Backtrace">attachment 23723</a> <a href="attachment.cgi?id=23723&action=edit" title="Backtrace">[details]</a></span>
Backtrace
When trying to compile the following assembly code with clang, an assertion
triggers in the assembler:
<span class="quote">> foo:
> jmp .
> .fill 1024 - (. - foo), 0</span >
produces
<span class="quote">> clang-11: /mnt/llvm-dev/github-llvm-project/llvm/lib/MC/MCAssembler.cpp:585: void writeFragment(llvm::raw_ostream &, const llvm::MCAssembler &, const llvm::MCAsmLayout &, const llvm::MCFragment &): Assertion `0 < VSize && VSize <= MaxChunkSize && "Illegal fragment fill size"' failed.</span >
gcc 10.1.0 compile foos.s without complaining. The complete backtrace is
attached to this message.
Note: Substituting .space for .fill makes the code compile with clang.</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>