This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: pruning unused debugging types (enums/PR23336)
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>, Mark Mitchell <mark at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, dnovillo at redhat dot com
- Date: Fri, 31 Mar 2006 12:16:28 -0400
- Subject: Re: pruning unused debugging types (enums/PR23336)
- References: <20051117230925.GB21279@redhat.com> <437D7395.8080000@codesourcery.com> <m3k6c3c78v.fsf@pantani.quesejoda.com> <43F13C3B.7050008@codesourcery.com> <20060214115052.GA29895@redhat.com> <43F28D2A.60902@codesourcery.com> <20060216194057.GA30917@redhat.com> <20060217235209.GA17049@redhat.com> <20060218112330.GA921@redhat.com> <20060331153007.GA15002@redhat.com>
On Fri, Mar 31, 2006 at 07:30:07AM -0800, Richard Henderson wrote:
> On Sat, Feb 18, 2006 at 07:23:30AM -0400, Aldy Hernandez wrote:
> > * function.h (struct function): Add used_types_hash field.
> > Include hashtab.h.
> > (used_types_insert): Protoize.
> > * function.c (used_types_insert): New.
> > * c-parser.c (c_parser_cast_expression): Call used_types_insert.
> > * dwarf2out.c (struct die_struct): Add die_perennial_p field.
> > (premark_used_types_helper): New.
> > (premark_used_types): New.
> > (gen_subprogram_die): Call premark_used_types.
> > (prune_unused_types_walk): Do not mark perennial types.
> > * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
>
> Ok.
Since it's been a while, I'll make sure the patch still bootstraps, commit,
and then whip up the corresponding patch for C++.
Muchos grassy ass.
Aldy