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: [tree0ssa] Dead const/pure function removal take II


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


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