From 1b5e9c01a918d993ce544ac3100ae7bdb5561f54 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 12 Nov 1999 16:36:16 +0000 Subject: 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. --- contrib/gcc/config/alpha/freebsd4.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'contrib/gcc/config') 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 */ - +/* $FreeBSD$ + */ /* Get generic FreeBSD definitions. */ #include @@ -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. */ -- cgit v1.1