This is the mail archive of the
mailing list for the GCC project.
Re: [tree0ssa] Dead const/pure function removal take II
On Wed, 12 Nov 2003 19:05:33 +0100, Jan Hubicka <firstname.lastname@example.org> wrote:
>> *Setting* TREE_NOTHROW means the call won't trap. And that's the case that
>> we're likely to discover by compiling the called function; the flag is
>> cleared by default.
> Oops, thanks! I somehow managed to get the double negation half-wrong.
> I am testing the obvious patch. Any idea how to write testcase to check
> that the transformation is happening?
Wrap an affected call in a try/catch block and verify that there's no EH
stuff in .optimized.