diff options
author | Adam Megacz <adam@xwt.org> | 2002-02-11 22:28:58 +0000 |
---|---|---|
committer | Adam Megacz <megacz@gcc.gnu.org> | 2002-02-11 22:28:58 +0000 |
commit | 1e41e84370ad850860903a4345a0d10ae1f69a41 (patch) | |
tree | 46caf471fa22b8aa3a1da9afaa8c01d37a0b798d /libjava/exception.cc | |
parent | d6e06ddc100e7b9854ebdb5363951aa83fe818f2 (diff) | |
download | gcc-1e41e84370ad850860903a4345a0d10ae1f69a41.zip gcc-1e41e84370ad850860903a4345a0d10ae1f69a41.tar.gz gcc-1e41e84370ad850860903a4345a0d10ae1f69a41.tar.bz2 |
exception.cc (_Jv_Throw, [...]): Changed std::abort() to simply abort().
2002-02-11 Adam Megacz <adam@xwt.org>
* exception.cc (_Jv_Throw, PERSONALITY_FUNCTION): Changed
std::abort() to simply abort(). Also added "fake" std::abort() so
we can #include unwind-pe.h without having to link against
libstdc++-v3.
From-SVN: r49685
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r-- | libjava/exception.cc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libjava/exception.cc b/libjava/exception.cc index a8e6ece..5d1f288 100644 --- a/libjava/exception.cc +++ b/libjava/exception.cc @@ -11,16 +11,25 @@ details. */ #include <config.h> #include <stddef.h> -#include <cstdlib> +#include <stdlib.h> #include <java/lang/Class.h> #include <java/lang/NullPointerException.h> #include <gcj/cni.h> #include <jvm.h> +// unwind-pe.h uses std::abort(), but sometimes we compile libjava +// without libstdc++-v3. The following hack forces it to use +// stdlib.h's abort(). +namespace std +{ + void abort () + { + ::abort (); + } +} #include "unwind.h" - struct alignment_test_struct { char space; @@ -97,7 +106,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. */ - std::abort (); + abort(); } @@ -344,7 +353,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. - std::abort (); + abort (); } if (ar_disp == 0) |