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: Richard Henderson <rth at cygnus dot com>
- Subject: Re: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Wed, 28 Mar 2001 00:36:18 -0500 (EST)
- cc: "Boehm, Hans" <hans_boehm at hp dot com>, Java Discuss List <java at gcc dot gnu dot org>, "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
On Tue, 27 Mar 2001, Richard Henderson wrote:
> > ... which is always a 32 bit constant, even on a 64 bit platform.
>
> Err, well, not precisely. It's integer_type_node, so whatever "int"
> happens to be on the target. Which would be 64 bits on a T3E.
which is wrong in this case, since the descriptor must be word size (64
bits)?
> I'm guessing you mean the in-memory pointer size.
>
> type_for_mode (ptr_mode, MODE_INT)
Bingo. I added
TREE_TYPE (value) = type_for_mode (ptr_mode, MODE_INT);
Now it looks like I'm getting the whole descriptor (whereas the top bits
were truncated before). I'll run some tests and see what I get.
Jeff