home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10657 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  2.0 KB

  1. 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
  2. From: blymn@awadi.com.au (Brett Lymn)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: [386bsd] gcc 2.3.2 compile problems
  5. Date: 27 Dec 92 16:13:19
  6. Organization: /usr/blymn/.organization
  7. Lines: 38
  8. Message-ID: <BLYMN.92Dec27161320@siren.awadi.com.au>
  9. References: <dhess.724812183@Xenon.Stanford.EDU>
  10. NNTP-Posting-Host: siren.awadi.com.au
  11. In-reply-to: dhess@Xenon.Stanford.EDU's message of 20 Dec 92 00:43:03 GMT
  12.  
  13. >>>>> On 20 Dec 92 00:43:03 GMT, dhess@Xenon.Stanford.EDU (Drew William Hess) said:
  14.  
  15. D> I'm having problems getting gcc 2.3.2 to compile under 386bsd.  It's choking
  16. D> on enquire.c, line 2303, and complaining about a floating point constant
  17. D> being out of range.  Can someone please post or email me a fix?  Thanks.
  18.  
  19. I would not worry about it too much, if you have a look at the
  20. comments in the .h file enquire generates you will see that the errors
  21. that it has detected are rather infesteminal (ie the order of 1e-308)
  22. so I suspect the rounding is wrong rather than anything else more
  23. serious.
  24.  
  25. Apart from that gcc 2.3.2 works fine, I have compiled X with it with
  26. only one problem, in /usr/include stdlib.h there is the following
  27. ifdef:
  28.  
  29. #if defined(alloca) && (alloca == __builtin_alloca)
  30. void  *alloca __P((int));     /* built-in for gcc */
  31. #else
  32. void    *alloca __P((size_t));
  33. #endif /* __GNUC__ */
  34.  
  35. You have to comment out the definition of alloca like this:
  36.  
  37. #if defined(alloca) && (alloca == __builtin_alloca)
  38. /* void  *alloca __P((int));     /* built-in for gcc */
  39. #else
  40. void    *alloca __P((size_t));
  41. #endif /* __GNUC__ */
  42.  
  43.  
  44. Otherwise gcc gets confused and will not use the builtin alloca.
  45. Apart from this X compiles without a hitch and it seems (to me at
  46. least) a bit faster (not much) and a little bit smaller (again not
  47. much).  I have not found any problems with commenting out the alloca
  48. definition but I am not happy about doing it, anyone got a better
  49. suggestion?
  50.  
  51.