]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR debug/83157 (gcc.dg/guality/pr41616-1.c fail, inline instances refer to concret...
authorRichard Biener <rguenther@suse.de>
Fri, 12 Jan 2018 13:19:23 +0000 (13:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 12 Jan 2018 13:19:23 +0000 (13:19 +0000)
2018-01-12  Richard Biener  <rguenther@suse.de>

PR debug/83157
* dwarf2out.c (gen_variable_die): Do not reset old_die for
inline instance vars.

From-SVN: r256580

gcc/ChangeLog
gcc/dwarf2out.c

index da8cc071c1f6c0f8935404438293578392a1c665..5acf14e01a7f3234767430ce2cefd31f6325858f 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-12  Richard Biener  <rguenther@suse.de>
+
+       PR debug/83157
+       * dwarf2out.c (gen_variable_die): Do not reset old_die for
+       inline instance vars.
+
 2018-01-12  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/81819
index fc206562abe8905ea558eecfc48f3a0ecaf806d6..0cc05cb5b870514fb2f97134d18d49e64a6e53e3 100644 (file)
@@ -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
        {