Commit 47512a6e by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/37890 (Incorrect nesting for DW_TAG_imported_declaration)

	PR debug/37890
	* name-lookup.c (do_namespace_alias): Don't call global_decl debug
	hook at function scope.

From-SVN: r144913
parent 98381eb4
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
* cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand * cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
is a NAMESPACE_DECL. is a NAMESPACE_DECL.
PR debug/37890
* name-lookup.c (do_namespace_alias): Don't call global_decl debug
hook at function scope.
PR debug/39471 PR debug/39471
* cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME * cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
on IMPORTED_DECL. on IMPORTED_DECL.
......
...@@ -3337,7 +3337,8 @@ do_namespace_alias (tree alias, tree name_space) ...@@ -3337,7 +3337,8 @@ do_namespace_alias (tree alias, tree name_space)
pushdecl (alias); pushdecl (alias);
/* Emit debug info for namespace alias. */ /* Emit debug info for namespace alias. */
(*debug_hooks->global_decl) (alias); if (!building_stmt_tree ())
(*debug_hooks->global_decl) (alias);
} }
/* Like pushdecl, only it places X in the current namespace, /* Like pushdecl, only it places X in the current namespace,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment