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]

Re: GCC 4.0 RC2 Available


Tom Tromey writes:
 > >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
 > 
 > Andrew> At compile time we don't know the field offset of fields that we
 > Andrew> inherit, because it can change at runtime.  So, we don't set the
 > Andrew> FIELD_OFFSET, and that is is why dbxout is aborting.
 > 
 > Andrew> All I want is for FIELD_OFFSET to be "don't know".
 > 
 > In gcjx I'm just generating casts and raw pointer math for this case,
 > like:
 > 
 >       // Generate *(TYPE *) ((char *) OBJ + OFFSET)

I do that too.  generating code isn't the problem here: it's that
dbxout is generating debug info for types.  I'd rather it didn't do
that, because the info is wrong, but it's not really a problem.

 > Is it better to generate a COMPONENT_REF instead?

No.

This isn't in the code, it's in the type info of the superclass.

Andrew.


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