aboutsummaryrefslogtreecommitdiff
path: root/libjava/gcj/javaprims.h
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@gcc.gnu.org>2001-05-18 07:29:11 +0100
committerBryce McKinlay <bryce@gcc.gnu.org>2001-05-18 07:29:11 +0100
commitca1906ff9add634551e681cdd94259401542e814 (patch)
tree0ced9189dbcd2b7509625083e75951dca7a938c4 /libjava/gcj/javaprims.h
parent6fd72f814a8d33fdf72485f2fefcb793ce4e60c5 (diff)
downloadgcc-ca1906ff9add634551e681cdd94259401542e814.zip
gcc-ca1906ff9add634551e681cdd94259401542e814.tar.gz
gcc-ca1906ff9add634551e681cdd94259401542e814.tar.bz2
[multiple changes]
2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * include/jvm.h: Move "#pragma GCC java_exceptions" to ... * gcj/javaprims.h: ... here. * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions". 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com> * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error with length of ioffset table. (_Jv_IsAssignableFrom): Likewise. From-SVN: r42248
Diffstat (limited to 'libjava/gcj/javaprims.h')
-rw-r--r--libjava/gcj/javaprims.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/gcj/javaprims.h b/libjava/gcj/javaprims.h
index f16e97d..e13195c 100644
--- a/libjava/gcj/javaprims.h
+++ b/libjava/gcj/javaprims.h
@@ -11,6 +11,9 @@ details. */
#ifndef __JAVAPRIMS_H__
#define __JAVAPRIMS_H__
+// Force C++ compiler to use Java-style exceptions.
+#pragma GCC java_exceptions
+
// FIXME: this is a hack until we get a proper gcjh.
// It is needed to work around system header files that define TRUE
// and FALSE.