3.0 Patch: -fuse-divide-subroutine for x86
Tom Tromey
tromey@redhat.com
Wed Jun 13 08:46:00 GMT 2001
Some gcc change recently broke the ability of libgcj to catch a divide
by zero exception thrown on x86. The fix, which is a workaround only
appropriate for the 3.0 branch, is to change the x86 to use the divide
subroutine. All other architectures already use this.
Here's the patch. I tested this on my x86 Linux box.
Mark, is this ok for the branch?
2001-06-13 Tom Tromey <tromey@redhat.com>
* configure.host: Don't use -fno-use-divide-subroutine on x86.
Tom
Index: configure.host
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.host,v
retrieving revision 1.15.2.6
diff -u -r1.15.2.6 configure.host
--- configure.host 2001/05/29 16:28:14 1.15.2.6
+++ configure.host 2001/06/13 15:33:47
@@ -62,7 +62,6 @@
libgcj_interpreter=yes
libgcj_cxxflags="-D__NO_MATH_INLINES"
libgcj_cflags="-D__NO_MATH_INLINES"
- DIVIDESPEC=-fno-use-divide-subroutine
;;
alpha*-*)
libgcj_flags="${libgcj_flags} -mieee"
More information about the Java-patches
mailing list