Add -fno-gnu89-inline.

llvm-svn: 132468
This commit is contained in:
Rafael Espindola 2011-06-02 17:30:53 +00:00
parent dac0238ed2
commit 922a624144
2 changed files with 4 additions and 1 deletions

View File

@ -300,6 +300,7 @@ def fno_for_scope : Flag<"-fno-for-scope">, Group<f_Group>;
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]>;

View File

@ -1712,7 +1712,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
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