aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-06 18:20:57 +0000
committerChris Lattner <sabre@nondot.org>2009-02-06 18:20:57 +0000
commitf668a714b1b72d126e218ecb67d744ff1fef2e17 (patch)
tree5f77b0c74894892dd761dd80403940934ff0c256 /lib/Lex/Preprocessor.cpp
parent4ce205f94c984ddc4776ba0c3de7e398d251653a (diff)
-funsigned-char sets __CHAR_UNSIGNED__
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 984cf1aab8..f4f3a0bfb6 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -572,6 +572,9 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, MacroBuf);
}
+ if (!TI.isCharSigned())
+ DefineBuiltinMacro(Buf, "__CHAR_UNSIGNED__");
+
// Build configuration options. FIXME: these should be controlled by
// command line options or something.
DefineBuiltinMacro(Buf, "__DYNAMIC__=1");