home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!rpi!gatech!udel!wupost!emory!swrinde!network.ucsd.edu!munnari.oz.au!yoyo.aarnet.edu.au!myall.awadi.com.au!myall!blymn
- From: blymn@awadi.com.au (Brett Lymn)
- Newsgroups: comp.unix.bsd
- Subject: Re: [386bsd] gcc 2.3.2 compile problems
- Date: 27 Dec 92 16:13:19
- Organization: /usr/blymn/.organization
- Lines: 38
- Message-ID: <BLYMN.92Dec27161320@siren.awadi.com.au>
- References: <dhess.724812183@Xenon.Stanford.EDU>
- NNTP-Posting-Host: siren.awadi.com.au
- In-reply-to: dhess@Xenon.Stanford.EDU's message of 20 Dec 92 00:43:03 GMT
-
- >>>>> 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.
-
- I would not worry about it too much, if you have a look at the
- comments in the .h file enquire generates you will see that the errors
- that it has detected are rather infesteminal (ie the order of 1e-308)
- so I suspect the rounding is wrong rather than anything else more
- serious.
-
- Apart from that gcc 2.3.2 works fine, I have compiled X with it with
- only one problem, in /usr/include stdlib.h there is the following
- ifdef:
-
- #if defined(alloca) && (alloca == __builtin_alloca)
- void *alloca __P((int)); /* built-in for gcc */
- #else
- void *alloca __P((size_t));
- #endif /* __GNUC__ */
-
- You have to comment out the definition of alloca like this:
-
- #if defined(alloca) && (alloca == __builtin_alloca)
- /* void *alloca __P((int)); /* built-in for gcc */
- #else
- void *alloca __P((size_t));
- #endif /* __GNUC__ */
-
-
- Otherwise gcc gets confused and will not use the builtin alloca.
- Apart from this X compiles without a hitch and it seems (to me at
- least) a bit faster (not much) and a little bit smaller (again not
- much). I have not found any problems with commenting out the alloca
- definition but I am not happy about doing it, anyone got a better
- suggestion?
-
-