From f668a714b1b72d126e218ecb67d744ff1fef2e17 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Feb 2009 18:20:57 +0000 Subject: [PATCH] -funsigned-char sets __CHAR_UNSIGNED__ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63942 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/Preprocessor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.50.1