svn commit: r260565 - head/contrib/gcc/config/arm
Andrew Turner
andrew at FreeBSD.org
Sun Jan 12 15:35:04 UTC 2014
Author: andrew
Date: Sun Jan 12 15:35:03 2014
New Revision: 260565
URL: http://svnweb.freebsd.org/changeset/base/260565
Log:
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
Modified:
head/contrib/gcc/config/arm/freebsd.h
Modified: head/contrib/gcc/config/arm/freebsd.h
==============================================================================
--- head/contrib/gcc/config/arm/freebsd.h Sun Jan 12 14:37:39 2014 (r260564)
+++ head/contrib/gcc/config/arm/freebsd.h Sun Jan 12 15:35:03 2014 (r260565)
@@ -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
More information about the svn-src-all
mailing list