[C++ patch] one more missed mark_used

Jan Hubicka jh@suse.cz
Thu Aug 7 12:00:00 GMT 2003


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



More information about the Gcc-patches mailing list