gcc 4.1.1: added patch for big endian
authorFrans Meulenbroeks <fransmeulenbroeks@yahoo.com>
Sun, 4 Jun 2006 17:34:37 +0000 (17:34 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 4 Jun 2006 17:34:37 +0000 (17:34 +0000)
packages/gcc/gcc-4.1.1/armeb-fix.patch
packages/gcc/gcc-cross_4.1.1.bb
packages/gcc/gcc_4.1.1.bb

index 42bb4ea..2c22f28 100644 (file)
@@ -1,6 +1,6 @@
 --- gcc-4.0-20050305/gcc/config/arm/linux-elf.h.orig   2005-03-23 18:44:54.822707377 +0100
 +++ gcc-4.0-20050305/gcc/config/arm/linux-elf.h        2005-03-23 18:46:18.228560206 +0100
-@@ -31,19 +31,33 @@
+@@ -28,19 +28,35 @@
  /* Do not assume anything about header files.  */
  #define NO_IMPLICIT_EXTERN_C
  
@@ -9,11 +9,13 @@
 + * arm*b-*-linux* (big endian) configurations.
 + */
 +#if TARGET_BIG_ENDIAN_DEFAULT
-+#define TARGET_ENDIAN_DEFAULT ARM_FLAG_BIG_END
++#define TARGET_ENDIAN_DEFAULT 1
++#define TARGET_BIG_END 1
 +#define TARGET_ENDIAN_OPTION "mbig-endian"
 +#define TARGET_LINKER_EMULATION "armelfb_linux"
 +#else
 +#define TARGET_ENDIAN_DEFAULT 0
++#define TARGET_BIG_END 0
 +#define TARGET_ENDIAN_OPTION "mlittle-endian"
 +#define TARGET_LINKER_EMULATION "armelf_linux"
 +#endif
@@ -37,7 +39,7 @@
  
  /* The GNU C++ standard library requires that these macros be defined.  */
  #undef CPLUSPLUS_CPP_SPEC
-@@ -90,7 +104,7 @@
+@@ -90,7 +75,7 @@
     %{rdynamic:-export-dynamic} \
     %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
     -X \
     SUBTARGET_EXTRA_LINK_SPEC
  
  #define TARGET_OS_CPP_BUILTINS()              \
---- gcc-4.0-20050305/gcc/config.gcc.orig       2005-03-23 18:46:23.318105335 +0100
-+++ gcc-4.0-20050305/gcc/config.gcc    2005-03-23 18:47:41.592546386 +0100
-@@ -650,6 +650,11 @@
-       ;;
- 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 arm/aout.h arm/arm.h"
-+      case $target in
-+      arm*b-*-linux*)
-+              tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
-+              ;;
-+      esac
-       tmake_file="${tmake_file} arm/t-arm arm/t-linux"
-       extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
-       gnu_ld=yes
+*** gcc/gcc/config.gcc.orig    2006-06-04 17:59:06.000000000 +0200
+--- gcc/gcc/config.gcc 2006-06-04 17:59:52.000000000 +0200
+***************
+*** 672,677 ****
+--- 672,682 ----
+       ;;
+  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-*-linux*)
++                 tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
++                 ;;
++         esac
+       tmake_file="${tmake_file} t-linux arm/t-arm"
+       case ${target} in
+       arm*-*-linux-gnueabi)
index 4b0b5a1..76e14dd 100644 (file)
@@ -5,7 +5,7 @@ inherit cross
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
 # NOTE: split PR.  If the main .oe changes something that affects its *build*
 # remember to increment this one too.
-PR = "r1"
+PR = "r2"
 
 DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc gmp-native mpfr-native"
 PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
index a0dcf94..da4665f 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r0"
+PR = "r1"
 DESCRIPTION = "The GNU cc and gcc C compilers."
 HOMEPAGE = "http://www.gnu.org/software/gcc/"
 SECTION = "devel"
@@ -10,6 +10,7 @@ inherit autotools gettext
 include gcc-package.inc
 
 SRC_URI = "http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-4.1.1.tar.bz2 \
+       file://armeb-fix.patch;patch=1 \
        file://arm-nolibfloat.patch;patch=1 \
        file://arm-softfloat.patch;patch=1 \
        file://ldflags.patch;patch=1"