Commit b1e251ec by Richard Biener Committed by Richard Biener

passes.c (rest_of_decl_compilation): Do not call dwarf2out_early_global_decl for aliases.

2015-09-21  Richard Biener  <rguenther@suse.de>

	* passes.c (rest_of_decl_compilation): Do not call
	dwarf2out_early_global_decl for aliases.

	* g++.dg/ext/attr-alias-3.C: Add -g.

From-SVN: r227973
parent 9386cdee
2015-09-21 Richard Biener <rguenther@suse.de>
* passes.c (rest_of_decl_compilation): Do not call
dwarf2out_early_global_decl for aliases.
2015-09-21 Richard Biener <rguenther@suse.de>
PR debug/67664
* dwarf2out.c (add_location_or_const_value_attribute): Remove
attribute parameter. Early exit if either DW_AT_const_value
......@@ -327,7 +327,8 @@ rest_of_decl_compilation (tree decl,
and thus have incomplete early debug and late debug
called from varpool node removal fails to handle it
properly. */
|| (TREE_CODE (decl) == VAR_DECL
|| (finalize
&& TREE_CODE (decl) == VAR_DECL
&& TREE_STATIC (decl) && !DECL_EXTERNAL (decl)))
/* Avoid confusing the debug information machinery when there are
errors. */
......
2015-09-21 Richard Biener <rguenther@suse.de>
* g++.dg/ext/attr-alias-3.C: Add -g.
2015-09-21 Richard Biener <rguenther@suse.de>
PR debug/67664
* g++.dg/debug/dwarf2/pr67764.C: New testcase.
......
// PR c++/56134
// { dg-require-alias "" }
// { dg-options "-g" }
char a;
class Q
......
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