[tree0ssa] Dead const/pure function removal take II

Jan Hubicka hubicka@ucw.cz
Wed Nov 12 13:09:00 GMT 2003


> On Wed, Nov 12, 2003 at 01:28:58AM +0100, Steven Bosscher wrote:
> > We're now clearing the TREE_NOTHROW flag for calls to functions that actually 
> > can throw.  Instead, we probably want.
> > 
> >   TREE_NOTHROW (call) = TREE_NOTHROW (decl);
> 
> Guh.  I'd read the patch as the intended if (!TREE_NOTHROW(...)).
Well, me too.  Thanks again for noticing it :)

I've fixed it for !TREE_NOTHROW (I think it would make sense to clear
NOTHROW flag on call expr when we know that his particular call will not
trap in the future, so we should not re-set it.

Honza
> 
> 
> r~



More information about the Gcc-patches mailing list