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




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



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