This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: RE: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Wed, 28 Mar 2001 16:54:45 -0800 (PST)
- Cc: "'Jeff Sturm'" <jsturm at one-point dot com>, Richard Henderson <rth at cygnus dot com>, "'aph at cambridge dot redhat dot com'" <aph at cambridge dot redhat dot com>, "'java at gcc dot gnu dot org'" <java at gcc dot gnu dot org>, "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- References: <140D21516EC2D3119EE7009027876644049B5D07@hplex1.hpl.hp.com>
- Reply-To: apbianco at cygnus dot com
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;
}