From: Lauro Ramos Venancio Date: Sun, 20 Jan 2008 04:02:16 +0000 (+0000) Subject: Fix the __SIZE_TYPE__ definition on x86_32. This fixes the alloca.c (wget 1.10.2... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0e3abcf9f4e3d12f1f7766a4240393bd56df1c8;p=clang Fix the __SIZE_TYPE__ definition on x86_32. This fixes the alloca.c (wget 1.10.2) compilation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46196 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Basic/Targets.cpp b/Basic/Targets.cpp index fcd105a7aa..afe6e74f66 100644 --- a/Basic/Targets.cpp +++ b/Basic/Targets.cpp @@ -194,19 +194,20 @@ static void getX86Defines(std::vector &Defs, bool is64Bit) { Define(Defs, "__LONG_MAX__", "9223372036854775807L"); Define(Defs, "__PTRDIFF_TYPE__", "long int"); Define(Defs, "__UINTMAX_TYPE__", "long unsigned int"); + Define(Defs, "__SIZE_TYPE__", "long unsigned int"); } else { Define(Defs, "__INTMAX_MAX__", "9223372036854775807LL"); Define(Defs, "__INTMAX_TYPE__", "long long int"); Define(Defs, "__LONG_MAX__", "2147483647L"); Define(Defs, "__PTRDIFF_TYPE__", "int"); Define(Defs, "__UINTMAX_TYPE__", "long long unsigned int"); + Define(Defs, "__SIZE_TYPE__", "unsigned int"); } Define(Defs, "__CHAR_BIT__", "8"); Define(Defs, "__INT_MAX__", "2147483647"); Define(Defs, "__LONG_LONG_MAX__", "9223372036854775807LL"); Define(Defs, "__SCHAR_MAX__", "127"); Define(Defs, "__SHRT_MAX__", "32767"); - Define(Defs, "__SIZE_TYPE__", "long unsigned int"); // Subtarget options. Define(Defs, "__nocona");