<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 - "fatal error: error in backend: Unable to copy EFLAGS physical register!""
href="https://bugs.llvm.org/show_bug.cgi?id=39073">39073</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"fatal error: error in backend: Unable to copy EFLAGS physical register!"
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>7.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>willdtz@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Occurs with LLVM 7 and trunk as of yesterday.
I've reproduced the problem using the prebuilt Ubuntu toolchain (in a docker
container, 16.04), as well.
Attached are the clang reproducers -- paths will need minor touchups to execute
on your system. Well I'll attach them immediately after submitting anyway.
Seems to be caused by using `-fPIC -mcmodel=large`, which I used with previous
versions of clang (4,5,6) when building code intended for the JIT.
If you're curious or in case it helps, the source file being compiled is this
one from musl:
<a href="https://raw.githubusercontent.com/dtzWill/musl/master/src/misc/a64l.c">https://raw.githubusercontent.com/dtzWill/musl/master/src/misc/a64l.c</a>
(
<a href="https://raw.githubusercontent.com/dtzWill/musl/c50985d5c8e316c5c464f352e79eeebfed1121a9/src/misc/a64l.c">https://raw.githubusercontent.com/dtzWill/musl/c50985d5c8e316c5c464f352e79eeebfed1121a9/src/misc/a64l.c</a>
)
I'm happy to offer more details as needed, let me know if there's anything that
would help.
This is not personally a huge blocker, but since it's a fatal error and a
relatively simple test function, hopefully it helps pinpoint a problem that
maybe is a big deal for someone :).</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>