PR debug/7081: emit DW_TAG_class_type and DW_TAG_interface_type

Jakub Jelinek jakub@redhat.com
Wed Dec 5 19:43:00 GMT 2007


On Wed, Dec 05, 2007 at 08:35:40AM -0800, Ian Lance Taylor wrote:
> 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.

Where it makes sense, sure.  But e.g. DW_TAG_structure_type vs.
DW_TAG_class_type is something that nothing in the middle-end nor backend
should ever care about, only the frontend (just for the default access
and for diagnostics).  For the middle-end or backend (and most of the
frontend as well) struct { private: ... } is equivalent to class { ... }
and class { public: ... } is equivalent to struct { ... }.

	Jakub



More information about the Gcc-patches mailing list