-funsigned-char sets __CHAR_UNSIGNED__

llvm-svn: 63942
This commit is contained in:
Chris Lattner
2009-02-06 18:20:57 +00:00
parent cd2cd9f5d7
commit a31829b5bc

View File

@@ -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");