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