This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
3.0 Patch: -fuse-divide-subroutine for x86
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Subject: 3.0 Patch: -fuse-divide-subroutine for x86
- From: Tom Tromey <tromey at redhat dot com>
- Date: 13 Jun 2001 10:01:27 -0600
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>, Mark Mitchell <mark at codesourcery dot com>
- Reply-To: tromey at redhat dot com
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"