]> granicus.if.org Git - clang/commit
[Driver] Fix handling of -fbuiltin/-fcommon when combined with -mkernel
authorJohn Brawn <john.brawn@arm.com>
Mon, 10 Aug 2015 11:11:28 +0000 (11:11 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 10 Aug 2015 11:11:28 +0000 (11:11 +0000)
commit4b12a3a5a202ddad229f72103b0f04790a1854b7
treeefeeedcfd121ead5eff500c0b6aa2036d18bde3c
parentf964188b2da25fd914451f76818658120e373786
[Driver] Fix handling of -fbuiltin/-fcommon when combined with -mkernel

-mkernel enables -fno-builtin and -fno-common by default, but allows -fbuiltin
and -fcommon to override that. However "-fbuiltin -fno-builtin" is treated the
same as "-fbuiltin" which is wrong, so fix that. Also fixes similar behaviour
when -fno-common is default.

Differential Revision: http://reviews.llvm.org/D11459

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/apple-kext-mkernel.c