This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: other/9479: ld --version parsing in gcc configury fails on latest FSF binutils-2.13.2.1


The following reply was made to PR other/9479; it has been noted by GNATS.

From: Greg Schafer <gschafer@zip.com.au>
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 <chris@stockwith.co.uk> and
 Dan Osterrath <do3@mail.inf.tu-dresden.de>
 
 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--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]