[cfe-commits] r70010 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Fri Apr 24 22:33:24 PDT 2009
Author: ddunbar
Date: Sat Apr 25 00:33:23 2009
New Revision: 70010
URL: http://llvm.org/viewvc/llvm-project?rev=70010&view=rev
Log:
Driver: -mkernel and -fapple-kext imply -mno-red-zone.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=70010&r1=70009&r2=70010&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Apr 25 00:33:23 2009
@@ -307,7 +307,9 @@
CmdArgs.push_back("--unwind-tables=0");
if (!Args.hasFlag(options::OPT_mred_zone,
options::OPT_mno_red_zone,
- true))
+ true) ||
+ Args.hasArg(options::OPT_mkernel) ||
+ Args.hasArg(options::OPT_fapple_kext))
CmdArgs.push_back("--disable-red-zone");
if (Args.hasFlag(options::OPT_msoft_float,
options::OPT_mno_soft_float,
More information about the cfe-commits
mailing list