source: clfs-sysroot/patches/gcc-4.3.3-posix-1.patch@ b526bf9

Last change on this file since b526bf9 was 6f50e7b, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated GCC to 4.3.3.

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