Mail Archives: djgpp/1997/09/04/11:42:59
From: | rtr AT rd DOT bbc DOT co DOT uk (Richard Russell)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Curious floating point exception errors
|
Date: | 4 Sep 1997 14:08:01 GMT
|
Organization: | British Broadcasting Corporation, UK
|
Lines: | 20
|
Message-ID: | <5umfc1$it6@bbcnews.rd.bbc.co.uk>
|
NNTP-Posting-Host: | 132.185.128.19
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have a program which compiles with gcc and runs perfectly on a Sun SPARC.
When compiled with DJGPP on a PC it fails with an FPESIG exception.
Something very odd is happening because inserting a diagnostic printf will
sometimes, by itself, cure the problem. Even more'ing the output can make
a difference, which suggests that perhaps the absolute address at which the
code is loading is somehow affecting things.
I might be inclined to suspect the PC's hardware except that the problem
is repeatable and occurs on more than one machine. I can find no bugs
in the C code, such as uninitialised arrays.
gcc -v gives:
Reading specs from c:/dgjpp/lib\specs
gcc version 2.7.2.1
Any ideas ?
Richard.
- Raw text -