This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: -fuse-divide-subroutine -vs- gcc 2.95
- To: Java Patch List <java-patches@sourceware.cygnus.com>
- Subject: Patch: -fuse-divide-subroutine -vs- gcc 2.95
- From: Tom Tromey <tromey@cygnus.com>
- Date: 16 Aug 1999 11:01:13 -0600
- Reply-To: tromey@cygnus.com
I'm committing this patch. It changes the trunk so that it will not
use -fuse-divide-subroutine when the compiler does not understand it.
This lets us build the most current libjava with gcj 2.95. (This sort
of backward compatibility isn't always supported, but right now it is
ok.)
1999-08-16 Tom Tromey <tromey@cygnus.com>
* configure: Rebuilt.
* configure.in: Set DIVIDESPEC to empty string if compiler does
not support -fuse-divide-subroutine.
Tom
Index: configure.in
===================================================================
RCS file: /cvs/java/libgcj/libjava/configure.in,v
retrieving revision 1.22
diff -u -r1.22 configure.in
--- configure.in 1999/08/14 19:49:06 1.22
+++ configure.in 1999/08/16 16:55:05
@@ -524,6 +524,18 @@
changequote([,])
AC_DEFINE_UNQUOTED(GCJVERSION, "$gcjvers")
+# See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
+# we want to continue to support that version.
+cat > conftest.java << 'END'
+public class conftest { }
+END
+use_fuse=yes
+$GCJ -fuse-divide-subroutine -fsyntax-only conftest.java || use_fuse=no
+rm -f conftest.java
+if test "$use_fuse" = no; then
+ DIVIDESPEC=
+fi
+
AC_SUBST(AM_RUNTESTFLAGS)
dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.