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]

Re: irix bootstrap dies in builtins.c


On Tue, Apr 03, 2001 at 03:46:34PM -0700, Richard Henderson wrote:
> On Tue, Apr 03, 2001 at 12:56:55PM -0700, Geoff Keating wrote:
> > If so, that's your problem.  A gas this old can't possibly support it
> > properly.  That's no problem, because we can add 2.9.* to the list of
> > bad versions.
> 
> I guess we should check something like...

So.


r~


        * configure.in (gcc_cv_as_leb128): Reject gas before 2.11.
        * configure: Rebuild.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.509
diff -c -p -d -r1.509 configure.in
*** configure.in	2001/04/04 00:46:25	1.509
--- configure.in	2001/04/04 01:41:00
*************** L1:
*** 1325,1336 ****
  L2:
  EOF
  	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
! 		# GAS versions numbered 2.10.90 do not support uleb128, despite
! 		# appearing to.
! 		if $gcc_cv_as --version | fgrep 2.10.90 > /dev/null; then
! 			:
! 		else
! 			gcc_cv_as_leb128="yes"
  		fi
  	fi
  	rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
--- 1325,1347 ----
  L2:
  EOF
  	if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
! 		gcc_cv_as_leb128="yes"
! 
! 		# GAS versions before 2.11 do not support uleb128,
! 		# despite appearing to.
! 		# ??? There exists an elf-specific test that will crash
! 		# the assembler.  Perhaps it's better to figure out whether
! 		# arbitrary sections are supported and try the test.
! 		as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
! 		if echo "$as_ver" | grep GNU > /dev/null; then
! 			as_ver=`echo $as_ver | sed -e 's/.* //'`
! 			as_major=`echo $as_ver | sed 's/\..*//'`
! changequote(,)dnl
! 			as_minor=`echo $as_ver | sed 's/[^.]*.\([^.]*\).*/\1/'`
! changequote([,])dnl
! 			if test $as_major -eq 2 -a $as_minor -lt 11; then
! 				gcc_cv_as_leb128="no"
! 			fi
  		fi
  	fi
  	rm -f conftest.s conftest.o conftest.nm1 conftest.nm2


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