summaryrefslogtreecommitdiffstats
path: root/libjava/exception.cc
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-10 20:59:37 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-10 20:59:37 +0000
commit44fff91ac6a44e9e37b45e3074dc6180dc647a9c (patch)
treeeea2eb37f6390643f1fbf410cfaa47d00bedcbb0 /libjava/exception.cc
parent82306445f911235f2860acb65dedc9b8e3b52802 (diff)
downloadppe42-gcc-44fff91ac6a44e9e37b45e3074dc6180dc647a9c.tar.gz
ppe42-gcc-44fff91ac6a44e9e37b45e3074dc6180dc647a9c.zip
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 ) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r--libjava/exception.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/exception.cc b/libjava/exception.cc
index 77e3e91b616..16bbb9fa114 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)
OpenPOWER on IntegriCloud