This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Libjava bootstrap still broken on arm-linux


Richard> But not on an arm-elf cross using newlib :-(

Could you try the appended?

It adds the limits.h include and fixes a couple of warnings I saw in
your build log.

Richard> /home/rearnsha/gnusrc/egcs-cross/libjava/link.cc:1076: error: 'intptr_t'
Richard> was not declared in this scope

Eric Botcazou just checked in a fix for this.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* include/no-threads.h (_Jv_ThreadDestroyData): Removed argument
	name.
	(_Jv_ThreadRegister): Likewise.
	(_Jv_MutexCheckMonitor): Likewise.

	* link.cc: Include limits.h.

Index: link.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/link.cc,v
retrieving revision 1.3
diff -u -r1.3 link.cc
--- link.cc 27 Nov 2004 12:37:31 -0000 1.3
+++ link.cc 29 Nov 2004 17:06:18 -0000
@@ -18,6 +18,7 @@
 #include <jvm.h>
 #include <gcj/cni.h>
 #include <string.h>
+#include <limits.h>
 #include <java-cpool.h>
 #include <execution.h>
 #include <java/lang/Class.h>
Index: include/no-threads.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/no-threads.h,v
retrieving revision 1.7
diff -u -r1.7 no-threads.h
--- include/no-threads.h 21 Oct 2003 04:46:19 -0000 1.7
+++ include/no-threads.h 29 Nov 2004 17:06:18 -0000
@@ -1,7 +1,7 @@
 // -*- c++ -*-
 // no-threads.h - Defines for using no threads.
 
-/* Copyright (C) 1998, 1999  Free Software Foundation
+/* Copyright (C) 1998, 1999, 2004  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -75,7 +75,7 @@
 // Mutexes.
 //
 
-inline int _Jv_MutexCheckMonitor (_Jv_Mutex_t *mu)
+inline int _Jv_MutexCheckMonitor (_Jv_Mutex_t *)
 {
   return 0;
 }
@@ -111,7 +111,7 @@
 _Jv_ThreadInitData (java::lang::Thread *);
 
 inline void
-_Jv_ThreadDestroyData (_Jv_Thread_t *data)
+_Jv_ThreadDestroyData (_Jv_Thread_t *)
 {
 }
 
@@ -133,7 +133,7 @@
 }
 
 inline void
-_Jv_ThreadRegister (_Jv_Thread_t *data)
+_Jv_ThreadRegister (_Jv_Thread_t *)
 {
 }
 


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