diff options
author | Zack Weinberg <zackw@stanford.edu> | 2001-05-13 01:28:18 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-05-13 01:28:18 +0000 |
commit | 1f730ff7b674c4309a3684f9e7f901ccf01da9c7 (patch) | |
tree | 49246e78a7ee8c4a59b8982faf4c2837e13775cb /libjava/include | |
parent | c9ec8f321f955dd9750f73d6957afbb0bac842e5 (diff) | |
download | gcc-1f730ff7b674c4309a3684f9e7f901ccf01da9c7.zip gcc-1f730ff7b674c4309a3684f9e7f901ccf01da9c7.tar.gz gcc-1f730ff7b674c4309a3684f9e7f901ccf01da9c7.tar.bz2 |
except.c (choose_personality_routine): Export.
gcc/cp:
* except.c (choose_personality_routine): Export. Add
explanatory comment. Take an enum languages, not a boolean.
(initialize_handler_parm): Adjust to match.
* cp-tree.h: Prototype choose_personality_routine.
* lex.c (handle_pragma_java_exceptions): New function.
(init_cp_pragma): Register #pragma GCC java_exceptions.
gcc:
* extend.texi: Document #pragma GCC java_exceptions.
libjava:
* Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
* Makefile.in: Regenerate (by hand).
* include/jvm.h: Add #pragma GCC java_exceptions at top of file.
* doc/cni.sgml: Document #pragma GCC java_exceptions.
From-SVN: r42027
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/jvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 50af756..1e80fbc 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -11,6 +11,9 @@ details. */ #ifndef __JAVA_JVM_H__ #define __JAVA_JVM_H__ +// Force C++ compiler to use Java-style exceptions. +#pragma GCC java_exceptions + #include <gcj/javaprims.h> #include <java-assert.h> |