mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 21:44:34 +01:00
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
This commit is contained in:
parent
f4f21b5c0a
commit
bad1bfea45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53149
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user