From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32410 invoked by alias); 28 Jan 2003 15:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 32394 invoked by uid 71); 28 Jan 2003 15:26:01 -0000 Date: Tue, 28 Jan 2003 15:26:00 -0000 Message-ID: <20030128152601.32393.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Greg Schafer Subject: Re: other/9479: ld --version parsing in gcc configury fails on latest FSF binutils-2.13.2.1 Reply-To: Greg Schafer X-SW-Source: 2003-01/txt/msg01589.txt.bz2 List-Id: The following reply was made to PR other/9479; it has been noted by GNATS. From: Greg Schafer To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, jakub@redhat.com, drow@mvista.com Cc: Subject: Re: other/9479: ld --version parsing in gcc configury fails on latest FSF binutils-2.13.2.1 Date: Wed, 29 Jan 2003 02:19:32 +1100 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Ok, here's a patch that seems to work. Could somebody pls verify and check in if ok? Patch provided by:- Chris Lingard and Dan Osterrath Greg --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gcc-fix.patch" diff -uNr gcc.orig/configure.in gcc/configure.in --- gcc.orig/configure.in 2003-01-28 19:11:33.000000000 +1100 +++ gcc/configure.in 2003-01-29 01:53:38.000000000 +1100 @@ -1674,7 +1674,7 @@ ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1` if echo "$ld_ver" | grep GNU > /dev/null; then changequote(,)dnl - ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'` + ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'` ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` if test 0"$ld_date" -lt 20020404; then if test -n "$ld_date"; then --/9DWx/yDrRhgMJTb--