*BSD News Article 9725


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6358 ; Fri, 08 Jan 93 10:10:49 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!umn.edu!lynx.unm.edu!zia.aoc.nrao.edu!laphroaig!cflatter
From: cflatter@nrao.edu (Chris Flatters)
Subject: Re: [386bsd] gcc 2.3.2/2.3.3 compile solution
Message-ID: <1993Jan10.223405.23735@zia.aoc.nrao.edu>
Sender: news@zia.aoc.nrao.edu
Reply-To: cflatter@nrao.edu
Organization: NRAO
References: <1993Jan08.184051.5674@mav.com>
Date: Sun, 10 Jan 93 22:34:05 GMT
Lines: 50

In article 5674@mav.com, rick@mav.com (Hendrik Groeneveld) writes:
>In article <RICH.92Dec27171213@superego.Rice.edu> Rich@rice.edu writes:
>>>>>>> In article <BLYMN.92Dec27161320@siren.awadi.com.au>, blymn@awadi.com.au (Brett Lymn) writes:
>>>>>>> On 20 Dec 92 00:43:03 GMT, dhess@Xenon.Stanford.EDU (Drew William Hess) said:
>>D> I'm having problems getting gcc 2.3.2 to compile under 386bsd.  It's choking
>>D> on enquire.c, line 2303, and complaining about a floating point constant
>>D> being out of range.  Can someone please post or email me a fix?  Thanks.
>
>The problem is not a floating constant out of range. The problem
>is a floating point stack overflow. To get passed this, manually
>compile fold-const.c using -S in place of -c. Edit fold-const.s
>and replace "fsts" with "fstps" in _real_value_truncate. Then
>assemble (as -o fold-const.o fold-const.s). 

I didn't get this problem but I have had problems with the macro DBL_MAX.
It turns out that the values of DBL_MAX and DBL_MIN are one digit too
short in /usr/include/float.h: this is a problem since DBL_MAX is
rounded to the next highest digit and is therefore larger than the
maximum representable double.  The float.h generated by fixincludes also
has a wrong value for DBL_MAX.  The correct values for the DBL_* macros are

#define DBL_MANT_DIG    53
#define DBL_EPSILON     2.2204460492503131E-16
#define DBL_DIG         15
#define DBL_MIN_EXP     (-1021)
#define DBL_MIN         2.2250738585072014E-308
#define DBL_MIN_10_EXP  (-307)
#define DBL_MAX_EXP     (+1024)
#define DBL_MAX         1.7976931348623157E+308
#define DBL_MAX_10_EXP  (+308)

>
>There is also a circular dependancy for protoize.o/unprotoize.o in the
>Makefile. Add the lines
>
>	touch protoize.o
>	touch unprotoize.o
>
>after the line
>
>	touch stamp-proto
>
>After this "make bootstrap" will run to completion.

I think that the makefile will work without modification if you have GNU make
installed.

	Chris Flatters
	cflatter@nrao.edu