source: patches/gcc-4.1.2-posix-1.patch@ f4d8f6e

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

Updated to GCC 4.1.2

  • Property mode set to 100644
File size: 9.0 KB
  • contrib/test_summary

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2007-02-14
    Initial Package Version: 4.1.2
    Origin: Jim Gifford
            Rediffed against 4.1.0 by Chris Staub
            Rediffed against 4.1.2 by Jim Gifford
    Upstream Status: On Hold
    Description: Makes GCC Posix Compliant
    
    diff -Naur gcc-4.1.2.orig/contrib/test_summary gcc-4.1.2/contrib/test_summary
    old new  
    106106    srcdir = configflags;
    107107    sub(/\/configure .*/, "", srcdir);
    108108    printf "LAST_UPDATED: ";
    109     system("tail -1 " srcdir "/LAST_UPDATED");
     109    system("tail -n 1 " srcdir "/LAST_UPDATED");
    110110    print "";
    111111
    112112    sub(/^[^ ]*\/configure */, " ", configflags);
  • gcc/configure

    diff -Naur gcc-4.1.2.orig/gcc/configure gcc-4.1.2/gcc/configure
    old new  
    1431814318  # and we got the correct data, then succeed.
    1431914319  if test x$gcc_cv_objdump != x \
    1432014320  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    14321      | tail -3 > conftest.got \
     14321     | tail -n 3 > conftest.got \
    1432214322  && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
    1432314323    || cmp conftest.big conftest.got > /dev/null 2>&1; }
    1432414324  then
  • gcc/configure.ac

    diff -Naur gcc-4.1.2.orig/gcc/configure.ac gcc-4.1.2/gcc/configure.ac
    old new  
    21242124  # and we got the correct data, then succeed.
    21252125  if test x$gcc_cv_objdump != x \
    21262126  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    2127      | tail -3 > conftest.got \
     2127     | tail -n 3 > conftest.got \
    21282128  && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
    21292129    || cmp conftest.big conftest.got > /dev/null 2>&1; }
    21302130  then
  • libjava/configure

    diff -Naur gcc-4.1.2.orig/libjava/configure gcc-4.1.2/libjava/configure
    old new  
    67366736echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
    67376737LD_PROG=`$CC --print-prog-name=ld`
    67386738LD_VERSION=`$LD_PROG --version`
    6739 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    6740 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     6739LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     6740LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    67416741if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    67426742  LD_OK="ok"
    67436743else
  • libjava/mingwld.m4

    diff -Naur gcc-4.1.2.orig/libjava/mingwld.m4 gcc-4.1.2/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.1.2.orig/libstdc++-v3/acinclude.m4 gcc-4.1.2/libstdc++-v3/acinclude.m4
    old new  
    224224  # does some of this, but throws away the result.
    225225  if test x"$with_gnu_ld" = x"yes"; then
    226226    changequote(,)
    227     ldver=`$LD --version 2>/dev/null | head -1 | \
     227    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    228228           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    229229    changequote([,])
    230230    glibcxx_gnu_ld_version=`echo $ldver | \
  • libstdc++-v3/configure

    diff -Naur gcc-4.1.2.orig/libstdc++-v3/configure gcc-4.1.2/libstdc++-v3/configure
    old new  
    82808280  # does some of this, but throws away the result.
    82818281  if test x"$with_gnu_ld" = x"yes"; then
    82828282
    8283     ldver=`$LD --version 2>/dev/null | head -1 | \
     8283    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    82848284           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    82858285
    82868286    glibcxx_gnu_ld_version=`echo $ldver | \
     
    5312153121  # does some of this, but throws away the result.
    5312253122  if test x"$with_gnu_ld" = x"yes"; then
    5312353123
    53124     ldver=`$LD --version 2>/dev/null | head -1 | \
     53124    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    5312553125           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    5312653126
    5312753127    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7445574455  # does some of this, but throws away the result.
    7445674456  if test x"$with_gnu_ld" = x"yes"; then
    7445774457
    74458     ldver=`$LD --version 2>/dev/null | head -1 | \
     74458    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7445974459           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    7446074460
    7446174461    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7595275952  # does some of this, but throws away the result.
    7595375953  if test x"$with_gnu_ld" = x"yes"; then
    7595475954
    75955     ldver=`$LD --version 2>/dev/null | head -1 | \
     75955    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7595675956           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    7595775957
    7595875958    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7732577325  # does some of this, but throws away the result.
    7732677326  if test x"$with_gnu_ld" = x"yes"; then
    7732777327
    77328     ldver=`$LD --version 2>/dev/null | head -1 | \
     77328    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7732977329           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    7733077330
    7733177331    glibcxx_gnu_ld_version=`echo $ldver | \
     
    7948579485  # does some of this, but throws away the result.
    7948679486  if test x"$with_gnu_ld" = x"yes"; then
    7948779487
    79488     ldver=`$LD --version 2>/dev/null | head -1 | \
     79488    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    7948979489           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    7949079490
    7949179491    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8030480304  # does some of this, but throws away the result.
    8030580305  if test x"$with_gnu_ld" = x"yes"; then
    8030680306
    80307     ldver=`$LD --version 2>/dev/null | head -1 | \
     80307    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8030880308           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8030980309
    8031080310    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8167981679  # does some of this, but throws away the result.
    8168081680  if test x"$with_gnu_ld" = x"yes"; then
    8168181681
    81682     ldver=`$LD --version 2>/dev/null | head -1 | \
     81682    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8168381683           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8168481684
    8168581685    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8344683446  # does some of this, but throws away the result.
    8344783447  if test x"$with_gnu_ld" = x"yes"; then
    8344883448
    83449     ldver=`$LD --version 2>/dev/null | head -1 | \
     83449    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8345083450           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8345183451
    8345283452    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8466384663  # does some of this, but throws away the result.
    8466484664  if test x"$with_gnu_ld" = x"yes"; then
    8466584665
    84666     ldver=`$LD --version 2>/dev/null | head -1 | \
     84666    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8466784667           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8466884668
    8466984669    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8566485664  # does some of this, but throws away the result.
    8566585665  if test x"$with_gnu_ld" = x"yes"; then
    8566685666
    85667     ldver=`$LD --version 2>/dev/null | head -1 | \
     85667    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8566885668           sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
    8566985669
    8567085670    glibcxx_gnu_ld_version=`echo $ldver | \
  • ltcf-c.sh

    diff -Naur gcc-4.1.2.orig/ltcf-c.sh gcc-4.1.2/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;
  • ltcf-gcj.sh

    diff -Naur gcc-4.1.2.orig/ltcf-gcj.sh gcc-4.1.2/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;
Note: See TracBrowser for help on using the repository browser.