diff options
author | Bernhard Fischer <aldot@gcc.gnu.org> | 2007-11-08 13:44:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2007-11-08 13:44:09 +0000 |
commit | d3a9662cad3d78d1598aac80b69d3fa466ae9b03 (patch) | |
tree | 7d58b8b7f19b7bb6f0572a681318829dd2cd348e /gcc/config.gcc | |
parent | c4e2c79ee42a0fef895b3e3672a8c34561a034a3 (diff) | |
download | gcc-d3a9662cad3d78d1598aac80b69d3fa466ae9b03.zip gcc-d3a9662cad3d78d1598aac80b69d3fa466ae9b03.tar.gz gcc-d3a9662cad3d78d1598aac80b69d3fa466ae9b03.tar.bz2 |
re PR target/16350 (gcc only understands little endian ARM systems)
PR target/16350
* config.gcc: For arm*b-* define TARGET_BIG_ENDIAN_DEFAULT.
* config/arm/linux-elf.h (TARGET_ENDIAN_DEFAULT): Define based on TARGET_BIG_ENDIAN_DEFAULT.
Use for MULTILIB_DEFAULTS.
(TARGET_DEFAULT): Set according to TARGET_ENDIAN_DEFAULT.
(LINUX_TARGET_LINK_SPEC): Pass -mlittle-endian on to the assembler.
* config/arm/linux-eabi.h (TARGET_LINKER_EMULATION): Set according to TARGET_BIG_ENDIAN_DEFAULT.
(SUBTARGET_EXTRA_LINK_SPEC): Likewise.
* gcc/config/arm/bpabi.h (TARGET_DEFAULT_MASK): Set according to TARGET_BIG_ENDIAN_DEFAULT.
From-SVN: r129999
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index a46dbd6..0fc329c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -704,6 +704,11 @@ arm*-*-netbsd*) ;; arm*-*-linux*) # ARM GNU/Linux with ELF tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" + case $target in + arm*b-*) + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" + ;; + esac tmake_file="${tmake_file} t-linux arm/t-arm" case ${target} in arm*-*-linux-*eabi) |