gcc_4.5.0: import a missing patch from gcc_4.3.3

[BUGID #208]

Thanks to Edwin Zhai for reproducing issue and narrowing it down to the
segmentation fault in the floorf function of libstdc++-v3

And

Thanks to RP for pointing out that this is a known issue with the fix
already in the gcc 4.3.3 recipe

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard@openedhand.com>
This commit is contained in:
Nitin A Kamble 2010-08-17 10:03:29 -07:00 committed by Richard Purdie
parent 514d768673
commit 94f63fa564
11 changed files with 34 additions and 10 deletions

View File

@ -45,7 +45,8 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://zecke-xgcc-cpp.patch \
file://gcc-poison-system-directories.patch \
file://gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \
file://64bithack.patch;patch=1 \
file://64bithack.patch \
file://optional_libstdc.patch \
"
SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 "

View File

@ -0,0 +1,23 @@
gcc-runtime builds libstdc++ separately from gcc-cross-*. Its configure tests using g++
will not run correctly since my default the linker will try and link against libstdc++
which shouldn't exist yet. We need an option to disable the automatically added -lstdc++
option whilst leaving -lc, -lgcc and other automatic library dependencies. This patch
adds such an option which only disables the -lstdc++ linkage.
A "standard" gcc build uses xgcc and hence avoids this. We should ask upstream how to
do this officially, the likely answer is don't build libstdc++ separately.
RP 29/6/10
Index: gcc-4.3.3/gcc/cp/g++spec.c
===================================================================
--- gcc-4.3.3.orig/gcc/cp/g++spec.c 2010-06-29 00:06:03.901695025 +0100
+++ gcc-4.3.3/gcc/cp/g++spec.c 2010-06-29 00:06:58.800325439 +0100
@@ -131,6 +131,7 @@
if (argv[i][0] == '-')
{
if (strcmp (argv[i], "-nostdlib") == 0
+ || strcmp (argv[i], "-nostdlib++") == 0
|| strcmp (argv[i], "-nodefaultlibs") == 0)
{
library = -1;

View File

@ -5,7 +5,7 @@ require gcc-cross-canadian.inc
require gcc-configure-sdk.inc
require gcc-package-sdk.inc
PR = "r4"
PR = "r5"
DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"

View File

@ -1,5 +1,5 @@
require gcc-cross_${PV}.bb
require gcc-cross-initial.inc
PR = "r4"
PR = "r5"

View File

@ -1,4 +1,4 @@
require gcc-cross_${PV}.bb
require gcc-cross-intermediate.inc
PR = "r4"
PR = "r5"

View File

@ -1,4 +1,4 @@
PR = "r4"
PR = "r5"
require gcc-${PV}.inc
require gcc-cross4.inc

View File

@ -1,4 +1,4 @@
require gcc-cross-initial_${PV}.bb
require gcc-crosssdk-initial.inc
PR = "r4"
PR = "r5"

View File

@ -1,4 +1,4 @@
require gcc-cross-intermediate_${PV}.bb
require gcc-crosssdk-intermediate.inc
PR = "r4"
PR = "r5"

View File

@ -1,4 +1,4 @@
require gcc-cross_${PV}.bb
require gcc-crosssdk.inc
PR = "r4"
PR = "r5"

View File

@ -1,4 +1,4 @@
PR = "r4"
PR = "r5"
require gcc-${PV}.inc
require gcc-configure-runtime.inc

View File

@ -1,4 +1,4 @@
PR = "r4"
PR = "r5"
require gcc-${PV}.inc
require gcc-configure-target.inc