This is the mail archive of the gcc@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] |
[not completely related]
Ian Lance Taylor wrote:It already works fine; just call throw from your signal handler. This programs works as expected on i386 GNU/Linux if you type ^C during the sleep.
On my machines the exception is regularly thrown in the signal handler, but it can't be caught by catch, not even by catch(...); the program aborts. This happens on all my machines (GNU/Linux PowerPC and x86), with all the GCC versions I have installed (from 2.95 to 3.4.2).
No twiddling helped, as far as I tried.
This seems a bug. Should I file a PR? Is it only me to see that?
If you are not using -fnon-call-exceptions then GCC will not know that a non call can throw.
Thanks, Andrew Pinski
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |