This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: libjava does not bootstrap on i686 (mainstream)


Andreas Jaeger <aj@suse.de> writes:

> In file included from /cvs/gcc/libjava/exception.cc:107:
> /cvs/gcc/gcc/unwind-pe.h: In function `unsigned int=20
>    size_of_encoded_value(unsigned char)':

Benjamin jumped in and suggested a patch I'm trying at the moment. As
soon as it builds on x86/linux, I'll check it in (I'll verify other
platforms after the check-in.)

./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.10.4.1
diff -u -p -r1.10.4.1 exception.cc
--- exception.cc        2001/05/13 07:10:25     1.10.4.1
+++ exception.cc        2001/06/10 18:54:17
@@ -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>
@@ -111,7 +111,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 ();
 }
 
 

@@ -359,7 +359,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]