Nick Burrett wrote:
More generally: Is there any point in supporting these things (subcodes of numeric error signals) at all? AFAICS, they're remainings from the signal handler in ancient versions of the RTS (which had been disabled for a long time). This handler was labeled "BSD style", but if these things are not even supported on FreeBSD, perhaps we should simply drop them. Does any other system support them?
For the SIGILL, I don't think it is worth it. An illegal instruction is an illegal instruction, it isn't going to make much difference to the end user whether it was a privileged instruction or simply an undefined operation. I think many systems define them, but in usually unportable ways.
The SIGFPE error codes are useful though.
OK, I'm removing the SIGILL subcodes. This should avoid the problem.
Frank