Mail Archives: djgpp/1995/10/17/03:11:42
On Sun, 15 Oct 1995, Vladimir Pshenkin wrote:
> I have a seriouse problem - how can I handle SIGFPE under GCC ?
> Any solutions ?
> signal(...) doesn't works. why ?
Do you work with DJGPP 1.x? If so, then signals aren't supported in that
version (v2.0 does), so you have only 2 alternatives I know about:
1) Make sure your code doesn't trigger FP exceptions.
2) Make your program set the control word of 80x87 so that the
exceptions are ignored. The DJ's ftp server, ftp.delorie.com, has a
small program which shows how to fiddle with the control word, get the
file /pub/djgpp/contrib/ctrl87.zip (this is mentioned in the FAQ list,
btw).
- Raw text -