From db01c110cf8e368e3bf2155b448f0fa667e9218e Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 13 Sep 2015 13:07:02 -0400 Subject: fix bi-arch macro definitions (size_t,ptrdiff_t,wchar) for the midipix targets. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- gcc/config/i386/midipix.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gcc/config/i386/midipix.h b/gcc/config/i386/midipix.h index 2354cf2ce..5094560a1 100644 --- a/gcc/config/i386/midipix.h +++ b/gcc/config/i386/midipix.h @@ -22,6 +22,7 @@ #include #include "coretypes.h" + #if TARGET_64BIT_DEFAULT #define MULTILIB_DEFAULTS { "m64" } #else @@ -29,6 +30,24 @@ #endif +#undef SIZE_TYPE +#define SIZE_TYPE (TARGET_64BIT \ + ? "long unsigned int" \ + : "unsigned int") + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE (TARGET_64BIT \ + ? "long int" \ + : "int") + +#undef WCHAR_TYPE +#define WCHAR_TYPE "int" + + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE 32 + + /* identify targets */ #define TARGET_NT64 (TARGET_64BIT) #define TARGET_NT32 (!TARGET_64BIT) -- cgit v1.2.3