<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:dwmw2@infradead.org" title="dwmw2@infradead.org <dwmw2@infradead.org>"> <span class="fn">dwmw2@infradead.org</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - clang: can't compile arch/x86/boot in kernel (.code16gcc)"
href="http://llvm.org/bugs/show_bug.cgi?id=9255">bug 9255</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>dwmw2@infradead.org
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>DUPLICATE
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - clang: can't compile arch/x86/boot in kernel (.code16gcc)"
href="http://llvm.org/bugs/show_bug.cgi?id=9255#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - clang: can't compile arch/x86/boot in kernel (.code16gcc)"
href="http://llvm.org/bugs/show_bug.cgi?id=9255">bug 9255</a>
from <span class="vcard"><a class="email" href="mailto:dwmw2@infradead.org" title="dwmw2@infradead.org <dwmw2@infradead.org>"> <span class="fn">dwmw2@infradead.org</span></a>
</span></b>
<pre>Actually I don't think this is a duplicate of <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [MC assembler] .code32, .code64 not supported"
href="show_bug.cgi?id=8595">bug 8595</a> (or <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [MC assembler] X86-16 not supported"
href="show_bug.cgi?id=8684">bug 8684</a>) since
those are for *assembly*. The Linux kernel has a bunch of C code in
arch/x86/boot which is compiled in 16-bit mode by GCC using the *trick* of
asm(".code16gcc"). But that's horrid. We want a proper -m16 mode instead.
I have implemented such a mode, and with the exception of <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Intrinsics don't honour -mregparm=3 on i386"
href="show_bug.cgi?id=18415">bug 18415</a> it is now
working fine to compile the C code, and it's booting my kernel correctly.</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>