This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] one more missed mark_used
> > + if (type)
> > + {
> > + tree tinfo = get_tinfo_decl (type);
> > + mark_used (tinfo);
> > + }
> >
> > will penalize not-function-at-a-time mode compilation because it will
> > result in generating additional typeinfos, even when the back end
> > optimizes away the handlers.
> >
> > So, this is not OK.
>
> How would you propose to fix this in correct way? Doing marking early
> only when unit-at-a-time is active_
BTW it should not penalize the code, as there is DECL_NEEDED_P guard
that should require SYMBOL_REFERENCED when unit-at-a-time is not active.
Honza
>
> Honza
> >
> > --
> > Mark Mitchell
> > CodeSourcery, LLC
> > mark@codesourcery.com
> >