🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1342

gcc.2.3.1 and ISC 3.0

#1342
From: Peter Heusch
Date: Tue, 10 Nov 1992 17:31
27 lines
1594 bytes
Hello world,

can anybody tell me what's wrong with floating point on Interactive SVR3, 3.0?

Just recently, I tried to compile gcc-2.3.1 on my AT/386. Everything went fine
until compiling enquire.c. When executing the resulting binary, the program
gave lots of error messages indicating, that results are not quite what was
expected in floating point arithmetic. Just when executing the following 
peace of code, enquire finally crashes:

long double a=634.....(lots of 0-s),b=2.0;
long double c=a*b;

With the default floating point emulator file /etc/emulator.dfl, the program
crashes earlier, but when compiling the given two lines as only lines in
the program, I get a SIGFPE. Now my question: 

a) Is this a bug in the emulator, or is it a bug in gcc-2.3.1
b) Will it help to install a FPU 80387?
c) Does anybody know about incorrect behaviur of the floating point emulator
   in ISC 3.0 (Their german distributor doesn't)


Many thanks


Peter
Technical Details
Message-ID: <1dorklINNjd1@unidus.rz.uni-duesseldorf.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!engels2.cs.uni-duesseldorf.de!heusch

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!engels2.cs.uni-duesseldorf.de!heusch
From: heusch@engels2.cs.uni-duesseldorf.de (Peter Heusch)
Subject: gcc.2.3.1 and ISC 3.0
Message-ID: <1dorklINNjd1@unidus.rz.uni-duesseldorf.de>
Keywords: ISC gcc-2.3.1 floating point
Sender: gnulists@ai.mit.edu
Reply-To: heusch@cs.uni-duesseldorf.de (Peter Heusch)
Organization: Universitaet Duesseldorf
Distribution: gnu
Date: Tue, 10 Nov 1992 17:31:01 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 30