[cfe-commits] r147222 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Dec 23 09:00:41 PST 2011
Author: d0k
Date: Fri Dec 23 11:00:41 2011
New Revision: 147222
URL: http://llvm.org/viewvc/llvm-project?rev=147222&view=rev
Log:
Give C11's __STDC_VERSION__ the final value.
Modified:
cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=147222&r1=147221&r2=147222&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Fri Dec 23 11:00:41 2011
@@ -267,11 +267,8 @@
Builder.defineMacro("__STDC_HOSTED__");
if (!LangOpts.CPlusPlus) {
- // FIXME: C1x doesn't have a defined version number yet, so pick something
- // that is the minimum possible according to their placeholder scheme
- // 201ymmL.
if (LangOpts.C11)
- Builder.defineMacro("__STDC_VERSION__", "201001L");
+ Builder.defineMacro("__STDC_VERSION__", "201112L");
else if (LangOpts.C99)
Builder.defineMacro("__STDC_VERSION__", "199901L");
else if (!LangOpts.GNUMode && LangOpts.Digraphs)
More information about the cfe-commits
mailing list