summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2017-03-06 16:54:40 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2017-03-06 16:54:40 +0000
commit3d54e831bc34ca4a31518bcab87a9be2452cbd18 (patch)
treeb887cc6dd49498e931033f35ed18d9e2ed1b88c9
parent79a9ecbe802cb42f1891693243464bc69b570d8d (diff)
downloadbcm5719-llvm-3d54e831bc34ca4a31518bcab87a9be2452cbd18.tar.gz
bcm5719-llvm-3d54e831bc34ca4a31518bcab87a9be2452cbd18.zip
[modules] Make GNUMode a normal language option to fix module compilation.
GNUMode shouldn't be a benign language option because it influences the resulting AST when checking for the existence of GNUMode-specific macro "linux" (e.g. by having code inside #ifdef linux). This patch marks it as a normal language option so it gets correctly passed to the compiler invocation for the used modules. The added test case illustrated this because it compiles without modules, but fails when using modules. Patch by Raphael Isemann (D30496)! llvm-svn: 297030
-rw-r--r--clang/include/clang/Basic/LangOptions.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Basic/LangOptions.def b/clang/include/clang/Basic/LangOptions.def
index d02909eb07e..71262755030 100644
--- a/clang/include/clang/Basic/LangOptions.def
+++ b/clang/include/clang/Basic/LangOptions.def
@@ -107,7 +107,7 @@ LANGOPT(WChar , 1, CPlusPlus, "wchar_t keyword")
LANGOPT(DeclSpecKeyword , 1, 0, "__declspec keyword")
BENIGN_LANGOPT(DollarIdents , 1, 1, "'$' in identifiers")
BENIGN_LANGOPT(AsmPreprocessor, 1, 0, "preprocessor in asm mode")
-BENIGN_LANGOPT(GNUMode , 1, 1, "GNU extensions")
+LANGOPT(GNUMode , 1, 1, "GNU extensions")
LANGOPT(GNUKeywords , 1, 1, "GNU keywords")
BENIGN_LANGOPT(ImplicitInt, 1, !C99 && !CPlusPlus, "C89 implicit 'int'")
LANGOPT(Digraphs , 1, 0, "digraphs")
OpenPOWER on IntegriCloud