forked from OSchip/llvm-project
Make using '-fshort-enums' an error until it is actually implemented (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>.
llvm-svn: 91191
This commit is contained in:
parent
e363c8e1df
commit
eadc7c3537
|
@ -327,6 +327,7 @@ def fprofile_generate : Flag<"-fprofile-generate">, Group<f_Group>;
|
|||
def framework : Separate<"-framework">, Flags<[LinkerInput]>;
|
||||
def frtti : Flag<"-frtti">, Group<f_Group>;
|
||||
def fsched_interblock : Flag<"-fsched-interblock">, Group<clang_ignored_f_Group>;
|
||||
def fshort_enums : Flag<"-fshort-enums">, Group<clang_ignored_f_Group>;
|
||||
def freorder_blocks : Flag<"-freorder-blocks">, Group<clang_ignored_f_Group>;
|
||||
def fshort_wchar : Flag<"-fshort-wchar">, Group<f_Group>;
|
||||
def fshow_source_location : Flag<"-fshow-source-location">, Group<f_Group>;
|
||||
|
|
|
@ -798,7 +798,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
Arg *Unsupported;
|
||||
if ((Unsupported = Args.getLastArg(options::OPT_MG)) ||
|
||||
(Unsupported = Args.getLastArg(options::OPT_MQ)) ||
|
||||
(Unsupported = Args.getLastArg(options::OPT_iframework)))
|
||||
(Unsupported = Args.getLastArg(options::OPT_iframework)) ||
|
||||
(Unsupported = Args.getLastArg(options::OPT_fshort_enums)))
|
||||
D.Diag(clang::diag::err_drv_clang_unsupported)
|
||||
<< Unsupported->getOption().getName();
|
||||
|
||||
|
|
|
@ -7,3 +7,6 @@
|
|||
// RUN: grep -F '"-fno-math-errno"' %t
|
||||
// RUN: grep -F '"-fno-show-source-location"' %t
|
||||
// RUN: grep -F '"-fshort-wchar"' %t
|
||||
// RUN: clang -fshort-enums -x c /dev/null 2>&1 | FileCheck -check-prefix=CHECK-SHORT-ENUMS %s
|
||||
|
||||
// CHECK-SHORT-ENUMS: compiler does not support '-fshort-enums'
|
||||
|
|
Loading…
Reference in New Issue