diff options
author | Ilya Yanok <yanok@emcraft.com> | 2011-07-19 03:00:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-20 15:24:58 +0100 |
commit | 7dc3865dd88cec50e4fb0660ea678736ec0eb46c (patch) | |
tree | 0352659db5f3d3314620ed307a004670561793f9 /meta/recipes-devtools/gcc | |
parent | 7306e0113a158418acc9cc13d2e82125cb772389 (diff) | |
download | openembedded-core-7dc3865dd88cec50e4fb0660ea678736ec0eb46c.tar.gz openembedded-core-7dc3865dd88cec50e4fb0660ea678736ec0eb46c.tar.bz2 openembedded-core-7dc3865dd88cec50e4fb0660ea678736ec0eb46c.zip |
gcc_4.5.1: add pr43810.patch
Add fix for PR43810 as proposed in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810
Building on powerpc-eabi* with --enable-target-optspace
still fails for me though.
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1/pr43810.patch | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1.inc b/meta/recipes-devtools/gcc/gcc-4.5.1.inc index 76f983740e..efed414004 100644 --- a/meta/recipes-devtools/gcc/gcc-4.5.1.inc +++ b/meta/recipes-devtools/gcc/gcc-4.5.1.inc @@ -58,6 +58,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \ file://COLLECT_GCC_OPTIONS.patch \ file://use-defaults.h-and-t-oe-in-B.patch \ + file://pr43810.patch \ " SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/pr43810.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/pr43810.patch new file mode 100644 index 0000000000..e9db4c07f6 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.5.1/pr43810.patch @@ -0,0 +1,57 @@ +From 33ba46dc9395d7a6b1496e9f273cf953d59a8d71 Mon Sep 17 00:00:00 2001 +From: froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Wed, 23 Feb 2011 18:06:29 +0000 +Subject: [PATCH 1/6] PR target/43810 + + Backport from mainline: + 2010-07-23 Nathan Froyd <froydnj@codesourcery.com> + + * config.host (powerpc*-eabispe*): Set tmake_file. + (powerpc*-eabi*): Likewise. + * config/rs6000/t-ppccomm (EXTRA_PARTS): Add crtbegin, crtend, + crtbeginS, crtendS, crtbeginT. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch@170443 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + libgcc/config.host | 2 ++ + libgcc/config/rs6000/t-ppccomm | 4 +++- + 2 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/libgcc/config.host b/libgcc/config.host +index fe3465e..f85c723 100644 +--- a/libgcc/config.host ++++ b/libgcc/config.host +@@ -454,6 +454,7 @@ powerpc*-*-freebsd*) + powerpc-*-netbsd*) + ;; + powerpc-*-eabispe*) ++ tmake_file="${tmake_file} rs6000/t-ppccomm" + ;; + powerpc-*-eabisimaltivec*) + ;; +@@ -464,6 +465,7 @@ powerpc-*-elf*) + powerpc-*-eabialtivec*) + ;; + powerpc-*-eabi*) ++ tmake_file="${tmake_file} rs6000/t-ppccomm" + ;; + powerpc-*-rtems*) + ;; +diff --git a/libgcc/config/rs6000/t-ppccomm b/libgcc/config/rs6000/t-ppccomm +index 1a711eb..4548cd7 100644 +--- a/libgcc/config/rs6000/t-ppccomm ++++ b/libgcc/config/rs6000/t-ppccomm +@@ -15,7 +15,9 @@ LIB2ADD_ST += crtsavfpr.S crtresfpr.S \ + e500crtsavg64gpr.S \ + e500crtsavg64gprctr.S + +-EXTRA_PARTS += ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext) ++EXTRA_PARTS += crtbegin$(objext) crtend$(objext) \ ++ crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \ ++ ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext) + + # We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and + # end labels to all of the special sections used when we link using gcc. +-- +1.7.4 + |