source: patches/gcc-4.3.3-posix-1.patch@ b9dddef

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

Updated to GCC 4.3.3 - Patches

  • Property mode set to 100644
File size: 13.9 KB
  • contrib/patch_tester.sh

    Submitted By: Jim Gifford (jim at cross-lfs dot org)
    Date: 01-25-2009
    Initial Package Version: 4.3.3
    Origin: Jim Gifford
            Rediffed against 4.1.0 by Chris Staub
            Rediffed against 4.1.2 by Jim Gifford
    	Rediffed and additions against 4.2.0 by Joe Ciccone
    	Rediffed against 4.3.0 by Joe Ciccone
    	Rediffed against 4.3.3 by Jim Gifford
    Upstream Status: On Hold
    Description: Makes GCC Posix Compliant
    
    diff -Naur gcc-4.3.3.orig/contrib/patch_tester.sh gcc-4.3.3/contrib/patch_tester.sh
    old new  
    287287
    288288    if ! make $dashj `grep "^make:" $PATCH | sed -e "s/^make://g"` bootstrap &> $1/bootstrap ; then
    289289        report "bootstrap failed with last lines:"
    290         tail -30 $1/bootstrap > $1/last_bootstrap
     290        tail -n 30 $1/bootstrap > $1/last_bootstrap
    291291        freport $1/last_bootstrap
    292292        report "grep --context=20 Error bootstrap:"
    293293        grep --context=20 Error $1/bootstrap > $1/bootstrap_error
     
    420420# After selfexec, $TESTING is already set up. 
    421421if [ -d $TESTING ]; then
    422422    # The only file in $TESTING is the patch.
    423     PATCH=`ls -rt -1 $TESTING | head -1`
     423    PATCH=`ls -rt -1 $TESTING | head -n 1`
    424424    PATCH=$TESTING/$PATCH
    425425    if [ -f $PATCH ]; then
    426426        bootntest_patched && bootntest_pristine && compare_passes
     
    429429fi
    430430
    431431while true; do
    432     PATCH=`ls -rt -1 $PATCHES | head -1`
     432    PATCH=`ls -rt -1 $PATCHES | head -n 1`
    433433    if [ x$PATCH = x ]; then
    434434        sleep ${standby}m
    435435    else
  • contrib/test_summary

    diff -Naur gcc-4.3.3.orig/contrib/test_summary gcc-4.3.3/contrib/test_summary
    old new  
    107107    srcdir = configflags;
    108108    sub(/\/configure .*/, "", srcdir);
    109109    printf "LAST_UPDATED: ";
    110     system("tail -1 " srcdir "/LAST_UPDATED");
     110    system("tail -n 1 " srcdir "/LAST_UPDATED");
    111111    print "";
    112112
    113113    sub(/^[^ ]*\/configure */, " ", configflags);
  • gcc/configure

    diff -Naur gcc-4.3.3.orig/gcc/configure gcc-4.3.3/gcc/configure
    old new  
    2024520245  # Therefore, use diff -b for the comparisons.
    2024620246  if test x$gcc_cv_objdump != x \
    2024720247  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    20248      | tail -3 > conftest.got \
     20248     | tail -n 3 > conftest.got \
    2024920249  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
    2025020250    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    2025120251  then
  • gcc/configure.ac

    diff -Naur gcc-4.3.3.orig/gcc/configure.ac gcc-4.3.3/gcc/configure.ac
    old new  
    22412241  # Therefore, use diff -b for the comparisons.
    22422242  if test x$gcc_cv_objdump != x \
    22432243  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    2244      | tail -3 > conftest.got \
     2244     | tail -n 3 > conftest.got \
    22452245  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
    22462246    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    22472247  then
  • gcc/testsuite/ada/acats/run_all.sh

    diff -Naur gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh
    old new  
    6868  ls ${i}?.adb > ${i}.lst 2> /dev/null
    6969  ls ${i}*m.adb >> ${i}.lst 2> /dev/null
    7070  ls ${i}.adb >> ${i}.lst 2> /dev/null
    71   main=`tail -1 ${i}.lst`
     71  main=`tail -n 1 ${i}.lst`
    7272}
    7373
    7474EXTERNAL_OBJECTS=""
  • libgomp/acinclude.m4

    diff -Naur gcc-4.3.3.orig/libgomp/acinclude.m4 gcc-4.3.3/libgomp/acinclude.m4
    old new  
    147147  # Start by getting the version number.  I think the libtool test already
    148148  # does some of this, but throws away the result.
    149149  changequote(,)
    150   ldver=`$LD --version 2>/dev/null | head -1 | \
     150  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    151151         sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    152152  changequote([,])
    153153  libgomp_gnu_ld_version=`echo $ldver | \
  • libgomp/configure

    diff -Naur gcc-4.3.3.orig/libgomp/configure gcc-4.3.3/libgomp/configure
    old new  
    1760017600  # Start by getting the version number.  I think the libtool test already
    1760117601  # does some of this, but throws away the result.
    1760217602
    17603   ldver=`$LD --version 2>/dev/null | head -1 | \
     17603  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    1760417604         sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    1760517605
    1760617606  libgomp_gnu_ld_version=`echo $ldver | \
  • libjava/classpath/configure

    diff -Naur gcc-4.3.3.orig/libjava/classpath/configure gcc-4.3.3/libjava/classpath/configure
    old new  
    2912629126fi # shortcircut to system "stdint.h"
    2912729127# ------------------ PREPARE VARIABLES ------------------------------
    2912829128if test "$GCC" = "yes" ; then
    29129 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
     29129ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
    2913029130else
    2913129131ac_cv_stdint_message="using $CC"
    2913229132fi
  • libjava/classpath/ltcf-c.sh

    diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh gcc-4.3.3/libjava/classpath/ltcf-c.sh
    old new  
    153153    # If the export-symbols file already is a .def file (1st line
    154154    # is EXPORTS), use it as is.
    155155    # If DATA tags from a recent dlltool are present, honour them!
    156     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     156    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    157157        cp $export_symbols $output_objdir/$soname-def;
    158158      else
    159159        echo EXPORTS > $output_objdir/$soname-def;
  • libjava/classpath/ltcf-gcj.sh

    diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh gcc-4.3.3/libjava/classpath/ltcf-gcj.sh
    old new  
    156156    # If the export-symbols file already is a .def file (1st line
    157157    # is EXPORTS), use it as is.
    158158    # If DATA tags from a recent dlltool are present, honour them!
    159     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     159    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    160160        cp $export_symbols $output_objdir/$soname-def;
    161161      else
    162162        echo EXPORTS > $output_objdir/$soname-def;
  • libjava/classpath/m4/ax_create_stdint_h.m4

    diff -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
    old new  
    217217fi # shortcircut to system "stdint.h"
    218218# ------------------ PREPARE VARIABLES ------------------------------
    219219if test "$GCC" = "yes" ; then
    220 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
     220ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
    221221else
    222222ac_cv_stdint_message="using $CC"
    223223fi
  • libjava/configure

    diff -Naur gcc-4.3.3.orig/libjava/configure gcc-4.3.3/libjava/configure
    old new  
    1867318673echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
    1867418674LD_PROG=`$CC --print-prog-name=ld`
    1867518675LD_VERSION=`$LD_PROG --version`
    18676 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    18677 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     18676LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     18677LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    1867818678if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    1867918679  LD_OK="ok"
    1868018680else
  • libjava/mingwld.m4

    diff -Naur gcc-4.3.3.orig/libjava/mingwld.m4 gcc-4.3.3/libjava/mingwld.m4
    old new  
    33AC_MSG_CHECKING(whether 'ld' is at least 2.13)
    44LD_PROG=`$CC --print-prog-name=ld`
    55LD_VERSION=`$LD_PROG --version`
    6 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    7 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     6LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     7LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    88if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    99  LD_OK="ok"
    1010else
  • libstdc++-v3/acinclude.m4

    diff -Naur gcc-4.3.3.orig/libstdc++-v3/acinclude.m4 gcc-4.3.3/libstdc++-v3/acinclude.m4
    old new  
    234234  if test x"$with_gnu_ld" = x"yes"; then
    235235    AC_MSG_CHECKING([for ld version])
    236236    changequote(,)
    237     ldver=`$LD --version 2>/dev/null | head -1 | \
     237    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    238238           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    239239    changequote([,])
    240240    glibcxx_gnu_ld_version=`echo $ldver | \
  • libstdc++-v3/configure

    diff -Naur gcc-4.3.3.orig/libstdc++-v3/configure gcc-4.3.3/libstdc++-v3/configure
    old new  
    1749017490    echo "$as_me:$LINENO: checking for ld version" >&5
    1749117491echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    1749217492
    17493     ldver=`$LD --version 2>/dev/null | head -1 | \
     17493    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    1749417494           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    1749517495
    1749617496    glibcxx_gnu_ld_version=`echo $ldver | \
     
    4221542215    echo "$as_me:$LINENO: checking for ld version" >&5
    4221642216echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    4221742217
    42218     ldver=`$LD --version 2>/dev/null | head -1 | \
     42218    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    4221942219           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    4222042220
    4222142221    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8460684606    echo "$as_me:$LINENO: checking for ld version" >&5
    8460784607echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    8460884608
    84609     ldver=`$LD --version 2>/dev/null | head -1 | \
     84609    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8461084610           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    8461184611
    8461284612    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8562285622    echo "$as_me:$LINENO: checking for ld version" >&5
    8562385623echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    8562485624
    85625     ldver=`$LD --version 2>/dev/null | head -1 | \
     85625    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8562685626           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    8562785627
    8562885628    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8661086610    echo "$as_me:$LINENO: checking for ld version" >&5
    8661186611echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    8661286612
    86613     ldver=`$LD --version 2>/dev/null | head -1 | \
     86613    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8661486614           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    8661586615
    8661686616    glibcxx_gnu_ld_version=`echo $ldver | \
     
    109089109089    echo "$as_me:$LINENO: checking for ld version" >&5
    109090109090echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    109091109091
    109092     ldver=`$LD --version 2>/dev/null | head -1 | \
     109092    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    109093109093           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    109094109094
    109095109095    glibcxx_gnu_ld_version=`echo $ldver | \
     
    109934109934    echo "$as_me:$LINENO: checking for ld version" >&5
    109935109935echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    109936109936
    109937     ldver=`$LD --version 2>/dev/null | head -1 | \
     109937    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    109938109938           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    109939109939
    109940109940    glibcxx_gnu_ld_version=`echo $ldver | \
     
    110828110828    echo "$as_me:$LINENO: checking for ld version" >&5
    110829110829echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    110830110830
    110831     ldver=`$LD --version 2>/dev/null | head -1 | \
     110831    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    110832110832           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    110833110833
    110834110834    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112114112114    echo "$as_me:$LINENO: checking for ld version" >&5
    112115112115echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    112116112116
    112117     ldver=`$LD --version 2>/dev/null | head -1 | \
     112117    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112118112118           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    112119112119
    112120112120    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112850112850    echo "$as_me:$LINENO: checking for ld version" >&5
    112851112851echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    112852112852
    112853     ldver=`$LD --version 2>/dev/null | head -1 | \
     112853    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112854112854           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    112855112855
    112856112856    glibcxx_gnu_ld_version=`echo $ldver | \
     
    113351113351    echo "$as_me:$LINENO: checking for ld version" >&5
    113352113352echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    113353113353
    113354     ldver=`$LD --version 2>/dev/null | head -1 | \
     113354    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    113355113355           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    113356113356
    113357113357    glibcxx_gnu_ld_version=`echo $ldver | \
Note: See TracBrowser for help on using the repository browser.