source: patches/gcc-4.4.0-posix-1.patch@ 6fcaede

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6fcaede was 56a4eb5, checked in by Jim Gifford <clfs@…>, 16 years ago

Updated to GCC 4.4.0

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

    Submitted By: Jim Gifford (jim at cross-lfs dot org)
    Date: 04-21-2009
    Initial Package Version: 4.4.0
    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
    	Rediffed against 4.4.0 by Jim Gifford
    Upstream Status: On Hold
    Description: Makes GCC Posix Compliant
    
    diff -Naur gcc-4.4.0.orig/contrib/patch_tester.sh gcc-4.4.0/contrib/patch_tester.sh
    old new  
    324324    MAKE_ARGS="$default_make $MAKE_ARGS"
    325325    if ! eval make $dashj $MAKE_ARGS &> $1/bootstrap ; then
    326326        report "bootstrap with `basename $1` version failed with last lines:"
    327         tail -30 $1/bootstrap > $1/last_bootstrap
     327        tail -n 30 $1/bootstrap > $1/last_bootstrap
    328328        freport $1/last_bootstrap
    329329        report "grep --context=20 Error bootstrap:"
    330330        grep --context=20 Error $1/bootstrap > $1/bootstrap_error
     
    464464# After selfexec, $TESTING is already set up. 
    465465if [ -d $TESTING ]; then
    466466    # The only file in $TESTING is the patch.
    467     PATCH=`ls -rt -1 $TESTING | head -1`
     467    PATCH=`ls -rt -1 $TESTING | head -n 1`
    468468    PATCH=$TESTING/$PATCH
    469469    if [ -f $PATCH ]; then
    470470        bootntest_patched && bootntest_pristine && compare_passes
     
    474474
    475475firstpatch=true
    476476while true; do
    477     PATCH=`ls -rt -1 $PATCHES | head -1`
     477    PATCH=`ls -rt -1 $PATCHES | head -n 1`
    478478    if [ x$PATCH = x ]; then
    479479        if [ $stop = true ]; then
    480480            if [ $firstpatch = true ]; then
  • contrib/test_summary

    diff -Naur gcc-4.4.0.orig/contrib/test_summary gcc-4.4.0/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.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure
    old new  
    2175021750  # Therefore, use diff -b for the comparisons.
    2175121751  if test x$gcc_cv_objdump != x \
    2175221752  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    21753      | tail -3 > conftest.got \
     21753     | tail -n 3 > conftest.got \
    2175421754  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
    2175521755    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    2175621756  then
  • gcc/configure.ac

    diff -Naur gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac
    old new  
    23512351  # Therefore, use diff -b for the comparisons.
    23522352  if test x$gcc_cv_objdump != x \
    23532353  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    2354      | tail -3 > conftest.got \
     2354     | tail -n 3 > conftest.got \
    23552355  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
    23562356    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    23572357  then
  • gcc/testsuite/ada/acats/run_all.sh

    diff -Naur gcc-4.4.0.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.4.0/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.4.0.orig/libgomp/acinclude.m4 gcc-4.4.0/libgomp/acinclude.m4
    old new  
    152152    libgomp_ld_is_gold=yes
    153153  fi
    154154  changequote(,)
    155   ldver=`$LD --version 2>/dev/null | head -1 | \
     155  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    156156         sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    157157  changequote([,])
    158158  libgomp_gnu_ld_version=`echo $ldver | \
  • libgomp/configure

    diff -Naur gcc-4.4.0.orig/libgomp/configure gcc-4.4.0/libgomp/configure
    old new  
    1848618486    libgomp_ld_is_gold=yes
    1848718487  fi
    1848818488
    18489   ldver=`$LD --version 2>/dev/null | head -1 | \
     18489  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    1849018490         sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    1849118491
    1849218492  libgomp_gnu_ld_version=`echo $ldver | \
  • libjava/classpath/configure

    diff -Naur gcc-4.4.0.orig/libjava/classpath/configure gcc-4.4.0/libjava/classpath/configure
    old new  
    2907229072fi # shortcircut to system "stdint.h"
    2907329073# ------------------ PREPARE VARIABLES ------------------------------
    2907429074if test "$GCC" = "yes" ; then
    29075 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
     29075ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
    2907629076else
    2907729077ac_cv_stdint_message="using $CC"
    2907829078fi
  • libjava/classpath/ltcf-c.sh

    diff -Naur gcc-4.4.0.orig/libjava/classpath/ltcf-c.sh gcc-4.4.0/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.4.0.orig/libjava/classpath/ltcf-gcj.sh gcc-4.4.0/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.4.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.4.0/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.4.0.orig/libjava/configure gcc-4.4.0/libjava/configure
    old new  
    1891918919echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
    1892018920LD_PROG=`$CC --print-prog-name=ld`
    1892118921LD_VERSION=`$LD_PROG --version`
    18922 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    18923 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     18922LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     18923LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    1892418924if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    1892518925  LD_OK="ok"
    1892618926else
  • libjava/mingwld.m4

    diff -Naur gcc-4.4.0.orig/libjava/mingwld.m4 gcc-4.4.0/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.4.0.orig/libstdc++-v3/acinclude.m4 gcc-4.4.0/libstdc++-v3/acinclude.m4
    old new  
    238238    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    239239      glibcxx_ld_is_gold=yes
    240240    fi
    241     ldver=`$LD --version 2>/dev/null | head -1 | \
     241    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    242242           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    243243    changequote([,])
    244244    glibcxx_gnu_ld_version=`echo $ldver | \
  • libstdc++-v3/configure

    diff -Naur gcc-4.4.0.orig/libstdc++-v3/configure gcc-4.4.0/libstdc++-v3/configure
    old new  
    2348923489    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    2349023490      glibcxx_ld_is_gold=yes
    2349123491    fi
    23492     ldver=`$LD --version 2>/dev/null | head -1 | \
     23492    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    2349323493           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    2349423494
    2349523495    glibcxx_gnu_ld_version=`echo $ldver | \
     
    4205542055    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    4205642056      glibcxx_ld_is_gold=yes
    4205742057    fi
    42058     ldver=`$LD --version 2>/dev/null | head -1 | \
     42058    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    4205942059           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    4206042060
    4206142061    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7633376333    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    7633476334      glibcxx_ld_is_gold=yes
    7633576335    fi
    76336     ldver=`$LD --version 2>/dev/null | head -1 | \
     76336    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7633776337           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    7633876338
    7633976339    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7664576645    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    7664676646      glibcxx_ld_is_gold=yes
    7664776647    fi
    76648     ldver=`$LD --version 2>/dev/null | head -1 | \
     76648    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7664976649           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    7665076650
    7665176651    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7732877328    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    7732977329      glibcxx_ld_is_gold=yes
    7733077330    fi
    77331     ldver=`$LD --version 2>/dev/null | head -1 | \
     77331    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7733277332           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    7733377333
    7733477334    glibcxx_gnu_ld_version=`echo $ldver | \
     
    9508095080    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    9508195081      glibcxx_ld_is_gold=yes
    9508295082    fi
    95083     ldver=`$LD --version 2>/dev/null | head -1 | \
     95083    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    9508495084           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    9508595085
    9508695086    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112274112274    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    112275112275      glibcxx_ld_is_gold=yes
    112276112276    fi
    112277     ldver=`$LD --version 2>/dev/null | head -1 | \
     112277    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112278112278           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    112279112279
    112280112280    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112493112493    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    112494112494      glibcxx_ld_is_gold=yes
    112495112495    fi
    112496     ldver=`$LD --version 2>/dev/null | head -1 | \
     112496    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112497112497           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    112498112498
    112499112499    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112678112678    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    112679112679      glibcxx_ld_is_gold=yes
    112680112680    fi
    112681     ldver=`$LD --version 2>/dev/null | head -1 | \
     112681    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112682112682           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    112683112683
    112684112684    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112899112899    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    112900112900      glibcxx_ld_is_gold=yes
    112901112901    fi
    112902     ldver=`$LD --version 2>/dev/null | head -1 | \
     112902    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112903112903           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    112904112904
    112905112905    glibcxx_gnu_ld_version=`echo $ldver | \
     
    113121113121    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
    113122113122      glibcxx_ld_is_gold=yes
    113123113123    fi
    113124     ldver=`$LD --version 2>/dev/null | head -1 | \
     113124    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    113125113125           sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    113126113126
    113127113127    glibcxx_gnu_ld_version=`echo $ldver | \
Note: See TracBrowser for help on using the repository browser.