<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 - rG31d219d2997f hangs when compiling the Linux kernel"
href="https://bugs.llvm.org/show_bug.cgi?id=49870">49870</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>rG31d219d2997f hangs when compiling the Linux kernel
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lebedev.ri@gmail.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>samitolvanen@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, ndesaulniers@google.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24725" name="attach_24725" title="Preprocessed x86-stub.c">attachment 24725</a> <a href="attachment.cgi?id=24725&action=edit" title="Preprocessed x86-stub.c">[details]</a></span>
Preprocessed x86-stub.c
After commit 31d219d2997fed1b7dc97e0adf170d5aaf65883e, Clang hangs when
compiling the Linux kernel, specifically the file
drivers/firmware/efi/libstub/x86-stub.c:
<a href="https://reviews.llvm.org/rG31d219d2997fed1b7dc97e0adf170d5aaf65883e">https://reviews.llvm.org/rG31d219d2997fed1b7dc97e0adf170d5aaf65883e</a>
<a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/firmware/efi/libstub/x86-stub.c">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/firmware/efi/libstub/x86-stub.c</a>
I've attached the preprocessed source file, and you can reproduce the issue by
running:
$ clang -nostdinc -m64 -fPIC -fno-strict-aliasing -mno-red-zone -mno-mmx
-mno-sse -fshort-wchar -Wno-pointer-sign -Wno-address-of-packed-member -Wno-gnu
-fno-asynchronous-unwind-tables -Os -ffreestanding -fno-stack-protector
-fno-addrsig -c x86-stub.c</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>