GCC 4.0 RC2 Available

Tom Tromey tromey@redhat.com
Tue Apr 19 18:30:00 GMT 2005


>>>>> "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)

Is it better to generate a COMPONENT_REF instead?

Tom



More information about the Gcc mailing list