www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/17/03:11:42

Date: Tue, 17 Oct 1995 08:47:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Vladimir Pshenkin <PSHENKIN AT main DOT econ DOT msu DOT su>
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).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019