This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] debug/92763 keep DIEs that might be used in DW_TAG_inlined_subroutine
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 20 Jan 2020 12:09:05 +0100
- Subject: Re: [PATCH] debug/92763 keep DIEs that might be used in DW_TAG_inlined_subroutine
- References: <nycvar.YFH.7.76.2001201203200.5566@zhemvz.fhfr.qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Jan 20, 2020 at 12:04:12PM +0100, Richard Biener wrote:
>
> We were pruning type-local subroutine DIEs if their context is unused
> despite us later needing those DIEs as abstract origins for inlines.
> The patch makes code already present for -fvar-tracking-assignments
> unconditional.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, OK?
>
> Thanks,
> Richard.
>
> 2020-01-20 Richard Biener <rguenther@suse.de>
>
> PR debug/92763
> * dwarf2out.c (prune_unused_types): Unconditionally mark
> called function DIEs.
>
> * g++.dg/debug/pr92763.C: New testcase.
Ok.
Jakub