source: clfs-sysroot/patches/gcc-4.4.0-posix-1.patch@ 5a30b49

Last change on this file since 5a30b49 was 92605fa, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Updated GCC to 4.4.0.

  • Property mode set to 100644
File size: 14.0 KB
RevLine 
[6f50e7b]1Submitted By: Jim Gifford (jim at cross-lfs dot org)
[92605fa]2Date: 04-21-2009
3Initial Package Version: 4.4.0
[00520f6]4Origin: Jim Gifford
5 Rediffed against 4.1.0 by Chris Staub
6 Rediffed against 4.1.2 by Jim Gifford
[e1234d4]7 Rediffed and additions against 4.2.0 by Joe Ciccone
8 Rediffed against 4.3.0 by Joe Ciccone
[6f50e7b]9 Rediffed against 4.3.3 by Jim Gifford
[92605fa]10 Rediffed against 4.4.0 by Jim Gifford
[00520f6]11Upstream Status: On Hold
12Description: Makes GCC Posix Compliant
13
[92605fa]14diff -Naur gcc-4.4.0.orig/contrib/patch_tester.sh gcc-4.4.0/contrib/patch_tester.sh
15--- gcc-4.4.0.orig/contrib/patch_tester.sh 2008-05-08 08:14:47.000000000 -0700
16+++ gcc-4.4.0/contrib/patch_tester.sh 2009-04-21 09:56:06.009963403 -0700
17@@ -324,7 +324,7 @@
18 MAKE_ARGS="$default_make $MAKE_ARGS"
19 if ! eval make $dashj $MAKE_ARGS &> $1/bootstrap ; then
20 report "bootstrap with `basename $1` version failed with last lines:"
[e1234d4]21- tail -30 $1/bootstrap > $1/last_bootstrap
22+ tail -n 30 $1/bootstrap > $1/last_bootstrap
23 freport $1/last_bootstrap
24 report "grep --context=20 Error bootstrap:"
25 grep --context=20 Error $1/bootstrap > $1/bootstrap_error
[92605fa]26@@ -464,7 +464,7 @@
[e1234d4]27 # After selfexec, $TESTING is already set up.
28 if [ -d $TESTING ]; then
29 # The only file in $TESTING is the patch.
30- PATCH=`ls -rt -1 $TESTING | head -1`
31+ PATCH=`ls -rt -1 $TESTING | head -n 1`
32 PATCH=$TESTING/$PATCH
33 if [ -f $PATCH ]; then
34 bootntest_patched && bootntest_pristine && compare_passes
[92605fa]35@@ -474,7 +474,7 @@
[e1234d4]36
[92605fa]37 firstpatch=true
[e1234d4]38 while true; do
39- PATCH=`ls -rt -1 $PATCHES | head -1`
40+ PATCH=`ls -rt -1 $PATCHES | head -n 1`
41 if [ x$PATCH = x ]; then
[92605fa]42 if [ $stop = true ]; then
43 if [ $firstpatch = true ]; then
44diff -Naur gcc-4.4.0.orig/contrib/test_summary gcc-4.4.0/contrib/test_summary
45--- gcc-4.4.0.orig/contrib/test_summary 2007-02-09 16:30:46.000000000 -0800
46+++ gcc-4.4.0/contrib/test_summary 2009-04-21 09:55:36.820093030 -0700
[e1234d4]47@@ -107,7 +107,7 @@
[00520f6]48 srcdir = configflags;
49 sub(/\/configure .*/, "", srcdir);
50 printf "LAST_UPDATED: ";
51- system("tail -1 " srcdir "/LAST_UPDATED");
52+ system("tail -n 1 " srcdir "/LAST_UPDATED");
53 print "";
54
55 sub(/^[^ ]*\/configure */, " ", configflags);
[92605fa]56diff -Naur gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure
57--- gcc-4.4.0.orig/gcc/configure 2009-03-24 10:46:03.000000000 -0700
58+++ gcc-4.4.0/gcc/configure 2009-04-21 09:55:36.828093310 -0700
59@@ -21750,7 +21750,7 @@
[00520f6]60 # Therefore, use diff -b for the comparisons.
61 if test x$gcc_cv_objdump != x \
62 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
63- | tail -3 > conftest.got \
64+ | tail -n 3 > conftest.got \
65 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
66 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
67 then
[92605fa]68diff -Naur gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac
69--- gcc-4.4.0.orig/gcc/configure.ac 2009-03-24 10:46:03.000000000 -0700
70+++ gcc-4.4.0/gcc/configure.ac 2009-04-21 09:55:36.840094427 -0700
71@@ -2351,7 +2351,7 @@
[00520f6]72 # Therefore, use diff -b for the comparisons.
73 if test x$gcc_cv_objdump != x \
74 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
75- | tail -3 > conftest.got \
76+ | tail -n 3 > conftest.got \
77 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
78 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
79 then
[92605fa]80diff -Naur gcc-4.4.0.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.4.0/gcc/testsuite/ada/acats/run_all.sh
81--- gcc-4.4.0.orig/gcc/testsuite/ada/acats/run_all.sh 2006-09-14 03:12:03.000000000 -0700
82+++ gcc-4.4.0/gcc/testsuite/ada/acats/run_all.sh 2009-04-21 09:55:36.848094706 -0700
[00520f6]83@@ -68,7 +68,7 @@
84 ls ${i}?.adb > ${i}.lst 2> /dev/null
85 ls ${i}*m.adb >> ${i}.lst 2> /dev/null
86 ls ${i}.adb >> ${i}.lst 2> /dev/null
87- main=`tail -1 ${i}.lst`
88+ main=`tail -n 1 ${i}.lst`
89 }
90
91 EXTERNAL_OBJECTS=""
[92605fa]92diff -Naur gcc-4.4.0.orig/libgomp/acinclude.m4 gcc-4.4.0/libgomp/acinclude.m4
93--- gcc-4.4.0.orig/libgomp/acinclude.m4 2009-01-31 09:09:24.000000000 -0800
94+++ gcc-4.4.0/libgomp/acinclude.m4 2009-04-21 09:56:53.993037854 -0700
95@@ -152,7 +152,7 @@
96 libgomp_ld_is_gold=yes
97 fi
[00520f6]98 changequote(,)
99- ldver=`$LD --version 2>/dev/null | head -1 | \
100+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]101 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]102 changequote([,])
103 libgomp_gnu_ld_version=`echo $ldver | \
[92605fa]104diff -Naur gcc-4.4.0.orig/libgomp/configure gcc-4.4.0/libgomp/configure
105--- gcc-4.4.0.orig/libgomp/configure 2009-04-21 02:08:08.000000000 -0700
106+++ gcc-4.4.0/libgomp/configure 2009-04-21 09:56:33.615732086 -0700
107@@ -18486,7 +18486,7 @@
108 libgomp_ld_is_gold=yes
109 fi
[00520f6]110
111- ldver=`$LD --version 2>/dev/null | head -1 | \
112+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]113 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]114
115 libgomp_gnu_ld_version=`echo $ldver | \
[92605fa]116diff -Naur gcc-4.4.0.orig/libjava/classpath/configure gcc-4.4.0/libjava/classpath/configure
117--- gcc-4.4.0.orig/libjava/classpath/configure 2009-03-16 05:08:23.000000000 -0700
118+++ gcc-4.4.0/libjava/classpath/configure 2009-04-21 09:55:36.872096103 -0700
119@@ -29072,7 +29072,7 @@
[00520f6]120 fi # shortcircut to system "stdint.h"
121 # ------------------ PREPARE VARIABLES ------------------------------
122 if test "$GCC" = "yes" ; then
123-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
124+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
125 else
126 ac_cv_stdint_message="using $CC"
127 fi
[92605fa]128diff -Naur gcc-4.4.0.orig/libjava/classpath/ltcf-c.sh gcc-4.4.0/libjava/classpath/ltcf-c.sh
129--- gcc-4.4.0.orig/libjava/classpath/ltcf-c.sh 2006-01-17 10:09:40.000000000 -0800
130+++ gcc-4.4.0/libjava/classpath/ltcf-c.sh 2009-04-21 09:55:36.872096103 -0700
[00520f6]131@@ -153,7 +153,7 @@
132 # If the export-symbols file already is a .def file (1st line
133 # is EXPORTS), use it as is.
134 # If DATA tags from a recent dlltool are present, honour them!
135- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
136+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
137 cp $export_symbols $output_objdir/$soname-def;
138 else
139 echo EXPORTS > $output_objdir/$soname-def;
[92605fa]140diff -Naur gcc-4.4.0.orig/libjava/classpath/ltcf-gcj.sh gcc-4.4.0/libjava/classpath/ltcf-gcj.sh
141--- gcc-4.4.0.orig/libjava/classpath/ltcf-gcj.sh 2005-09-23 14:31:04.000000000 -0700
142+++ gcc-4.4.0/libjava/classpath/ltcf-gcj.sh 2009-04-21 09:55:36.872096103 -0700
[00520f6]143@@ -156,7 +156,7 @@
144 # If the export-symbols file already is a .def file (1st line
145 # is EXPORTS), use it as is.
146 # If DATA tags from a recent dlltool are present, honour them!
147- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
148+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
149 cp $export_symbols $output_objdir/$soname-def;
150 else
151 echo EXPORTS > $output_objdir/$soname-def;
[92605fa]152diff -Naur gcc-4.4.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.4.0/libjava/classpath/m4/ax_create_stdint_h.m4
153--- gcc-4.4.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-19 13:44:43.000000000 -0700
154+++ gcc-4.4.0/libjava/classpath/m4/ax_create_stdint_h.m4 2009-04-21 09:55:36.872096103 -0700
[00520f6]155@@ -217,7 +217,7 @@
156 fi # shortcircut to system "stdint.h"
157 # ------------------ PREPARE VARIABLES ------------------------------
158 if test "$GCC" = "yes" ; then
159-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
160+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
161 else
162 ac_cv_stdint_message="using $CC"
163 fi
[92605fa]164diff -Naur gcc-4.4.0.orig/libjava/configure gcc-4.4.0/libjava/configure
165--- gcc-4.4.0.orig/libjava/configure 2009-04-21 02:08:08.000000000 -0700
166+++ gcc-4.4.0/libjava/configure 2009-04-21 09:55:36.884096662 -0700
167@@ -18919,8 +18919,8 @@
[00520f6]168 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
169 LD_PROG=`$CC --print-prog-name=ld`
170 LD_VERSION=`$LD_PROG --version`
171-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
172-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
173+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
174+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
175 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
176 LD_OK="ok"
177 else
[92605fa]178diff -Naur gcc-4.4.0.orig/libjava/mingwld.m4 gcc-4.4.0/libjava/mingwld.m4
179--- gcc-4.4.0.orig/libjava/mingwld.m4 2005-08-22 15:36:35.000000000 -0700
180+++ gcc-4.4.0/libjava/mingwld.m4 2009-04-21 09:55:36.892097500 -0700
[00520f6]181@@ -3,8 +3,8 @@
182 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
183 LD_PROG=`$CC --print-prog-name=ld`
184 LD_VERSION=`$LD_PROG --version`
185-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
186-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
187+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
188+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
189 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
190 LD_OK="ok"
191 else
[92605fa]192diff -Naur gcc-4.4.0.orig/libstdc++-v3/acinclude.m4 gcc-4.4.0/libstdc++-v3/acinclude.m4
193--- gcc-4.4.0.orig/libstdc++-v3/acinclude.m4 2009-02-23 12:42:53.000000000 -0800
194+++ gcc-4.4.0/libstdc++-v3/acinclude.m4 2009-04-21 09:57:46.768419611 -0700
195@@ -238,7 +238,7 @@
196 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
197 glibcxx_ld_is_gold=yes
198 fi
[00520f6]199- ldver=`$LD --version 2>/dev/null | head -1 | \
200+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]201 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]202 changequote([,])
203 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]204diff -Naur gcc-4.4.0.orig/libstdc++-v3/configure gcc-4.4.0/libstdc++-v3/configure
205--- gcc-4.4.0.orig/libstdc++-v3/configure 2009-03-01 09:49:31.000000000 -0800
206+++ gcc-4.4.0/libstdc++-v3/configure 2009-04-21 09:57:27.527186478 -0700
207@@ -23489,7 +23489,7 @@
208 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
209 glibcxx_ld_is_gold=yes
210 fi
[00520f6]211- ldver=`$LD --version 2>/dev/null | head -1 | \
212+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]213 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]214
215 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]216@@ -42055,7 +42055,7 @@
217 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
218 glibcxx_ld_is_gold=yes
219 fi
[00520f6]220- ldver=`$LD --version 2>/dev/null | head -1 | \
221+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]222 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]223
224 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]225@@ -76333,7 +76333,7 @@
226 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
227 glibcxx_ld_is_gold=yes
228 fi
[00520f6]229- ldver=`$LD --version 2>/dev/null | head -1 | \
230+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]231 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]232
233 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]234@@ -76645,7 +76645,7 @@
235 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
236 glibcxx_ld_is_gold=yes
237 fi
[00520f6]238- ldver=`$LD --version 2>/dev/null | head -1 | \
239+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]240 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]241
242 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]243@@ -77328,7 +77328,7 @@
244 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
245 glibcxx_ld_is_gold=yes
246 fi
[00520f6]247- ldver=`$LD --version 2>/dev/null | head -1 | \
248+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]249 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]250
251 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]252@@ -95080,7 +95080,7 @@
253 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
254 glibcxx_ld_is_gold=yes
255 fi
[00520f6]256- ldver=`$LD --version 2>/dev/null | head -1 | \
257+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]258 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]259
260 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]261@@ -112274,7 +112274,7 @@
262 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
263 glibcxx_ld_is_gold=yes
264 fi
[00520f6]265- ldver=`$LD --version 2>/dev/null | head -1 | \
266+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]267 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]268
269 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]270@@ -112493,7 +112493,7 @@
271 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
272 glibcxx_ld_is_gold=yes
273 fi
[00520f6]274- ldver=`$LD --version 2>/dev/null | head -1 | \
275+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]276 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]277
278 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]279@@ -112678,7 +112678,7 @@
280 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
281 glibcxx_ld_is_gold=yes
282 fi
[00520f6]283- ldver=`$LD --version 2>/dev/null | head -1 | \
284+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]285 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]286
287 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]288@@ -112899,7 +112899,7 @@
289 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
290 glibcxx_ld_is_gold=yes
291 fi
[00520f6]292- ldver=`$LD --version 2>/dev/null | head -1 | \
293+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]294 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]295
296 glibcxx_gnu_ld_version=`echo $ldver | \
[92605fa]297@@ -113121,7 +113121,7 @@
298 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
299 glibcxx_ld_is_gold=yes
300 fi
[00520f6]301- ldver=`$LD --version 2>/dev/null | head -1 | \
302+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[92605fa]303 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[00520f6]304
305 glibcxx_gnu_ld_version=`echo $ldver | \
Note: See TracBrowser for help on using the repository browser.