summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2011-07-19 03:00:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-20 15:27:35 +0100
commit94a6e47402afe416d1c5657d6c60999b5b6e417f (patch)
treebd1b8640dc7659b2d134f96956ab6532e672c0f9 /meta/recipes-devtools
parentaa18b3cc988f7611cff4370c8aab3e44055a1499 (diff)
downloadpoky-94a6e47402afe416d1c5657d6c60999b5b6e417f.tar.gz
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. (From OE-Core rev: 7dc3865dd88cec50e4fb0660ea678736ec0eb46c) Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.5.1.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.5.1/pr43810.patch57
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 \
58 file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \ 58 file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \
59 file://COLLECT_GCC_OPTIONS.patch \ 59 file://COLLECT_GCC_OPTIONS.patch \
60 file://use-defaults.h-and-t-oe-in-B.patch \ 60 file://use-defaults.h-and-t-oe-in-B.patch \
61 file://pr43810.patch \
61 " 62 "
62 63
63SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " 64SRC_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 @@
1From 33ba46dc9395d7a6b1496e9f273cf953d59a8d71 Mon Sep 17 00:00:00 2001
2From: froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Wed, 23 Feb 2011 18:06:29 +0000
4Subject: [PATCH 1/6] PR target/43810
5
6 Backport from mainline:
7 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
8
9 * config.host (powerpc*-eabispe*): Set tmake_file.
10 (powerpc*-eabi*): Likewise.
11 * config/rs6000/t-ppccomm (EXTRA_PARTS): Add crtbegin, crtend,
12 crtbeginS, crtendS, crtbeginT.
13
14git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch@170443 138bc75d-0d04-0410-961f-82ee72b054a4
15---
16 libgcc/config.host | 2 ++
17 libgcc/config/rs6000/t-ppccomm | 4 +++-
18 2 files changed, 5 insertions(+), 1 deletions(-)
19
20diff --git a/libgcc/config.host b/libgcc/config.host
21index fe3465e..f85c723 100644
22--- a/libgcc/config.host
23+++ b/libgcc/config.host
24@@ -454,6 +454,7 @@ powerpc*-*-freebsd*)
25 powerpc-*-netbsd*)
26 ;;
27 powerpc-*-eabispe*)
28+ tmake_file="${tmake_file} rs6000/t-ppccomm"
29 ;;
30 powerpc-*-eabisimaltivec*)
31 ;;
32@@ -464,6 +465,7 @@ powerpc-*-elf*)
33 powerpc-*-eabialtivec*)
34 ;;
35 powerpc-*-eabi*)
36+ tmake_file="${tmake_file} rs6000/t-ppccomm"
37 ;;
38 powerpc-*-rtems*)
39 ;;
40diff --git a/libgcc/config/rs6000/t-ppccomm b/libgcc/config/rs6000/t-ppccomm
41index 1a711eb..4548cd7 100644
42--- a/libgcc/config/rs6000/t-ppccomm
43+++ b/libgcc/config/rs6000/t-ppccomm
44@@ -15,7 +15,9 @@ LIB2ADD_ST += crtsavfpr.S crtresfpr.S \
45 e500crtsavg64gpr.S \
46 e500crtsavg64gprctr.S
47
48-EXTRA_PARTS += ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext)
49+EXTRA_PARTS += crtbegin$(objext) crtend$(objext) \
50+ crtbeginS$(objext) crtendS$(objext) crtbeginT$(objext) \
51+ ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext)
52
53 # We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and
54 # end labels to all of the special sections used when we link using gcc.
55--
561.7.4
57