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
This commit is contained in:
Andrew Haley 1999-05-20 08:26:55 +00:00 committed by Andrew Haley
parent bf3118d04b
commit 554b61bb30
6 changed files with 211 additions and 8 deletions

View file

@ -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