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, 12 Nov 2003 19:05:33 +0100, Jan Hubicka <hubicka@ucw.cz> 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.

Jason


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