This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Throwing C++ exceptions in signal handlers
On Mon, Sep 02, 2002 at 11:10:13PM +0100, Nathan Sidwell wrote:
> > Might it be safer to comment out "raise" in cp/cfns.gperf, or is
> > throwing an exception in a signal handler explicitly forbidden?
> It is not permitted.
With -fnon-call-exceptions it is.
And yes there would appear to be a problem if the call to
raise gets nothrow attached with this option in effect.
r~