This is the mail archive of the gcc-patches@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]

PATCH: PR other/10745


I committed this patch to both the mainline and release branches.
(This path is identical to the patch provided in the PR, except that I
applied it to configure.in, not configure.)

Tested by configuring with both GNU binutils 2.13.2.1 and "2.13.90.0.2
20020802" on i686-pc-linux-gnu.  Applied on the mainline and on the
branch.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com



2003-05-12  Mark Mitchell  <mark@codesourcery.com>

	PR other/10745
	* configure.in: Correct detection of GNU ld version number.
	* configure: Regenerated.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.627.2.7
diff -c -5 -p -r1.627.2.7 configure.in
*** configure.in	4 Apr 2003 09:17:46 -0000	1.627.2.7
--- configure.in	12 May 2003 18:13:45 -0000
*************** elif test x$gcc_cv_as != x; then
*** 1615,1626 ****
  	# This is irritatingly difficult to feature test for.  Look for 
  	# the date string after the version number.
  	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_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
  				# If there was date string, but was earlier than 2002-04-04, fail
  				gcc_cv_as_hidden="no"
  			elif test -z "$ld_vers"; then
--- 1615,1626 ----
  	# This is irritatingly difficult to feature test for.  Look for 
  	# the date string after the version number.
  	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]*\(\|\.[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
  				# If there was date string, but was earlier than 2002-04-04, fail
  				gcc_cv_as_hidden="no"
  			elif test -z "$ld_vers"; then


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