]> granicus.if.org Git - clang/commit
[modules] Make GNUMode a normal language option to fix module compilation.
authorVassil Vassilev <v.g.vassilev@gmail.com>
Mon, 6 Mar 2017 16:54:40 +0000 (16:54 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Mon, 6 Mar 2017 16:54:40 +0000 (16:54 +0000)
commit5a1f41150f287f59d68338f562c2de20bcefab49
treefe98d6926b43e5252f0cab16b84ed6a1db383cb0
parent47d2e226a05a51f0b54b3630a038ba2f8cd4f6d5
[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)!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297030 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def