PR debug/7081: emit DW_TAG_class_type and DW_TAG_interface_type

Alexandre Oliva
Sat Dec 15 20:25:00 GMT 2007

On Dec  9, 2007, Mark Mitchell <> wrote:

> Ian Lance Taylor wrote:
>>>>> We've long output C++ classes and Java classes and interfaces as
>>>>> DW_TAG_structure_type.  This patch fixes it, with a different approach
>>>>> from the one proposed at

>> In general I think it would be better for the middle-end to have a
>> better knowledge of these details.  That will permit generic
>> implementations of devirtualization, for instance.  But I won't block
>> this patch on those grounds.

> I'd have gone with a bit in the middle-end representation as well, in
> part because it would just have been less code.

Yeah, but it would have been two bits (struct vs class vs interface)
completely wasted for most languages we support.  I thought I'd code
some more to save them for more noble purposes ;-)

> So, this patch is OK.

Thanks, it's in.

Alexandre Oliva
FSF Latin America Board Member
Red Hat Compiler Engineer   aoliva@{,}
Free Software Evangelist  oliva@{,}

More information about the Gcc-patches mailing list