summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-13 13:07:02 -0400
committermidipix <writeonce@midipix.org>2015-09-13 22:58:58 -0400
commitdb01c110cf8e368e3bf2155b448f0fa667e9218e (patch)
tree72c41cca985d49570b75f866f2b2a280da0bc2ee
parent50bd336141e1e0517983738b96d1a1d50829ca87 (diff)
downloadcbb-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.
-rw-r--r--gcc/config/i386/midipix.h19
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)