Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2014 15:35:04 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260565 - head/contrib/gcc/config/arm
Message-ID:  <201401121535.s0CFZ4Hd077053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401121535.s0CFZ4Hd077053>