[cfe-commits] r132468 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Thu Jun 2 10:30:53 PDT 2011
Author: rafael
Date: Thu Jun 2 12:30:53 2011
New Revision: 132468
URL: http://llvm.org/viewvc/llvm-project?rev=132468&view=rev
Log:
Add -fno-gnu89-inline.
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=132468&r1=132467&r2=132468&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Thu Jun 2 12:30:53 2011
@@ -300,6 +300,7 @@
def ffreestanding : Flag<"-ffreestanding">, Group<f_Group>;
def fgnu_keywords : Flag<"-fgnu-keywords">, Group<f_Group>;
def fgnu89_inline : Flag<"-fgnu89-inline">, Group<f_Group>;
+def fno_gnu89_inline : Flag<"-fno-gnu89-inline">, Group<f_Group>;
def fgnu_runtime : Flag<"-fgnu-runtime">, Group<f_Group>;
def fheinous_gnu_extensions : Flag<"-fheinous-gnu-extensions">;
def filelist : Separate<"-filelist">, Flags<[LinkerInput]>;
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=132468&r1=132467&r2=132468&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Jun 2 12:30:53 2011
@@ -1712,7 +1712,9 @@
options::OPT_fno_gnu_keywords))
A->render(Args, CmdArgs);
- if (Arg *A = Args.getLastArg(options::OPT_fgnu89_inline))
+ if (Args.hasFlag(options::OPT_fgnu89_inline,
+ options::OPT_fno_gnu89_inline,
+ false))
CmdArgs.push_back("-fgnu89-inline");
// -fnext-runtime defaults to on Darwin and when rewriting Objective-C, and is
More information about the cfe-commits
mailing list