home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 10988 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.8 KB

  1. Path: sparky!uunet!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: 28 Dec 92 18:26:37
  6. Organization: /usr/blymn/.organization
  7. Lines: 34
  8. Message-ID: <BLYMN.92Dec28182637@siren.awadi.com.au>
  9. References: <dhess.724812183@Xenon.Stanford.EDU> <BLYMN.92Dec27161320@siren.awadi.com.au>
  10. NNTP-Posting-Host: siren.awadi.com.au
  11. In-reply-to: blymn@awadi.com.au's message of 27 Dec 92 16:13:19
  12.  
  13. >>>>> On 27 Dec 92 16:13:19, blymn@awadi.com.au (Brett Lymn) said:
  14. Brett> NNTP-Posting-Host: siren.awadi.com.au
  15.  
  16. >>>>> On 20 Dec 92 00:43:03 GMT, dhess@Xenon.Stanford.EDU (Drew William Hess) said:
  17.  
  18. D> I'm having problems getting gcc 2.3.2 to compile under 386bsd.  It's choking
  19. D> on enquire.c, line 2303, and complaining about a floating point constant
  20. D> being out of range.  Can someone please post or email me a fix?  Thanks.
  21.  
  22. Brett> I would not worry about it too much, if you have a look at the
  23. Brett> comments in the .h file enquire generates you will see that the errors
  24. Brett> that it has detected are rather infesteminal (ie the order of 1e-308)
  25. Brett> so I suspect the rounding is wrong rather than anything else more
  26. Brett> serious.
  27.  
  28. Brett> Apart from that gcc 2.3.2 works fine, I have compiled X with it with
  29. Brett> only one problem, in /usr/include stdlib.h there is the following
  30. Brett> ifdef:
  31.  
  32. Thanks to L. Jonas Olsson for suggesting:
  33.  
  34. #if defined(alloca) && (alloca == __builtin_alloca)
  35. #if __GNUC__ < 2 /* do not define for gcc 2.3.2 */
  36. void    *alloca __P((int));     /* built-in for gcc */
  37. #endif
  38. #else
  39. void    *alloca __P((size_t));
  40. #endif /* __GNUC__ */
  41.  
  42. Which will ifdef out the alloca definition for gcc 2.x but not the gcc
  43. 1.39 (needed for the kernel rebuilds by the unadventurous ;-)
  44.  
  45. --
  46. Brett Lymn
  47.