cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/22/22:12:48

From: leathm AT solwarra DOT gbrmpa DOT gov DOT au (Leath Muller)
Message-Id: <199709230209.MAA01757@solwarra.gbrmpa.gov.au>
Subject: Re: Floating Point Exception
To: sime AT fly DOT cc DOT etf DOT hr
Date: Tue, 23 Sep 1997 12:09:48 +1000 (EST)
Cc: djgpp AT delorie DOT com
In-Reply-To: <605klb$gj4@bagan.srce.hr> from "S. Mikecin" at Sep 22, 97 11:26:35 am

> I'm also getting SIGFPE in some code I wrote. I located the instruction
> which causes it. It is a division with a number which is not a ZERO! And
> when I turn off FPE exceptions code works giving the right results. Can
> someone explain this?
 
> P.S. I also tried reseting the FPU before that instruction. The result was
> that SIGFPE disapeared!

One thing that is peculiar about the FPU is the instruction that is causing
the exception may not be the one pointed to by the stack trace. Check the
instructions beforehand (I have had problems with instructions ~3 deep due
to the fact I intertwine the FPU and integer instructions).

Leathal.

- Raw text -


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