This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[boehm-gc] Couple of tweaks on sparc*-sun-solaris2.*
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: boehm at acm dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Nov 2004 08:42:19 +0100
- Subject: [boehm-gc] Couple of tweaks on sparc*-sun-solaris2.*
Hello Hans,
May I install the following patch in the GCC CVS tree on mainline? It fixes a
couple of glitches:
- sparc_mach_dep.lo is not compiled on sparc64-sun-solaris2.* while it is for
the multilibed compiler on sparc-sun-solaris2.*,
- as far as I can see, the "Solaris gcc optimization fix" is not necessary
anymore with 4.0.0 (and probably recent 3.x versions too).
The patch has been in my tree for a couple of months and the testsuite results
for libjava are at least as good as without it.
Thanks in advance.
2004-11-12 ?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.
--
Eric Botcazou
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/configure.ac,v
retrieving revision 1.6
diff -u -r1.6 configure.ac
--- configure.ac 5 Nov 2004 01:51:50 -0000 1.6
+++ configure.ac 12 Nov 2004 07:19:56 -0000
@@ -336,7 +336,7 @@
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 @@
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=