aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-07-09 07:25:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-07-09 07:25:14 +0000
commit1dc9cf5d9fec61fd0bd32f7e4026f5e259d3e016 (patch)
treeaa7388787630446085283249d5ead4c6746df339 /gcc/dwarf2out.c
parent74725f46ddc4bb020414320147cba37f907c3336 (diff)
downloadgcc-1dc9cf5d9fec61fd0bd32f7e4026f5e259d3e016.zip
gcc-1dc9cf5d9fec61fd0bd32f7e4026f5e259d3e016.tar.gz
gcc-1dc9cf5d9fec61fd0bd32f7e4026f5e259d3e016.tar.bz2
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a7c4620..9523217 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -25622,6 +25622,11 @@ gen_block_die (tree stmt, dw_die_ref context_die)
/* The outer scopes for inlinings *must* always be represented. We
generate DW_TAG_inlined_subroutine DIEs for them. (See below.) */
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
{
/* Determine if this block directly contains any "significant"