]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca1c3f7ef132e5cb53757a6cc4944d4a8a99b8ed
tree95dacded75ffe16891ddb7a26aacd7b2ea280621
parentf52da4c869bbd34eb553ebe7807f434cfe03ab46
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