java type layout (Was: Re: 206 GCC HEAD regressions, 196 new, with your patch on 2005-08-23T19:50:19Z.)
Joern RENNECKE
joern.rennecke@st.com
Fri Aug 26 17:11:00 GMT 2005
Joern RENNECKE wrote:
>
> java uses char_type_node for its character type, which is 16 bits.
> gcc/java/decl.c:747 java_init_decl_processing:
> TYPE_PRECISION (char_type_node) = 16;
>
> On the other hand, tree.c uses char_type_node as the type of the
> smallest addressable
> unit:
>
> tree.c:489 make_node_stat
> case tcc_type:
> TYPE_UID (t) = next_type_uid++;
> TYPE_ALIGN (t) = char_type_node ? TYPE_ALIGN (char_type_node) : 0;
>
>
>
Could someone with a bit more java experience than be verify how we lay out
structs, unions and arrays with a single bool member? I suspect that
even without
my patch, they might be 8 bits large, 16 bit aligned
More information about the Gcc
mailing list