aboutsummaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>1999-05-20 08:26:55 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-05-20 08:26:55 +0000
commit554b61bb304e178d08f69b202b6d16eca14785af (patch)
treec773f8d236cca5c8caaa0578e6211289e6fc850a /libjava/prims.cc
parentbf3118d04b6463cf24e439729ef9a2600b452f60 (diff)
downloadgcc-554b61bb304e178d08f69b202b6d16eca14785af.zip
gcc-554b61bb304e178d08f69b202b6d16eca14785af.tar.gz
gcc-554b61bb304e178d08f69b202b6d16eca14785af.tar.bz2
prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.
1999-05-20 Andrew Haley <aph@cygnus.com> * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added. * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro. (INIT_FPE): Exception string made more informative. * include/sparc-signal.h (INIT_FPE): Exception string made more informative. * testsuite/libjava.lang/Divide_1.java: New file. * testsuite/libjava.lang/Divide_1.out: New file. From-SVN: r27056
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index 4cc31cd..9909485 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -68,7 +68,11 @@ SIGNAL_HANDLER (catch_segv)
static java::lang::ArithmeticException *arithexception;
SIGNAL_HANDLER (catch_fpe)
{
+#ifdef HANDLE_DIVIDE_OVERFLOW
+ HANDLE_DIVIDE_OVERFLOW;
+#else
MAKE_THROW_FRAME;
+#endif
_Jv_Throw (arithexception);
}
#endif
@@ -97,7 +101,7 @@ _Jv_equalUtf8Consts (Utf8Const* a, Utf8Const *b)
}
/* True iff A is equal to STR.
- HASH is STR->hashCode().
+ HASH is STR->hashCode().
*/
jboolean