diff options
author | andrew <andrew@FreeBSD.org> | 2014-01-12 15:35:03 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2014-01-12 15:35:03 +0000 |
commit | 5cac9c644af73bd1a7587894f78302408d7d8887 (patch) | |
tree | a8a51f14bf008cb8219ec79e6cf48fad08757ce0 /contrib | |
parent | d9c8f41d9c7898e6578fb8c586a68097b9a6e36d (diff) | |
download | FreeBSD-src-5cac9c644af73bd1a7587894f78302408d7d8887.zip FreeBSD-src-5cac9c644af73bd1a7587894f78302408d7d8887.tar.gz |
Fix gcc with EABI on big-endian ARM by setting the endian correctly.
Without this gcc would generate byte loads for a little-endian core.
MFC after: 1 week
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/config/arm/freebsd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/gcc/config/arm/freebsd.h b/contrib/gcc/config/arm/freebsd.h index 8b03615..6e42d3d 100644 --- a/contrib/gcc/config/arm/freebsd.h +++ b/contrib/gcc/config/arm/freebsd.h @@ -72,6 +72,9 @@ #undef TARGET_DEFAULT_FLOAT_ABI #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT +#undef TARGET_DEFAULT +#define TARGET_DEFAULT (MASK_INTERWORK | TARGET_ENDIAN_DEFAULT) + #undef ARM_DEFAULT_ABI #define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX |