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