diff options
author | Bharathi Seshadri <bseshadr@cisco.com> | 2012-07-25 20:13:46 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2012-07-25 13:13:46 -0700 |
commit | b0c724c227cb3ce649f6117b89e7b84f309b889a (patch) | |
tree | 0f3f1ddbccf4e5460bc22bb29c5b635d06427bbb /gcc/config/arm | |
parent | f778c049cd880c4d653ad7ab857e61480d5efd35 (diff) | |
download | gcc-b0c724c227cb3ce649f6117b89e7b84f309b889a.zip gcc-b0c724c227cb3ce649f6117b89e7b84f309b889a.tar.gz gcc-b0c724c227cb3ce649f6117b89e7b84f309b889a.tar.bz2 |
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.
Co-Authored-By: Jim Wilson <jimwilso@cisco.com>
From-SVN: r189867
Diffstat (limited to 'gcc/config/arm')
-rw-r--r-- | gcc/config/arm/bpabi.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h index 7d8e508..f6d1a3d 100644 --- a/gcc/config/arm/bpabi.h +++ b/gcc/config/arm/bpabi.h @@ -55,15 +55,27 @@ #define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*"\ "|march=armv4|mcpu=fa526|mcpu=fa626:--fix-v4bx}" +#if TARGET_BIG_ENDIAN_DEFAULT #define BE8_LINK_SPEC \ - " %{mbig-endian:%{march=armv7-a|mcpu=cortex-a5 \ - |mcpu=cortex-a7 \ - |mcpu=cortex-a8|mcpu=cortex-a9|mcpu=cortex-a15 \ - |mcpu=generic-armv7-a \ - |march=armv7-m|mcpu=cortex-m3 \ - |march=armv7e-m|mcpu=cortex-m4 \ - |march=armv6-m|mcpu=cortex-m0 \ + " %{!mlittle-endian:%{march=armv7-a|mcpu=cortex-a5 \ + |mcpu=cortex-a7 \ + |mcpu=cortex-a8|mcpu=cortex-a9|mcpu=cortex-a15 \ + |mcpu=generic-armv7-a \ + |march=armv7-m|mcpu=cortex-m3 \ + |march=armv7e-m|mcpu=cortex-m4 \ + |march=armv6-m|mcpu=cortex-m0 \ :%{!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 \ + |mcpu=generic-armv7-a \ + |march=armv7-m|mcpu=cortex-m3 \ + |march=armv7e-m|mcpu=cortex-m4 \ + |march=armv6-m|mcpu=cortex-m0 \ + :%{!r:--be8}}}" +#endif /* Tell the assembler to build BPABI binaries. */ #undef SUBTARGET_EXTRA_ASM_SPEC |