From e7651ec5a583b5ffcbde615b66cbce12a3dc7547 Mon Sep 17 00:00:00 2001
From: Chris Demetriou <cgd@sibyte.com>
Date: Fri, 28 Apr 2000 21:46:33 +0000
Subject: [PATCH] configure.in (sparc-hal-solaris2*): protect [] glob from my
 expansion.

        * configure.in (sparc-hal-solaris2*): protect [] glob from
        my expansion.
        (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
        rather than hard-coded constants in target_cpu_default2.
        * configure: Regenerate.

From-SVN: r33520
---
 gcc/ChangeLog    |  8 ++++++++
 gcc/configure    | 10 +++++-----
 gcc/configure.in |  8 +++++---
 3 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0db19858e21b..6252ecaff5fc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2000-04-28  Chris Demetriou  <cgd@sibyte.com>
+
+	* configure.in (sparc-hal-solaris2*): protect [] glob from
+	my expansion.
+	(mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
+	rather than hard-coded constants in target_cpu_default2.
+	* configure: Regenerate.
+
 2000-04-28  Jason Merrill  <jason@casey.cygnus.com>
 
 	* tree.c (get_callee_fndecl): Extract the initial value from
diff --git a/gcc/configure b/gcc/configure
index d8d2056253c3..d3101033f14d 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -1354,7 +1354,7 @@ else
 fi
 
 # Find some useful tools
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -5983,7 +5983,7 @@ for machine in $build $host $target; do
                 xmake_file=sparc/x-sysv4
                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
                 case $machine in
-                *-*-solaris2.0-4)
+                *-*-solaris2.[0-4])
                         float_format=i128
                 ;;
                 *)
@@ -6312,16 +6312,16 @@ for machine in $build $host $target; do
 		then
 			if test x$gnu_ld = xyes
 			then
-				target_cpu_default2=20
+				target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
 			else
-				target_cpu_default2=16
+				target_cpu_default2="MASK_GAS"
 			fi
 		fi
 		;;
 	mips*-*-*)
 		if test x$gas = xyes
 		then
-			target_cpu_default2=16
+			target_cpu_default2="MASK_GAS"
 		fi
 		;;
 	powerpc*-*-* | rs6000-*-*)
diff --git a/gcc/configure.in b/gcc/configure.in
index d410f5327eeb..f3863b93a19c 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -3363,7 +3363,9 @@ changequote([,])dnl
                 xmake_file=sparc/x-sysv4
                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
                 case $machine in
+changequote(,)dnl
                 *-*-solaris2.[0-4])
+changequote([,])dnl
                         float_format=i128
                 ;;
                 *)
@@ -3700,16 +3702,16 @@ changequote([,])dnl
 		then
 			if test x$gnu_ld = xyes
 			then
-				target_cpu_default2=20
+				target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
 			else
-				target_cpu_default2=16
+				target_cpu_default2="MASK_GAS"
 			fi
 		fi
 		;;
 	mips*-*-*)
 		if test x$gas = xyes
 		then
-			target_cpu_default2=16
+			target_cpu_default2="MASK_GAS"
 		fi
 		;;
 	powerpc*-*-* | rs6000-*-*)
-- 
GitLab