From db09292e79ecb53a7e05fe5729260d9305582b94 Mon Sep 17 00:00:00 2001
From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon, 22 Nov 2004 23:32:13 +0000
Subject: [PATCH] 	* configure.ac (machdep): Use sparc_mach_dep.lo on 
 sparc64-sun-solaris2.* too. 	(Solaris gcc optimization fix): Disable on
 sparc*-sun-solaris2.*. 	* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91047 138bc75d-0d04-0410-961f-82ee72b054a4
---
 boehm-gc/ChangeLog    | 7 +++++++
 boehm-gc/configure    | 4 ++--
 boehm-gc/configure.ac | 6 +++---
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index afbaed422e42..a00850ac657c 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,10 @@
+2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+	* configure.ac (machdep): Use sparc_mach_dep.lo on
+	sparc64-sun-solaris2.* too.
+	(Solaris gcc optimization fix): Disable on sparc*-sun-solaris2.*.
+	* configure: Regenerate.
+
 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
 	PR target/18444
diff --git a/boehm-gc/configure b/boehm-gc/configure
index ebf3bdd2f1a7..b950a0706c4f 100755
--- a/boehm-gc/configure
+++ b/boehm-gc/configure
@@ -5768,7 +5768,7 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
     ;;
- sparc-sun-solaris2.*)
+ sparc*-sun-solaris2.*)
     machdep="sparc_mach_dep.lo"
     ;;
  ia64-*-*)
@@ -6446,7 +6446,7 @@ fi
 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
 case "$host" in
- sparc-sun-solaris2*|*aix*)
+ *aix*)
     if test "$GCC" = yes; then
        echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
diff --git a/boehm-gc/configure.ac b/boehm-gc/configure.ac
index 53a71a394e6c..7d1c6e3df1b3 100644
--- a/boehm-gc/configure.ac
+++ b/boehm-gc/configure.ac
@@ -336,7 +336,7 @@ case "$host" in
     machdep="sparc_mach_dep.lo"
     AC_DEFINE(SUNOS53_SHARED_LIB,1,[Avoid Solaris 5.3 dynamic library bug])
     ;;
- sparc-sun-solaris2.*)
+ sparc*-sun-solaris2.*)
     machdep="sparc_mach_dep.lo"
     ;;
  ia64-*-*)
@@ -378,10 +378,10 @@ fi
 
 dnl As of 4.13a2, the collector will not properly work on Solaris when
 dnl built with gcc and -O.  So we remove -O in the appropriate case.
-dnl
+dnl Not needed anymore on Solaris.
 AC_MSG_CHECKING(whether Solaris gcc optimization fix is necessary)
 case "$host" in
- sparc-sun-solaris2*|*aix*)
+ *aix*)
     if test "$GCC" = yes; then
        AC_MSG_RESULT(yes)
        new_CFLAGS=
-- 
GitLab