*BSD News Article 10399


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA60 ; Thu, 28 Jan 93 01:01:31 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!bogus.sura.net!udel!gatech!news.byu.edu!ux1!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: Correct values for float.h, compiling gcc-2.3.3
Message-ID: <1993Jan26.211616.25190@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <1993Jan25.152028.10017@yrloc.ipsa.reuter.COM> <1993Jan26.083016.13402@data.fls.dk>
Date: Tue, 26 Jan 93 21:16:16 GMT
Lines: 36

In article <1993Jan26.083016.13402@data.fls.dk> phk@data.fls.dk (P-HK/Poul-Henning Kamp) writes:
>bsd@yrloc.ipsa.reuter.COM (Brian de Alwis) writes:
>
>>What exactly are the correct values for <float.h>?
>
>>This problem has come up while attempting to compile gcc-2.3.3 (are
>>there any patches out there? I couldn't find any, with my limited
>>resources here). It seems that the build proceeds with no problems
>>until enquire.c is compiled with the new xgcc. On line 2307, it
>>craps out with a `floating point constant out of range'. I haven't
>>had too much time to look at any further.
>
>The problem lies with [efsv]printf and very small numbers, like the smallest
>normalised number 2.225073858507201383090232717332404064219e-308
>and the next smaller 2.22507385850720088902458687608585988765e-308 comming
>out the same.

This, in turn, is the result of the "round-up" being set on the float-to-int
conversion in the math library sources.  There have been patches for both
posted, but nothing definative has been done about testing how well they
work with the "correct" float.h values.

Volunteers, anyone?


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------