source: clfs-sysroot/patches/gcc-4.2.1-posix-1.patch@ f0590dc

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