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
This commit is contained in:
Richard Biener 2015-09-21 14:12:58 +00:00 committed by Richard Biener
parent 9386cdeee6
commit b1e251ec9e
4 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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. */

View File

@ -1,3 +1,7 @@
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

View File

@ -1,5 +1,6 @@
// PR c++/56134
// { dg-require-alias "" }
// { dg-options "-g" }
char a;
class Q