diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-31 16:29:28 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-31 16:29:28 +0000 |
commit | c89f02afb018316a0c36bf62b2cb75d420f2fff3 (patch) | |
tree | 7b202a72383ed811d8ddefe7b737f9c4724b7acd /include/clang/Basic/Builtins.h | |
parent | b8b4295b4ee161bfb76ff7b0ec1007bfd959553b (diff) |
Disable non-standard library builtins in non-gnu language modes.
Fixes PR16138.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index 3b88e1550c..77c0461f10 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -31,10 +31,12 @@ namespace clang { class LangOptions; enum LanguageID { - C_LANG = 0x1, // builtin for c only. - CXX_LANG = 0x2, // builtin for cplusplus only. - OBJC_LANG = 0x4, // builtin for objective-c and objective-c++ - ALL_LANGUAGES = (C_LANG|CXX_LANG|OBJC_LANG) //builtin is for all languages. + GNU_LANG = 0x1, // builtin requires GNU mode. + C_LANG = 0x2, // builtin for c only. + CXX_LANG = 0x4, // builtin for cplusplus only. + OBJC_LANG = 0x8, // builtin for objective-c and objective-c++ + ALL_LANGUAGES = C_LANG | CXX_LANG | OBJC_LANG, // builtin for all languages. + ALL_GNU_LANGUAGES = ALL_LANGUAGES | GNU_LANG // builtin requires GNU mode. }; namespace Builtin { |