summaryrefslogtreecommitdiffstats
path: root/libjava/include/sparc-signal.h
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-20 08:26:55 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-20 08:26:55 +0000
commita5b1e8ad34500f24632c0dbcaa4c0788c0a48d06 (patch)
treec773f8d236cca5c8caaa0578e6211289e6fc850a /libjava/include/sparc-signal.h
parent8f68d3b43cb2436a1faf8f5cf35b20ea3584d65a (diff)
downloadppe42-gcc-a5b1e8ad34500f24632c0dbcaa4c0788c0a48d06.tar.gz
ppe42-gcc-a5b1e8ad34500f24632c0dbcaa4c0788c0a48d06.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include/sparc-signal.h')
-rw-r--r--libjava/include/sparc-signal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/include/sparc-signal.h b/libjava/include/sparc-signal.h
index dfe8635e3eb..03b5cdc4dc6 100644
--- a/libjava/include/sparc-signal.h
+++ b/libjava/include/sparc-signal.h
@@ -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; \
OpenPOWER on IntegriCloud