Driver: Error on -fno-for-scope, which we have no intention of supporting.
llvm-svn: 116627
This commit is contained in:
parent
43a8c39b9c
commit
6358d6866d
|
@ -275,6 +275,10 @@ def fextdirs_EQ : Joined<"-fextdirs=">, Group<f_Group>;
|
|||
def fhosted : Flag<"-fhosted">, Group<f_Group>;
|
||||
def ffast_math : Flag<"-ffast-math">, Group<clang_ignored_f_Group>;
|
||||
def ffinite_math_only : Flag<"-ffinite-math-only">, Group<clang_ignored_f_Group>;
|
||||
|
||||
def ffor_scope : Flag<"-ffor-scope">, Group<f_Group>;
|
||||
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 fgnu_runtime : Flag<"-fgnu-runtime">, Group<f_Group>;
|
||||
|
|
|
@ -1406,12 +1406,18 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-fno-common");
|
||||
|
||||
// -fsigned-bitfields is default, and clang doesn't yet support
|
||||
// --funsigned-bitfields.
|
||||
// -funsigned-bitfields.
|
||||
if (!Args.hasFlag(options::OPT_fsigned_bitfields,
|
||||
options::OPT_funsigned_bitfields))
|
||||
D.Diag(clang::diag::warn_drv_clang_unsupported)
|
||||
<< Args.getLastArg(options::OPT_funsigned_bitfields)->getAsString(Args);
|
||||
|
||||
// -fsigned-bitfields is default, and clang doesn't support -fno-for-scope.
|
||||
if (!Args.hasFlag(options::OPT_ffor_scope,
|
||||
options::OPT_fno_for_scope))
|
||||
D.Diag(clang::diag::err_drv_clang_unsupported)
|
||||
<< Args.getLastArg(options::OPT_fno_for_scope)->getAsString(Args);
|
||||
|
||||
// -fcaret-diagnostics is default.
|
||||
if (!Args.hasFlag(options::OPT_fcaret_diagnostics,
|
||||
options::OPT_fno_caret_diagnostics, true))
|
||||
|
|
Loading…
Reference in New Issue