patches/gcc/4.4.4/360-arm-bigendian.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@1948
     1
By Lennert Buytenhek <buytenh@wantstofly.org>
yann@1948
     2
Adds support for arm*b-linux* big-endian ARM targets
yann@1948
     3
yann@1948
     4
See http://gcc.gnu.org/PR16350
yann@1948
     5
yann@1948
     6
diff -durN gcc-4.4.4.orig/gcc/config/arm/linux-elf.h gcc-4.4.4/gcc/config/arm/linux-elf.h
yann@1948
     7
--- gcc-4.4.4.orig/gcc/config/arm/linux-elf.h	2009-02-20 16:20:38.000000000 +0100
yann@1948
     8
+++ gcc-4.4.4/gcc/config/arm/linux-elf.h	2010-05-16 19:38:07.000000000 +0200
yann@1948
     9
@@ -51,7 +51,7 @@
yann@1948
    10
 
yann@1948
    11
 #undef  MULTILIB_DEFAULTS
yann@1948
    12
 #define MULTILIB_DEFAULTS \
yann@1948
    13
-	{ "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
yann@1948
    14
+	{ "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mno-thumb-interwork" }
yann@1948
    15
 
yann@1948
    16
 /* Now we define the strings used to build the spec file.  */
yann@1948
    17
 #undef  LIB_SPEC
yann@1948
    18
diff -durN gcc-4.4.4.orig/gcc/config.gcc gcc-4.4.4/gcc/config.gcc
yann@1948
    19
--- gcc-4.4.4.orig/gcc/config.gcc	2010-05-16 19:36:15.000000000 +0200
yann@1948
    20
+++ gcc-4.4.4/gcc/config.gcc	2010-05-16 19:38:07.000000000 +0200
yann@1948
    21
@@ -733,6 +733,11 @@
yann@1948
    22
 	tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h"
yann@1948
    23
 	tmake_file="arm/t-arm arm/t-arm-elf"
yann@1948
    24
 	case ${target} in
yann@1948
    25
+	arm*b-*)
yann@1948
    26
+		tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
yann@1948
    27
+		;;
yann@1948
    28
+	esac
yann@1948
    29
+	case ${target} in
yann@1948
    30
 	arm*-*-uclinux*eabi)
yann@1948
    31
 	    tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h"
yann@1948
    32
 	    tmake_file="$tmake_file arm/t-bpabi"