[LLVMbugs] [Bug 9255] clang: can't compile arch/x86/boot in kernel (.code16gcc)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 7 16:16:02 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=9255

dwmw2 at infradead.org <dwmw2 at infradead.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |dwmw2 at infradead.org
         Resolution|DUPLICATE                   |---

--- Comment #3 from dwmw2 at infradead.org <dwmw2 at infradead.org> ---
Actually I don't think this is a duplicate of bug 8595 (or bug 8684) 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 bug 18415 it is now
working fine to compile the C code, and it's booting my kernel correctly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140108/ce110072/attachment.html>


More information about the llvm-bugs mailing list