This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove unused extern variables from debug (PR debug/86964)
- From: Jeff Law <law at redhat dot com>
- To: Johan Carlsson <Johan dot Carlsson at enea dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "rguenther at suse dot de" <rguenther at suse dot de>
- Date: Mon, 25 Mar 2019 15:19:19 -0600
- Subject: Re: [PATCH] Remove unused extern variables from debug (PR debug/86964)
- References: <HE1PR0701MB2585F4E771A62516B930FC71EB7C0@HE1PR0701MB2585.eurprd07.prod.outlook.com>
On 2/19/19 5:51 AM, Johan Carlsson wrote:
> PR debug/86964
> * dwarf2out.c (premark_used_variables): New function.
> (prune_unused_types_walk): Do not mark not premarked external
> variables.
> (prune_unused_types): Call premark_used_variables.
>
> * gcc.dg/debug/dwarf2/pr86964.c: New testcase.
THanks. I've installed this on the trunk.
jeff