This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> > 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]