This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR debug/7081: emit DW_TAG_class_type and DW_TAG_interface_type
On Dec 9, 2007, Mark Mitchell <mark@codesourcery.com> 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
>>>>> http://gcc.gnu.org/ml/gcc-patches/2003-06/msg01748.html
>> 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 http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}