This is the mail archive of the gcc@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: Java GC descriptor vs. tree_int_cst on 64-bit platforms



Boehm, Hans writes:

> I think the following steps are still needed to get gcc 3.0 mostly
> working for Java on Itanium.  I'd appreciate it if someone could
> check in the patches for the first two.  (Something like the first
> should go into both 3.0 and the trunk.

The patch looks, builds and tests fine (in the branch, the build broke
in the trunk.) If that's your last word on the compiler side, I could
check this into the branch and the trunk at anytime.

./A

2001-03-28  Hans Boehm  <boehm@acm.org>

	* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.'
	(get_boehm_type_descriptor): Set type on returned value to be a
	pointer length integer.

Index: boehm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/boehm.c,v
retrieving revision 1.9
diff -u -p -r1.9 boehm.c
--- boehm.c	2000/12/15 17:35:03	1.9
+++ boehm.c	2001/03/29 00:02:52
@@ -48,7 +48,7 @@ static void set_bit PARAMS ((unsigned HO
 	    (((((env) << LOG_MAX_MARK_PROCS) | (proc_index)) << DS_TAG_BITS) \
 	    | DS_PROC)
    Here DS_PROC == 2.  */
-#define PROCEDURE_OBJECT_DESCRIPTOR integer_two_node
+#define PROCEDURE_OBJECT_DESCRIPTOR build_int_2 (2, 0)
 
 /* Treat two HOST_WIDE_INT's as a contiguous bitmap, with bit 0 being
    the least significant.  This function sets bit N in the bitmap.  */
@@ -228,5 +228,6 @@ get_boehm_type_descriptor (tree type)
   else
     value = PROCEDURE_OBJECT_DESCRIPTOR;
 
+  TREE_TYPE (value) = type_for_mode (ptr_mode, 1);
   return value;
 }


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