summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2014-01-12 15:35:03 +0000
committerandrew <andrew@FreeBSD.org>2014-01-12 15:35:03 +0000
commit5cac9c644af73bd1a7587894f78302408d7d8887 (patch)
treea8a51f14bf008cb8219ec79e6cf48fad08757ce0 /contrib
parentd9c8f41d9c7898e6578fb8c586a68097b9a6e36d (diff)
downloadFreeBSD-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.h3
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
OpenPOWER on IntegriCloud