source: patches/gcc-4.1.0-posix-1.patch@ e7a7a6f

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

Added: GCC 4.1.0 patches. Removed GCC 4.0.3 patches.

  • Property mode set to 100644
File size: 8.9 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-08-27
3Initial Package Version: 4.0.1
4Origin: Jim Gifford
[e7a7a6f]5 Rediffed against 4.1.0 by Chris Staub
[69cde8d]6Upstream Status: On Hold
7Description: Makes GCC Posix Compliant
8
[e7a7a6f]9diff -Naur gcc-4.1.0.orig/contrib/test_summary gcc-4.1.0/contrib/test_summary
10--- gcc-4.1.0.orig/contrib/test_summary 2004-08-26 01:51:22.000000000 -0400
11+++ gcc-4.1.0/contrib/test_summary 2006-02-28 22:08:16.000000000 -0500
[69cde8d]12@@ -106,7 +106,7 @@
13 srcdir = configflags;
14 sub(/\/configure .*/, "", srcdir);
15 printf "LAST_UPDATED: ";
16- system("tail -1 " srcdir "/LAST_UPDATED");
17+ system("tail -n 1 " srcdir "/LAST_UPDATED");
18 print "";
19
20 sub(/^[^ ]*\/configure */, " ", configflags);
[e7a7a6f]21diff -Naur gcc-4.1.0.orig/gcc/configure gcc-4.1.0/gcc/configure
22--- gcc-4.1.0.orig/gcc/configure 2006-02-14 11:50:45.000000000 -0500
23+++ gcc-4.1.0/gcc/configure 2006-02-28 22:08:16.000000000 -0500
24@@ -14318,7 +14318,7 @@
[69cde8d]25 # and we got the correct data, then succeed.
26 if test x$gcc_cv_objdump != x \
27 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
28- | tail -3 > conftest.got \
29+ | tail -n 3 > conftest.got \
30 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
31 || cmp conftest.big conftest.got > /dev/null 2>&1; }
32 then
[e7a7a6f]33diff -Naur gcc-4.1.0.orig/gcc/configure.ac gcc-4.1.0/gcc/configure.ac
34--- gcc-4.1.0.orig/gcc/configure.ac 2006-02-14 11:50:45.000000000 -0500
35+++ gcc-4.1.0/gcc/configure.ac 2006-02-28 22:08:16.000000000 -0500
36@@ -2124,7 +2124,7 @@
[69cde8d]37 # and we got the correct data, then succeed.
38 if test x$gcc_cv_objdump != x \
39 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
40- | tail -3 > conftest.got \
41+ | tail -n 3 > conftest.got \
42 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
43 || cmp conftest.big conftest.got > /dev/null 2>&1; }
44 then
[e7a7a6f]45diff -Naur gcc-4.1.0.orig/libjava/configure gcc-4.1.0/libjava/configure
46--- gcc-4.1.0.orig/libjava/configure 2006-02-28 03:39:11.000000000 -0500
47+++ gcc-4.1.0/libjava/configure 2006-02-28 22:08:16.000000000 -0500
48@@ -6736,8 +6736,8 @@
49 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
[69cde8d]50 LD_PROG=`$CC --print-prog-name=ld`
51 LD_VERSION=`$LD_PROG --version`
52-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
53-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
54+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
55+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
56 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
57 LD_OK="ok"
58 else
[e7a7a6f]59diff -Naur gcc-4.1.0.orig/libjava/mingwld.m4 gcc-4.1.0/libjava/mingwld.m4
60--- gcc-4.1.0.orig/libjava/mingwld.m4 2005-08-22 18:36:35.000000000 -0400
61+++ gcc-4.1.0/libjava/mingwld.m4 2006-02-28 22:08:16.000000000 -0500
62@@ -3,8 +3,8 @@
63 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
[69cde8d]64 LD_PROG=`$CC --print-prog-name=ld`
65 LD_VERSION=`$LD_PROG --version`
66-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
67-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
68+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
69+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
70 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
71 LD_OK="ok"
72 else
[e7a7a6f]73diff -Naur gcc-4.1.0.orig/libstdc++-v3/acinclude.m4 gcc-4.1.0/libstdc++-v3/acinclude.m4
74--- gcc-4.1.0.orig/libstdc++-v3/acinclude.m4 2006-01-19 17:55:55.000000000 -0500
75+++ gcc-4.1.0/libstdc++-v3/acinclude.m4 2006-02-28 22:08:16.000000000 -0500
76@@ -223,7 +223,7 @@
[69cde8d]77 # Start by getting the version number. I think the libtool test already
78 # does some of this, but throws away the result.
79 changequote(,)
80- ldver=`$LD --version 2>/dev/null | head -1 | \
81+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
82 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
83 changequote([,])
84 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]85diff -Naur gcc-4.1.0.orig/libstdc++-v3/configure gcc-4.1.0/libstdc++-v3/configure
86--- gcc-4.1.0.orig/libstdc++-v3/configure 2006-01-19 17:55:55.000000000 -0500
87+++ gcc-4.1.0/libstdc++-v3/configure 2006-02-28 22:08:16.000000000 -0500
88@@ -8201,7 +8201,7 @@
[69cde8d]89 # Start by getting the version number. I think the libtool test already
90 # does some of this, but throws away the result.
91
92- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]93+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]94 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
95
96 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]97@@ -53040,7 +53040,7 @@
[69cde8d]98 # Start by getting the version number. I think the libtool test already
99 # does some of this, but throws away the result.
100
101- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]102+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]103 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
104
105 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]106@@ -74372,7 +74372,7 @@
[69cde8d]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 | \
[e7a7a6f]111+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]112 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
113
114 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]115@@ -75867,7 +75867,7 @@
[69cde8d]116 # Start by getting the version number. I think the libtool test already
117 # does some of this, but throws away the result.
118
119- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]120+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]121 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
122
123 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]124@@ -77238,7 +77238,7 @@
[69cde8d]125 # Start by getting the version number. I think the libtool test already
126 # does some of this, but throws away the result.
127
128- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]129+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]130 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
131
132 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]133@@ -79396,7 +79396,7 @@
[69cde8d]134 # Start by getting the version number. I think the libtool test already
135 # does some of this, but throws away the result.
136
137- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]138+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]139 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
140
141 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]142@@ -80720,7 +80720,7 @@
[69cde8d]143 # Start by getting the version number. I think the libtool test already
144 # does some of this, but throws away the result.
145
146- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]147+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]148 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
149
150 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]151@@ -82093,7 +82093,7 @@
[69cde8d]152 # Start by getting the version number. I think the libtool test already
153 # does some of this, but throws away the result.
154
155- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]156+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]157 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
158
159 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]160@@ -83858,7 +83858,7 @@
[69cde8d]161 # Start by getting the version number. I think the libtool test already
162 # does some of this, but throws away the result.
163
164- ldver=`$LD --version 2>/dev/null | head -1 | \
[e7a7a6f]165+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
166 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
167
168 glibcxx_gnu_ld_version=`echo $ldver | \
169@@ -85944,7 +85944,7 @@
170 # Start by getting the version number. I think the libtool test already
171 # does some of this, but throws away the result.
172
173- ldver=`$LD --version 2>/dev/null | head -1 | \
174+ ldver=`$LD --version 2>/dev/null | head -n -1 | \
[69cde8d]175 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
176
177 glibcxx_gnu_ld_version=`echo $ldver | \
[e7a7a6f]178diff -Naur gcc-4.1.0.orig/ltcf-c.sh gcc-4.1.0/ltcf-c.sh
179--- gcc-4.1.0.orig/ltcf-c.sh 2005-11-18 17:53:08.000000000 -0500
180+++ gcc-4.1.0/ltcf-c.sh 2006-02-28 22:08:16.000000000 -0500
[69cde8d]181@@ -153,7 +153,7 @@
182 # If the export-symbols file already is a .def file (1st line
183 # is EXPORTS), use it as is.
184 # If DATA tags from a recent dlltool are present, honour them!
185- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
186+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
187 cp $export_symbols $output_objdir/$soname-def;
188 else
189 echo EXPORTS > $output_objdir/$soname-def;
[e7a7a6f]190diff -Naur gcc-4.1.0.orig/ltcf-gcj.sh gcc-4.1.0/ltcf-gcj.sh
191--- gcc-4.1.0.orig/ltcf-gcj.sh 2005-07-15 22:30:53.000000000 -0400
192+++ gcc-4.1.0/ltcf-gcj.sh 2006-02-28 22:08:16.000000000 -0500
[69cde8d]193@@ -156,7 +156,7 @@
194 # If the export-symbols file already is a .def file (1st line
195 # is EXPORTS), use it as is.
196 # If DATA tags from a recent dlltool are present, honour them!
197- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
198+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
199 cp $export_symbols $output_objdir/$soname-def;
200 else
201 echo EXPORTS > $output_objdir/$soname-def;
Note: See TracBrowser for help on using the repository browser.