diff options
author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-06-10 13:59:37 -0700 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-06-10 13:59:37 -0700 |
commit | 9b8c19b4f52afaace7b003100311a4ebf4180a13 (patch) | |
tree | eea2eb37f6390643f1fbf410cfaa47d00bedcbb0 /libjava | |
parent | 6cfc03411c64d74e2e5d707b6635aed85620595f (diff) | |
download | gcc-9b8c19b4f52afaace7b003100311a4ebf4180a13.zip gcc-9b8c19b4f52afaace7b003100311a4ebf4180a13.tar.gz gcc-9b8c19b4f52afaace7b003100311a4ebf4180a13.tar.bz2 |
exception.cc (cstdlib): Replaces stdlib.h.
2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* exception.cc (cstdlib): Replaces stdlib.h.
(_Jv_Throw): Use std::abort().
(PERSONALITY_FUNCTION): Likewise.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00620.html )
From-SVN: r43153
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/exception.cc | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7e6b8d9..af4f26f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com> + + * exception.cc (cstdlib): Replaces stdlib.h. + (_Jv_Throw): Use std::abort(). + (PERSONALITY_FUNCTION): Likewise. + 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net> * acinclude.m4 (AC_EXEEXT): Work around in case it expands to diff --git a/libjava/exception.cc b/libjava/exception.cc index 77e3e91..16bbb9f 100644 --- a/libjava/exception.cc +++ b/libjava/exception.cc @@ -11,7 +11,7 @@ details. */ #include <config.h> #include <stddef.h> -#include <stdlib.h> +#include <cstdlib> #include <java/lang/Class.h> #include <java/lang/NullPointerException.h> @@ -100,7 +100,7 @@ _Jv_Throw (jthrowable value) recover. As is the way of such things, almost certainly we will have crashed before now, rather than actually being able to diagnose the problem. */ - abort (); + std::abort (); } @@ -348,7 +348,7 @@ PERSONALITY_FUNCTION (int version, // ??? Perhaps better to make them an index into a table // of null-terminated strings instead of playing games // with Utf8Const+1 as above. - abort (); + std::abort (); } if (ar_disp == 0) |