[cfe-commits] r63942 - /cfe/trunk/lib/Lex/Preprocessor.cpp
Chris Lattner
sabre at nondot.org
Fri Feb 6 10:20:57 PST 2009
Author: lattner
Date: Fri Feb 6 12:20:57 2009
New Revision: 63942
URL: http://llvm.org/viewvc/llvm-project?rev=63942&view=rev
Log:
-funsigned-char sets __CHAR_UNSIGNED__
Modified:
cfe/trunk/lib/Lex/Preprocessor.cpp
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=63942&r1=63941&r2=63942&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Fri Feb 6 12:20:57 2009
@@ -572,6 +572,9 @@
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");
More information about the cfe-commits
mailing list