This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- To: jsturm at one-point dot com (Jeff Sturm)
- Subject: Re: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Wed, 28 Mar 2001 17:03:02 +0100 (BST)
- Cc: rth at cygnus dot com (Richard Henderson),hans_boehm at hp dot com (Boehm Hans), java at gcc dot gnu dot org (Java Discuss List),gcc at gcc dot gnu dot org ('gcc at gcc dot gnu dot org')
> 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.
The 'unsignedp' argument of type_for_mode is an int. MODE_INT happens to
have the right numerical value - i.e. 1 - right now, but you should not
rely on this to remain unchanged.
The correct expression is:
type_for_mode (ptr_mode, 1)