diff options
author | midipix <writeonce@midipix.org> | 2015-09-13 13:07:02 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-09-13 22:58:58 -0400 |
commit | db01c110cf8e368e3bf2155b448f0fa667e9218e (patch) | |
tree | 72c41cca985d49570b75f866f2b2a280da0bc2ee /gcc | |
parent | 50bd336141e1e0517983738b96d1a1d50829ca87 (diff) | |
download | cbb-gcc-4.6.4-db01c110cf8e368e3bf2155b448f0fa667e9218e.tar.bz2 cbb-gcc-4.6.4-db01c110cf8e368e3bf2155b448f0fa667e9218e.tar.xz |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/midipix.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <stdio.h> #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) |