source: patches/gcc-4.2.2-posix-1.patch@ 0453750

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0453750 was 5a90148, checked in by Jim Gifford <clfs@…>, 17 years ago

Added: gcc 4.2.2 patches

  • Property mode set to 100644
File size: 14.0 KB
RevLine 
[08c058a]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2007-02-14
3Initial Package Version: 4.1.2
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
[08c058a]8Upstream Status: On Hold
9Description: Makes GCC Posix Compliant
10
[5a90148]11diff -Naur gcc-4.2.0.orig/contrib/test_summary gcc-4.2.0/contrib/test_summary
12--- gcc-4.2.0.orig/contrib/test_summary 2007-05-16 19:21:35.000000000 -0400
13+++ gcc-4.2.0/contrib/test_summary 2007-05-18 16:38:48.000000000 -0400
[08c058a]14@@ -106,7 +106,7 @@
15 srcdir = configflags;
16 sub(/\/configure .*/, "", srcdir);
17 printf "LAST_UPDATED: ";
18- system("tail -1 " srcdir "/LAST_UPDATED");
19+ system("tail -n 1 " srcdir "/LAST_UPDATED");
20 print "";
21
22 sub(/^[^ ]*\/configure */, " ", configflags);
[5a90148]23diff -Naur gcc-4.2.0.orig/gcc/configure.ac gcc-4.2.0/gcc/configure.ac
24--- gcc-4.2.0.orig/gcc/configure.ac 2007-05-16 19:21:23.000000000 -0400
25+++ gcc-4.2.0/gcc/configure.ac 2007-05-18 16:39:21.000000000 -0400
26@@ -2227,7 +2227,7 @@
[08c058a]27 # Therefore, use diff -b for the comparisons.
28 if test x$gcc_cv_objdump != x \
29 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
30- | tail -3 > conftest.got \
31+ | tail -n 3 > conftest.got \
32 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
33 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
34 then
[5a90148]35diff -Naur gcc-4.2.0.orig/gcc/configure gcc-4.2.0/gcc/configure
36--- gcc-4.2.0.orig/gcc/configure 2007-05-16 19:21:26.000000000 -0400
37+++ gcc-4.2.0/gcc/configure 2007-05-18 16:39:10.000000000 -0400
38@@ -14120,7 +14120,7 @@
[08c058a]39 # Therefore, use diff -b for the comparisons.
40 if test x$gcc_cv_objdump != x \
41 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
42- | tail -3 > conftest.got \
43+ | tail -n 3 > conftest.got \
44 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
45 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
46 then
[5a90148]47diff -Naur gcc-4.2.0.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.2.0/gcc/testsuite/ada/acats/run_all.sh
48--- gcc-4.2.0.orig/gcc/testsuite/ada/acats/run_all.sh 2007-05-16 19:21:20.000000000 -0400
49+++ gcc-4.2.0/gcc/testsuite/ada/acats/run_all.sh 2007-05-18 16:44:02.000000000 -0400
[08c058a]50@@ -68,7 +68,7 @@
51 ls ${i}?.adb > ${i}.lst 2> /dev/null
52 ls ${i}*m.adb >> ${i}.lst 2> /dev/null
53 ls ${i}.adb >> ${i}.lst 2> /dev/null
54- main=`tail -1 ${i}.lst`
55+ main=`tail -n 1 ${i}.lst`
56 }
57
58 EXTERNAL_OBJECTS=""
[5a90148]59diff -Naur gcc-4.2.0.orig/libgomp/acinclude.m4 gcc-4.2.0/libgomp/acinclude.m4
60--- gcc-4.2.0.orig/libgomp/acinclude.m4 2007-05-16 19:21:18.000000000 -0400
61+++ gcc-4.2.0/libgomp/acinclude.m4 2007-05-18 16:42:11.000000000 -0400
[08c058a]62@@ -147,7 +147,7 @@
63 # Start by getting the version number. I think the libtool test already
64 # does some of this, but throws away the result.
65 changequote(,)
66- ldver=`$LD --version 2>/dev/null | head -1 | \
67+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
68 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
69 changequote([,])
70 libgomp_gnu_ld_version=`echo $ldver | \
[5a90148]71diff -Naur gcc-4.2.0.orig/libgomp/configure gcc-4.2.0/libgomp/configure
72--- gcc-4.2.0.orig/libgomp/configure 2007-05-16 19:21:19.000000000 -0400
73+++ gcc-4.2.0/libgomp/configure 2007-05-18 16:42:19.000000000 -0400
[08c058a]74@@ -9314,7 +9314,7 @@
75 # Start by getting the version number. I think the libtool test already
76 # does some of this, but throws away the result.
77
78- ldver=`$LD --version 2>/dev/null | head -1 | \
79+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
80 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
81
82 libgomp_gnu_ld_version=`echo $ldver | \
[5a90148]83diff -Naur gcc-4.2.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.2.0/libjava/classpath/m4/ax_create_stdint_h.m4
84--- gcc-4.2.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-16 19:21:35.000000000 -0400
85+++ gcc-4.2.0/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-18 16:43:26.000000000 -0400
86@@ -217,7 +217,7 @@
87 fi # shortcircut to system "stdint.h"
88 # ------------------ PREPARE VARIABLES ------------------------------
89 if test "$GCC" = "yes" ; then
90-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
91+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
92 else
93 ac_cv_stdint_message="using $CC"
94 fi
95diff -Naur gcc-4.2.0.orig/libjava/classpath/configure gcc-4.2.0/libjava/classpath/configure
96--- gcc-4.2.0.orig/libjava/classpath/configure 2007-05-16 19:21:35.000000000 -0400
97+++ gcc-4.2.0/libjava/classpath/configure 2007-05-18 16:43:09.000000000 -0400
[08c058a]98@@ -18514,7 +18514,7 @@
99 fi # shortcircut to system "stdint.h"
100 # ------------------ PREPARE VARIABLES ------------------------------
101 if test "$GCC" = "yes" ; then
102-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
103+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
104 else
105 ac_cv_stdint_message="using $CC"
106 fi
[5a90148]107diff -Naur gcc-4.2.0.orig/libjava/classpath/ltcf-c.sh gcc-4.2.0/libjava/classpath/ltcf-c.sh
108--- gcc-4.2.0.orig/libjava/classpath/ltcf-c.sh 2007-05-16 19:21:31.000000000 -0400
109+++ gcc-4.2.0/libjava/classpath/ltcf-c.sh 2007-05-18 16:42:36.000000000 -0400
[08c058a]110@@ -153,7 +153,7 @@
111 # If the export-symbols file already is a .def file (1st line
112 # is EXPORTS), use it as is.
113 # If DATA tags from a recent dlltool are present, honour them!
114- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
115+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
116 cp $export_symbols $output_objdir/$soname-def;
117 else
118 echo EXPORTS > $output_objdir/$soname-def;
[5a90148]119diff -Naur gcc-4.2.0.orig/libjava/classpath/ltcf-gcj.sh gcc-4.2.0/libjava/classpath/ltcf-gcj.sh
120--- gcc-4.2.0.orig/libjava/classpath/ltcf-gcj.sh 2007-05-16 19:21:34.000000000 -0400
121+++ gcc-4.2.0/libjava/classpath/ltcf-gcj.sh 2007-05-18 16:42:45.000000000 -0400
[08c058a]122@@ -156,7 +156,7 @@
123 # If the export-symbols file already is a .def file (1st line
124 # is EXPORTS), use it as is.
125 # If DATA tags from a recent dlltool are present, honour them!
126- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
127+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
128 cp $export_symbols $output_objdir/$soname-def;
129 else
130 echo EXPORTS > $output_objdir/$soname-def;
[5a90148]131diff -Naur gcc-4.2.0.orig/libjava/mingwld.m4 gcc-4.2.0/libjava/mingwld.m4
132--- gcc-4.2.0.orig/libjava/mingwld.m4 2007-05-16 19:21:29.000000000 -0400
133+++ gcc-4.2.0/libjava/mingwld.m4 2007-05-18 16:40:06.000000000 -0400
134@@ -3,8 +3,8 @@
135 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
[08c058a]136 LD_PROG=`$CC --print-prog-name=ld`
137 LD_VERSION=`$LD_PROG --version`
138-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
139-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
140+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
141+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
142 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
143 LD_OK="ok"
144 else
[5a90148]145diff -Naur gcc-4.2.0.orig/libjava/configure gcc-4.2.0/libjava/configure
146--- gcc-4.2.0.orig/libjava/configure 2007-05-16 19:21:29.000000000 -0400
147+++ gcc-4.2.0/libjava/configure 2007-05-18 16:39:43.000000000 -0400
148@@ -7025,8 +7025,8 @@
149 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
[08c058a]150 LD_PROG=`$CC --print-prog-name=ld`
151 LD_VERSION=`$LD_PROG --version`
152-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
153-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
154+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
155+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
156 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
157 LD_OK="ok"
158 else
[5a90148]159diff -Naur gcc-4.2.0.orig/libstdc++-v3/acinclude.m4 gcc-4.2.0/libstdc++-v3/acinclude.m4
160--- gcc-4.2.0.orig/libstdc++-v3/acinclude.m4 2007-05-16 19:21:35.000000000 -0400
161+++ gcc-4.2.0/libstdc++-v3/acinclude.m4 2007-05-18 16:40:37.000000000 -0400
[08c058a]162@@ -234,7 +234,7 @@
163 if test x"$with_gnu_ld" = x"yes"; then
164 AC_MSG_CHECKING([for ld version])
165 changequote(,)
166- ldver=`$LD --version 2>/dev/null | head -1 | \
167+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
168 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
169 changequote([,])
170 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]171diff -Naur gcc-4.2.0.orig/libstdc++-v3/configure gcc-4.2.0/libstdc++-v3/configure
172--- gcc-4.2.0.orig/libstdc++-v3/configure 2007-05-16 19:21:36.000000000 -0400
173+++ gcc-4.2.0/libstdc++-v3/configure 2007-05-18 16:41:04.000000000 -0400
174@@ -8377,7 +8377,7 @@
[08c058a]175 echo "$as_me:$LINENO: checking for ld version" >&5
176 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
177
178- ldver=`$LD --version 2>/dev/null | head -1 | \
179+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
180 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
181
182 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]183@@ -54289,7 +54289,7 @@
[08c058a]184 echo "$as_me:$LINENO: checking for ld version" >&5
185 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
186
187- ldver=`$LD --version 2>/dev/null | head -1 | \
188+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
189 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
190
191 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]192@@ -75651,7 +75651,7 @@
[08c058a]193 echo "$as_me:$LINENO: checking for ld version" >&5
194 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
195
196- ldver=`$LD --version 2>/dev/null | head -1 | \
197+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
198 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
199
200 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]201@@ -77176,7 +77176,7 @@
[08c058a]202 echo "$as_me:$LINENO: checking for ld version" >&5
203 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
204
205- ldver=`$LD --version 2>/dev/null | head -1 | \
206+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
207 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
208
209 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]210@@ -78669,7 +78669,7 @@
[08c058a]211 echo "$as_me:$LINENO: checking for ld version" >&5
212 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
213
214- ldver=`$LD --version 2>/dev/null | head -1 | \
215+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
216 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
217
218 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]219@@ -100561,7 +100561,7 @@
[08c058a]220 echo "$as_me:$LINENO: checking for ld version" >&5
221 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
222
223- ldver=`$LD --version 2>/dev/null | head -1 | \
224+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
225 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
226
227 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]228@@ -101408,7 +101408,7 @@
[08c058a]229 echo "$as_me:$LINENO: checking for ld version" >&5
230 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
231
232- ldver=`$LD --version 2>/dev/null | head -1 | \
233+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
234 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
235
236 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]237@@ -102811,7 +102811,7 @@
[08c058a]238 echo "$as_me:$LINENO: checking for ld version" >&5
239 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
240
241- ldver=`$LD --version 2>/dev/null | head -1 | \
242+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
243 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
244
245 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]246@@ -104606,7 +104606,7 @@
[08c058a]247 echo "$as_me:$LINENO: checking for ld version" >&5
248 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
249
250- ldver=`$LD --version 2>/dev/null | head -1 | \
251+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
252 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
253
254 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]255@@ -105851,7 +105851,7 @@
[08c058a]256 echo "$as_me:$LINENO: checking for ld version" >&5
257 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
258
259- ldver=`$LD --version 2>/dev/null | head -1 | \
260+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
261 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
262
263 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]264@@ -106880,7 +106880,7 @@
[08c058a]265 echo "$as_me:$LINENO: checking for ld version" >&5
266 echo $ECHO_N "checking for ld version... $ECHO_C" >&6
267
268- ldver=`$LD --version 2>/dev/null | head -1 | \
269+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
270 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
271
272 glibcxx_gnu_ld_version=`echo $ldver | \
[5a90148]273diff -Naur gcc-4.2.0.orig/ltcf-c.sh gcc-4.2.0/ltcf-c.sh
274--- gcc-4.2.0.orig/ltcf-c.sh 2007-05-16 19:21:19.000000000 -0400
275+++ gcc-4.2.0/ltcf-c.sh 2007-05-18 16:41:18.000000000 -0400
[08c058a]276@@ -153,7 +153,7 @@
277 # If the export-symbols file already is a .def file (1st line
278 # is EXPORTS), use it as is.
279 # If DATA tags from a recent dlltool are present, honour them!
280- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
281+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
282 cp $export_symbols $output_objdir/$soname-def;
283 else
284 echo EXPORTS > $output_objdir/$soname-def;
[5a90148]285diff -Naur gcc-4.2.0.orig/ltcf-gcj.sh gcc-4.2.0/ltcf-gcj.sh
286--- gcc-4.2.0.orig/ltcf-gcj.sh 2007-05-16 19:21:35.000000000 -0400
287+++ gcc-4.2.0/ltcf-gcj.sh 2007-05-18 16:41:29.000000000 -0400
[08c058a]288@@ -156,7 +156,7 @@
289 # If the export-symbols file already is a .def file (1st line
290 # is EXPORTS), use it as is.
291 # If DATA tags from a recent dlltool are present, honour them!
292- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
293+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
294 cp $export_symbols $output_objdir/$soname-def;
295 else
296 echo EXPORTS > $output_objdir/$soname-def;
Note: See TracBrowser for help on using the repository browser.