[SeaBIOS] [PATCH 0/4] Reduce use of .code16gcc

David Woodhouse dwmw2 at infradead.org
Tue Jun 3 18:25:57 CEST 2014


This is a gratuitous GCC-ism. For C code actually compiled with GCC we
should be using -m16 where it's available (GCC 4.9+).

And where the only thing marked with .code16gcc is explicit assembler
code, we should just use .code16 and avoid letting the compiler make any
of the assumptions that the difference affects. Which, in fact, we
already do.

(Once upon a time with ancient versions of gas, we needed to
use .code16gcc because some instructions just wouldn't compile
otherwise. That hasn't been true for a while though.)

It still doesn't actually build with clang after this, but it's a bit
closer.

-- 
dwmw2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <http://www.seabios.org/pipermail/seabios/attachments/20140603/22272ba6/attachment.bin>


More information about the SeaBIOS mailing list