This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix DW_AT_import for C++ using of a base type typedef (take 2)


On 07/03/2009 11:54 AM, Jakub Jelinek wrote:
On Fri, Jul 03, 2009 at 10:26:09AM -0400, Jason Merrill wrote:
On 07/03/2009 07:39 AM, Jakub Jelinek wrote:
+ gen_typedef_die (decl, get_context_die (DECL_CONTEXT (decl)));
Why do we need to force the typedef die here?  We should be emitting it
anyway so that the debugger knows what A::I means.

Sure, but it might be output before or after this debug hook is called.

Ah, OK.


+ at_import_die = lookup_type_die (TREE_TYPE (decl));
Why not import lookup_decl_die (decl)?

Because TYPE_DECLs have never equate_decl_number_to_die called on them.

Well, I guess that will have to change; DW_AT_import is supposed to point to a decl, not a type.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]