summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/cc_tools/size-host.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/cc/cc_tools/size-host.h')
-rw-r--r--gnu/usr.bin/cc/cc_tools/size-host.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/size-host.h b/gnu/usr.bin/cc/cc_tools/size-host.h
new file mode 100644
index 0000000..8d5136f
--- /dev/null
+++ b/gnu/usr.bin/cc/cc_tools/size-host.h
@@ -0,0 +1,47 @@
+/* $FreeBSD$ */
+
+#ifdef SIZEOF_INT
+# undef SIZEOF_INT
+#endif
+
+#ifdef SIZEOF_SHORT
+# undef SIZEOF_SHORT
+#endif
+
+#ifdef SIZEOF_LONG
+# undef SIZEOF_LONG
+#endif
+
+#ifdef SIZEOF_VOID_P
+# undef SIZEOF_VOID_P
+#endif
+
+#ifdef SIZEOF_LONG_LONG
+# undef SIZEOF_LONG_LONG
+#endif
+
+#ifdef HOST_WIDE_INT
+# undef HOST_WIDE_INT
+#endif
+
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
+#define SIZEOF_LONG_LONG 8
+
+#if __LP64__
+#define SIZEOF_LONG 8
+#define SIZEOF_VOID_P 8
+#define HOST_WIDE_INT long
+#else
+#define SIZEOF_LONG 4
+#define SIZEOF_VOID_P 4
+#define HOST_WIDE_INT long long
+#endif
+
+#ifdef WORDS_BIGENDIAN
+#undef WORDS_BIGENDIAN
+#endif
+
+#if defined(__sparc64__) || defined(__ARMEB__)
+#define WORDS_BIGENDIAN 1
+#endif
OpenPOWER on IntegriCloud