source: patches/gcc-4.4.0-posix-1.patch@ 3c32719

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3c32719 was 56a4eb5, checked in by Jim Gifford <clfs@…>, 16 years ago

Updated to GCC 4.4.0

  • Property mode set to 100644
File size: 14.0 KB
RevLine 
[0804c00]1Submitted By: Jim Gifford (jim at cross-lfs dot org)
[56a4eb5]2Date: 04-21-2009
3Initial Package Version: 4.4.0
[08c058a]4Origin: Jim Gifford
5 Rediffed against 4.1.0 by Chris Staub
6 Rediffed against 4.1.2 by Jim Gifford
[5a90148]7 Rediffed and additions against 4.2.0 by Joe Ciccone
[6a043e2]8 Rediffed against 4.3.0 by Joe Ciccone
[0804c00]9 Rediffed against 4.3.3 by Jim Gifford
[56a4eb5]10 Rediffed against 4.4.0 by Jim Gifford
[08c058a]11Upstream Status: On Hold
12Description: Makes GCC Posix Compliant
13
[56a4eb5]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:"
[6a043e2]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
[56a4eb5]26@@ -464,7 +464,7 @@
[6a043e2]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
[56a4eb5]35@@ -474,7 +474,7 @@
[6a043e2]36
[56a4eb5]37 firstpatch=true
[6a043e2]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
[56a4eb5]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
[6a043e2]47@@ -107,7 +107,7 @@
[08c058a]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);
[56a4eb5]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 @@
[08c058a]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
[56a4eb5]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 @@
[08c058a]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
[56a4eb5]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
[08c058a]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=""
[56a4eb5]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
[08c058a]98 changequote(,)
99- ldver=`$LD --version 2>/dev/null | head -1 | \
100+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]101 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]102 changequote([,])
103 libgomp_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]110
111- ldver=`$LD --version 2>/dev/null | head -1 | \
112+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]113 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]114
115 libgomp_gnu_ld_version=`echo $ldver | \
[56a4eb5]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 @@
[08c058a]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
[56a4eb5]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
[08c058a]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;
[56a4eb5]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
[08c058a]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;
[56a4eb5]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
[6a043e2]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
[56a4eb5]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 @@
[6a043e2]168 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
[08c058a]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
[56a4eb5]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
[6a043e2]181@@ -3,8 +3,8 @@
182 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
[08c058a]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
[56a4eb5]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
[08c058a]199- ldver=`$LD --version 2>/dev/null | head -1 | \
200+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]201 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]202 changequote([,])
203 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]211- ldver=`$LD --version 2>/dev/null | head -1 | \
212+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]213 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]214
215 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]220- ldver=`$LD --version 2>/dev/null | head -1 | \
221+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]222 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]223
224 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]229- ldver=`$LD --version 2>/dev/null | head -1 | \
230+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]231 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]232
233 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]238- ldver=`$LD --version 2>/dev/null | head -1 | \
239+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]240 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]241
242 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]247- ldver=`$LD --version 2>/dev/null | head -1 | \
248+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]249 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]250
251 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]256- ldver=`$LD --version 2>/dev/null | head -1 | \
257+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]258 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]259
260 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]265- ldver=`$LD --version 2>/dev/null | head -1 | \
266+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]267 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]268
269 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]274- ldver=`$LD --version 2>/dev/null | head -1 | \
275+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]276 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]277
278 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]283- ldver=`$LD --version 2>/dev/null | head -1 | \
284+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]285 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]286
287 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]292- ldver=`$LD --version 2>/dev/null | head -1 | \
293+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]294 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]295
296 glibcxx_gnu_ld_version=`echo $ldver | \
[56a4eb5]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
[08c058a]301- ldver=`$LD --version 2>/dev/null | head -1 | \
302+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
[56a4eb5]303 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
[08c058a]304
305 glibcxx_gnu_ld_version=`echo $ldver | \
Note: See TracBrowser for help on using the repository browser.