diff options
author | obrien <obrien@FreeBSD.org> | 1999-11-14 12:07:57 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-11-14 12:07:57 +0000 |
commit | 196d3fb65eb9ec94af3dd17cb1fedb7a42f877ec (patch) | |
tree | 6155d859faef4e1f0fb09aa05bc3630a15bfb312 /contrib/gcc/config/alpha/freebsd.h | |
parent | 89cb48b53d85d7b9ca8c0b519095021f91500269 (diff) | |
download | FreeBSD-src-196d3fb65eb9ec94af3dd17cb1fedb7a42f877ec.zip FreeBSD-src-196d3fb65eb9ec94af3dd17cb1fedb7a42f877ec.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.
Submitted by: marcel
Diffstat (limited to 'contrib/gcc/config/alpha/freebsd.h')
-rw-r--r-- | contrib/gcc/config/alpha/freebsd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/gcc/config/alpha/freebsd.h b/contrib/gcc/config/alpha/freebsd.h index 00c6aac..7966776 100644 --- a/contrib/gcc/config/alpha/freebsd.h +++ b/contrib/gcc/config/alpha/freebsd.h @@ -542,3 +542,15 @@ dtors_section () \ #ifndef ASM_DECLARE_RESULT #define ASM_DECLARE_RESULT(FILE, RESULT) #endif + +/* 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 |