Commit 1dc9cf5d by Richard Biener Committed by Richard Biener

re PR debug/86413 (gcc.dg/guality/pr48437.c fail)

2018-07-09  Richard Biener  <rguenther@suse.de>

	PR debug/86413
	* dwarf2out.c (gen_block_die): For an early generated DIE
	always output high/low PC attributes.

From-SVN: r262511
parent 74725f46
2018-07-09 Richard Biener <rguenther@suse.de>
PR debug/86413
* dwarf2out.c (gen_block_die): For an early generated DIE
always output high/low PC attributes.
2018-07-09 Tom de Vries <tdevries@suse.de> 2018-07-09 Tom de Vries <tdevries@suse.de>
* cfgexpand.c (expand_debug_source_expr): Handle VAR_DECL. * cfgexpand.c (expand_debug_source_expr): Handle VAR_DECL.
......
...@@ -25622,6 +25622,11 @@ gen_block_die (tree stmt, dw_die_ref context_die) ...@@ -25622,6 +25622,11 @@ gen_block_die (tree stmt, dw_die_ref context_die)
/* The outer scopes for inlinings *must* always be represented. We /* The outer scopes for inlinings *must* always be represented. We
generate DW_TAG_inlined_subroutine DIEs for them. (See below.) */ generate DW_TAG_inlined_subroutine DIEs for them. (See below.) */
must_output_die = 1; must_output_die = 1;
else if (BLOCK_DIE (stmt))
/* If we already have a DIE then it was filled early. Meanwhile
we might have pruned all BLOCK_VARS as optimized out but we
still want to generate high/low PC attributes so output it. */
must_output_die = 1;
else else
{ {
/* Determine if this block directly contains any "significant" /* Determine if this block directly contains any "significant"
......
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