From a2d421410ebac81ab3d874b79c72fc1d6dc2d60c Mon Sep 17 00:00:00 2001 From: bryce Date: Fri, 13 Oct 2000 04:45:57 +0000 Subject: 2000-10-13 Bryce McKinlay * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36855 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 8 ++++++++ libjava/Makefile.am | 2 +- libjava/Makefile.in | 2 +- libjava/exception.cc | 3 +-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 412256e41bb..87b03af40ba 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,11 @@ +2000-10-13 Bryce McKinlay + + * 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. + 2000-10-11 Bryce McKinlay * java/awt/peer/ChoicePeer.java (addItem): Removed. diff --git a/libjava/Makefile.am b/libjava/Makefile.am index 36ea2d07f0c..8cc666c0685 100644 --- a/libjava/Makefile.am +++ b/libjava/Makefile.am @@ -124,7 +124,7 @@ libgcj_la_DEPENDENCIES = libgcj.zip $(javao_files) $(nat_files) \ $(c_files) $(GCOBJS) $(THREADOBJS) $(LIBLTDL) libgcj_la_LIBADD = $(javao_files) $(nat_files) $(c_files) $(GCOBJS) \ $(THREADOBJS) $(libffi_files) $(LIBLTDL) -libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) \ +libgcj_la_LDFLAGS = -lsupc++ -rpath $(toolexeclibdir) \ ## The mysterious backslash is consumed by make. -version-info `grep -v '^\#' $(srcdir)/libtool-version` libgcj_la_LINK = $(LIBLINK) diff --git a/libjava/Makefile.in b/libjava/Makefile.in index bab064703c9..70015d9e47d 100644 --- a/libjava/Makefile.in +++ b/libjava/Makefile.in @@ -202,7 +202,7 @@ libgcj_la_DEPENDENCIES = libgcj.zip $(javao_files) $(nat_files) \ libgcj_la_LIBADD = $(javao_files) $(nat_files) $(c_files) $(GCOBJS) \ $(THREADOBJS) $(libffi_files) $(LIBLTDL) -libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) \ +libgcj_la_LDFLAGS = -lsupc++ -rpath $(toolexeclibdir) \ -version-info `grep -v '^\#' $(srcdir)/libtool-version` libgcj_la_LINK = $(LIBLINK) diff --git a/libjava/exception.cc b/libjava/exception.cc index 30ef55c078c..b8b9634e94d 100644 --- a/libjava/exception.cc +++ b/libjava/exception.cc @@ -10,7 +10,6 @@ details. */ #include -#include "exception" #include #include @@ -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 (); -- cgit v1.2.1