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
libjava/include

View file

@ -51,7 +51,8 @@ while (0)
#define INIT_FPE \
do \
{ \
arithexception = new java::lang::ArithmeticException (); \
arithexception = new java::lang::ArithmeticException \
(JvNewStringLatin1 ("/ by zero")); \
struct sigaction act; \
act.sa_flags = SA_SIGINFO; \
act.sa_sigaction = catch_fpe; \