Date: Tue, 17 Oct 1995 08:47:53 +0200 (IST) From: Eli Zaretskii To: Vladimir Pshenkin Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Q: Floating point exceptions handling. How ? 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).