This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fixing 3.0 and trunk bootstrap.



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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]