This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] Fixing 3.0 and trunk bootstrap.
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Fixing 3.0 and trunk bootstrap.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Sun, 10 Jun 2001 13:57:11 -0700
- Cc: bkoz at cygnus dot com
- Reply-to: apbianco at cygnus dot com
This fixes a problem reported by several people. It allows me to build
the trunk and the branch on x86/linux and alpha/linux. I'm going to
check this in both places.
./A
2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* exception.cc (cstdlib): Replaces stdlib.h.
(_Jv_Throw): Use std::abort().
(PERSONALITY_FUNCTION): Likewise.
Index: libjava/exception.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/exception.cc,v
retrieving revision 1.15
diff -u -p -r1.15 exception.cc
--- exception.cc 2001/05/21 08:37:04 1.15
+++ exception.cc 2001/06/10 20:19:58
@@ -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)