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: [debug-early] C++: emit early debug info for all globals, not just statics


On 10/01/2014 05:31 PM, Aldy Hernandez wrote:
+  for (tree t = level->names; t; t = TREE_CHAIN(t))
+    if (TREE_CODE (t) != TYPE_DECL
+	&& TREE_CODE (t) != PARM_DECL
+	&& !DECL_IS_BUILTIN (t))
+      debug_hooks->early_global_decl (t);

What does this do for templates? I think we don't want to send a template off to early_global_decl, but rather walk through its specializations and emit them.

Why do you need to check for PARM_DECL? There shouldn't be any PARM_DECL at namespace scope.

Why do you want to skip TYPE_DECL? I think we should leave the decision about whether to emit a typedef to the debugging back end.

Jason


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