This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: (C++) DECL_VIRTUAL_CONTEXT and debugging
- To: Daniel Berlin <dberlin at redhat dot com>
- Subject: Re: (C++) DECL_VIRTUAL_CONTEXT and debugging
- From: Jason Merrill <jason at redhat dot com>
- Date: 16 Mar 2001 15:28:47 +0000
- cc: Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org
- References: <20010315174655.A22820@redhat.com><m2k85q8lvt.fsf@dynamic-addr-83-177.resnet.rochester.edu>
>>>>> "Daniel" == Daniel Berlin <dberlin@redhat.com> writes:
> Speaking of screwed debug info, shouldn't the containing type be
> set to DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT?
Yes, except that DECL_VIRTUAL_CONTEXT isn't available to the backend.
That's why the two used to be reversed. But that broke a number of other
things, most notably decl_function_context.
When they were switched so DECL_CONTEXT became the declaration context,
nobody arranged a way to tell the debugging backends about the virtual
context for a function. I meant to bring up the issue, but forgot.
I suppose we should just move DECL_VIRTUAL_CONTEXT into the backend.
Jason