From 80c93fa982c59cb94183d225d28e6763f5707025 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 12 Jan 2018 13:19:23 +0000 Subject: [PATCH] re PR debug/83157 (gcc.dg/guality/pr41616-1.c fail, inline instances refer to concrete instance as abstract origin) 2018-01-12 Richard Biener PR debug/83157 * dwarf2out.c (gen_variable_die): Do not reset old_die for inline instance vars. From-SVN: r256580 --- gcc/ChangeLog | 6 ++++++ gcc/dwarf2out.c | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da8cc071c1f..5acf14e01a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-12 Richard Biener + + PR debug/83157 + * dwarf2out.c (gen_variable_die): Do not reset old_die for + inline instance vars. + 2018-01-12 Oleg Endo PR target/81819 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index fc206562abe..0cc05cb5b87 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -22970,10 +22970,8 @@ gen_variable_die (tree decl, tree origin, dw_die_ref context_die) { /* If we will be creating an inlined instance, we need a new DIE that will get annotated with - DW_AT_abstract_origin. Clear things so we can get a - new DIE. */ + DW_AT_abstract_origin. */ gcc_assert (!DECL_ABSTRACT_P (decl)); - old_die = NULL; } else { -- 2.30.2