aboutsummaryrefslogtreecommitdiff
path: root/libjava/exception.cc
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-10-13 04:45:57 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2000-10-13 05:45:57 +0100
commitc26f7a3165fa34de2f55291d33da8320ed3077e8 (patch)
treedeb190d95c498ebdc2550008c35c1c3209928a07 /libjava/exception.cc
parent3c1d1e7b7f4b2f81701f773556c54a9aa41298ae (diff)
downloadgcc-c26f7a3165fa34de2f55291d33da8320ed3077e8.zip
gcc-c26f7a3165fa34de2f55291d33da8320ed3077e8.tar.gz
gcc-c26f7a3165fa34de2f55291d33da8320ed3077e8.tar.bz2
exception.cc: Don't #include "exception".
2000-10-13 Bryce McKinlay <bryce@albatross.co.nz> * exception.cc: Don't #include "exception". (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails. * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++. * Makefile.in: Updated. From-SVN: r36855
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r--libjava/exception.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/exception.cc b/libjava/exception.cc
index 30ef55c..b8b9634 100644
--- a/libjava/exception.cc
+++ b/libjava/exception.cc
@@ -10,7 +10,6 @@ details. */
#include <config.h>
-#include "exception"
#include <stddef.h>
#include <stdlib.h>
@@ -101,7 +100,7 @@ _Jv_eh_alloc ()
apparently can sometimes free() this value itself. */
java_eh_info *p = (java_eh_info *) malloc (sizeof (java_eh_info));
if (p == 0)
- terminate ();
+ abort ();
p->value = 0;
java_eh_info ** info_ptr = __get_eh_info ();