From 5cac9c644af73bd1a7587894f78302408d7d8887 Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 12 Jan 2014 15:35:03 +0000 Subject: 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 --- contrib/gcc/config/arm/freebsd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/gcc') 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 -- cgit v1.1