This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


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

Patch: -fuse-divide-subroutine -vs- gcc 2.95


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.

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