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]
Other format: [Raw text]

java type layout (Was: Re: 206 GCC HEAD regressions, 196 new, with your patch on 2005-08-23T19:50:19Z.)


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



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