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]

Configure patch


Hi,
the attached patch replaces some cases of
	if ! <something>; then
with
	if <something>; then : else

because solaris shell doesn't understand the ! (and as this is checking
some sparc features, it's rather sun-centric :-)

ok to install?

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
        I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk
1999-08-26  Nathan Sidwell  <nathan@acm.org>

	* configure.in: Don't use shell ! to negate exit codes

Index: egcs/gcc/configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.277
diff -c -3 -p -r1.277 configure.in
*** configure.in	1999/08/24 13:58:40	1.277
--- configure.in	1999/08/26 15:32:23
*************** case "$target" in 
*** 4235,4243 ****
  	echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
  	echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
  	gcc_cv_as_flags64="-xarch=v9"
! 	if ! $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
  		gcc_cv_as_flags64="-64"
! 		if ! $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
  			gcc_cv_as_flags64=""
  		fi
  	fi
--- 4235,4247 ----
  	echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
  	echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
  	gcc_cv_as_flags64="-xarch=v9"
! 	if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
! 		:
! 	else	      
  		gcc_cv_as_flags64="-64"
! 		if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
! 			:
! 		else	      
  			gcc_cv_as_flags64=""
  		fi
  	fi

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