This is the mail archive of the
mailing list for the GCC project.
Re: [patch] PR21847 (wrong-code with -fnon-call-exceptions)
- From: Andrew Haley <aph at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Steven Bosscher <stevenb at suse dot de>, gcc-patches at gcc dot gnu dot org, Tom Tromey <tromey at redhat dot com>, Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 7 Jun 2005 18:17:59 +0100
- Subject: Re: [patch] PR21847 (wrong-code with -fnon-call-exceptions)
- References: <firstname.lastname@example.org><20050607171239.GB27034@redhat.com>
Richard Henderson writes:
> On Mon, Jun 06, 2005 at 01:59:17AM +0200, Steven Bosscher wrote:
> > * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
> > -fnon-call-exceptions, also mark statements inherently
> > necessary if they may throw.
> I don't really like this. I'd prefer the default to be that, while
> exceptions are propagated when they occur, they're not a hard side
> effect of the operation.
Why do you want this? Perhaps there's some language that uses
-fnon-call-exceptions but doesn't want trapping exprs to be preserved: