x86, build: Build 16-bit code with -m16 where possible
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 29 Jan 2014 12:16:47 +0000 (12:16 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Jan 2014 16:05:36 +0000 (08:05 -0800)
commitde3accdaec88851874c573031de007283e90b199
tree95dacded75ffe16891ddb7a26aacd7b2ea280621
parent5fbbc25a99d680feca99a3095f0440f65d4307cc
x86, build: Build 16-bit code with -m16 where possible

Both clang 3.5 and GCC 4.9 will support this (as of r199754 and r207196
respectively). Both have been tested to produce booting kernels when the
16-bit code is built with -m16. (Modulo LLVM PR3997, at least.)

[ hpa: folded test for -m16 into M16_CFLAGS ]

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Link: http://lkml.kernel.org/r/1390997807.20153.133.camel@i7.infradead.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/Makefile