Commit 1e41e843 by Adam Megacz Committed by Adam Megacz

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
parent d6e06ddc
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.
2002-02-10 Andreas Tobler <toa@pop.agri.ch> 2002-02-10 Andreas Tobler <toa@pop.agri.ch>
* interpret.cc (continue1) [insn_f2l]: Use PUSHL, not PUSHI. * interpret.cc (continue1) [insn_f2l]: Use PUSHL, not PUSHI.
......
...@@ -11,16 +11,25 @@ details. */ ...@@ -11,16 +11,25 @@ details. */
#include <config.h> #include <config.h>
#include <stddef.h> #include <stddef.h>
#include <cstdlib> #include <stdlib.h>
#include <java/lang/Class.h> #include <java/lang/Class.h>
#include <java/lang/NullPointerException.h> #include <java/lang/NullPointerException.h>
#include <gcj/cni.h> #include <gcj/cni.h>
#include <jvm.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" #include "unwind.h"
struct alignment_test_struct struct alignment_test_struct
{ {
char space; char space;
...@@ -97,7 +106,7 @@ _Jv_Throw (jthrowable value) ...@@ -97,7 +106,7 @@ _Jv_Throw (jthrowable value)
recover. As is the way of such things, almost certainly we will have recover. As is the way of such things, almost certainly we will have
crashed before now, rather than actually being able to diagnose the crashed before now, rather than actually being able to diagnose the
problem. */ problem. */
std::abort (); abort();
} }
...@@ -344,7 +353,7 @@ PERSONALITY_FUNCTION (int version, ...@@ -344,7 +353,7 @@ PERSONALITY_FUNCTION (int version,
// ??? Perhaps better to make them an index into a table // ??? Perhaps better to make them an index into a table
// of null-terminated strings instead of playing games // of null-terminated strings instead of playing games
// with Utf8Const+1 as above. // with Utf8Const+1 as above.
std::abort (); abort ();
} }
if (ar_disp == 0) if (ar_disp == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment