source: scripts/patch/gcc/4.4.0/40-powepc-fixes.patch@ 95620ac

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 95620ac was e6c4741, checked in by Jim Gifford <clfs@…>, 15 years ago

Temp Workaround for GCC Build Issue on PPC

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[e6c4741]1A Temporary Work around for
2http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37739
3
4diff -Naur gcc-4.4.0.orig/gcc/config.host gcc-4.4.0/gcc/config.host
5--- gcc-4.4.0.orig/gcc/config.host 2009-03-24 03:33:57.000000000 -0700
6+++ gcc-4.4.0/gcc/config.host 2009-07-19 14:09:55.000000000 -0700
7@@ -135,17 +135,7 @@
8 # On powerpc*-*-linux* use -Wl,--relax to link cc1,
9 # if ld is new enough, otherwise force -O1 in CFLAGS.
10 host_ppc_relax_xmake_file=
11- host_ld_ver=`${CC} -Wl,--version 2>/dev/null | sed 1q`
12- if echo "$host_ld_ver" | grep GNU > /dev/null; then
13- host_ld_date=`echo $host_ld_ver \
14- | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
15- if test 0"$host_ld_date" -gt 20080806; then
16- host_ppc_relax_xmake_file=rs6000/x-linux-relax
17- fi
18- fi
19- if test -z "${host_ppc_relax_xmake_file}"; then
20- host_ppc_relax_xmake_file=x-cflags-O1
21- fi
22+ host_ppc_relax_xmake_file=x-cflags-O1
23 host_xmake_file="${host_xmake_file} ${host_ppc_relax_xmake_file}"
24 fi
25 ;;
Note: See TracBrowser for help on using the repository browser.