From 36d4e0b9246f5365a9ad8a6bcbc6de6e8bcc746b Mon Sep 17 00:00:00 2001
From: Seth LaForge <sethml@google.com>
Date: Wed, 20 Feb 2013 14:47:25 -0800
Subject: [PATCH] Add TARGET_BIG_ENDIAN_DEFAULT=1 for all armeb-*-eabi* archs.

---
 gcc/config.gcc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index fce3796..814f13a 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -900,6 +900,10 @@ arm*-*-uclinux*eabi*)		# ARM ucLinux
 	default_use_cxa_atexit=yes
 	;;
 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
+	case ${target} in
+	armeb-*-eabi*)
+		tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
+	esac
 	# The BPABI long long divmod functions return a 128-bit value in
 	# registers r0-r3.  Correctly modeling that requires the use of
 	# TImode.
-- 
1.8.1.3

