summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2013-01-09 10:46:49 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-01-10 15:06:13 +0000
commita608dcb108100c41b2b35177aa32e4d07a37fd89 (patch)
tree93c6351dc4db29155334f53ca1ac56ca6c299d86
parentbcaf784354f0178ad144e08c780fed2ac0cb89cb (diff)
downloadgcc-tarball-a608dcb108100c41b2b35177aa32e4d07a37fd89.tar.gz
Pass --be8 by default for armv7-a when configured big-endian.
Back-ported from upstream: commit c6e19dd6c296449f6d9e54d630f8198acf103d24 Author: wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Jul 25 20:13:46 2012 +0000 Pass -be8 by default for armv7-a when configured big-endian. config/arm/bpabi.h (BE8_LINK_SPEC): Set according to TARGET_BIG_ENDIAN_DEFAULT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189867 138bc75d-0d04-0410-961f-82ee72b054a4 See also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16350
-rw-r--r--gcc/config/arm/bpabi.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h
index 7b5ee62310..e24276780b 100644
--- a/gcc/config/arm/bpabi.h
+++ b/gcc/config/arm/bpabi.h
@@ -55,8 +55,19 @@
#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*"\
"|march=armv4|mcpu=fa526|mcpu=fa626:--fix-v4bx}"
-#define BE8_LINK_SPEC " %{mbig-endian:%{march=armv7-a|mcpu=cortex-a5"\
- "|mcpu=cortex-a8|mcpu=cortex-a9|mcpu=cortex-a15:%{!r:--be8}}}"
+#if TARGET_BIG_ENDIAN_DEFAULT
+#define BE8_LINK_SPEC \
+ " %{!mlittle-endian:%{march=armv7-a|mcpu=cortex-a5 \
+ |mcpu=cortex-a7 \
+ |mcpu=cortex-a8|mcpu=cortex-a9|mcpu=cortex-a15 \
+ :%{!r:--be8}}}"
+#else
+#define BE8_LINK_SPEC \
+ " %{mbig-endian:%{march=armv7-a|mcpu=cortex-a5 \
+ |mcpu=cortex-a7 \
+ |mcpu=cortex-a8|mcpu=cortex-a9|mcpu=cortex-a15 \
+ :%{!r:--be8}}}"
+#endif
/* Tell the assembler to build BPABI binaries. */
#undef SUBTARGET_EXTRA_ASM_SPEC