summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-11-12 16:36:16 +0000
committermarcel <marcel@FreeBSD.org>1999-11-12 16:36:16 +0000
commit1b5e9c01a918d993ce544ac3100ae7bdb5561f54 (patch)
tree23a82ddf24ed3200eb158cd1ea697a605b9ce7f4 /contrib/gcc
parent845b7f9427775da2533b0c7d59906273f5abdc1a (diff)
downloadFreeBSD-src-1b5e9c01a918d993ce544ac3100ae7bdb5561f54.zip
FreeBSD-src-1b5e9c01a918d993ce544ac3100ae7bdb5561f54.tar.gz
Make cross-compilation work for Alpha on i386 machines. Note that
the optimizer has a bug somewhere. This means that only -O0 works at this time.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/config/alpha/freebsd4.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/contrib/gcc/config/alpha/freebsd4.h b/contrib/gcc/config/alpha/freebsd4.h
index a240417..62f5422 100644
--- a/contrib/gcc/config/alpha/freebsd4.h
+++ b/contrib/gcc/config/alpha/freebsd4.h
@@ -21,7 +21,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* This is used on Alpha platforms that use the ELF format.
This was taken from the NetBSD configuration, and modified
for FreeBSD/alpha by Hidetoshi Shimokawa <simokawa@FreeBSD.ORG> */
-
+/* $FreeBSD$
+ */
/* Get generic FreeBSD definitions. */
#include <freebsd.h>
@@ -68,6 +69,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
+/*
+ * Handle cross-compilation on 32-bits machines (such as i386)
+ * for 64-bits machines (Alpha in this case).
+ */
+#if defined(__i386__)
+#undef HOST_BITS_PER_LONG
+#define HOST_BITS_PER_LONG 32
+#undef HOST_WIDE_INT
+#define HOST_WIDE_INT long long
+#undef HOST_BITS_PER_WIDE_INT
+#define HOST_BITS_PER_WIDE_INT 64
+#endif
+
/* Output assembler code to FILE to increment profiler label # LABELNO
for profiling a function entry. Under FreeBSD/Alpha, the assembler does
nothing special with -pg. */
OpenPOWER on IntegriCloud