home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3096 < prev    next >
Encoding:
Text File  |  1993-01-01  |  3.0 KB  |  86 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!claude.cs.umb.edu!karl
  3. From: karl@claude.cs.umb.edu (Karl Berry)
  4. Subject: gcc 2.3.3 bootstrap on IBM RT
  5. Message-ID: <199301010103.AA07903@claude.cs.umb.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: karl@cs.umb.edu
  8. Organization: GNUs Not Usenet
  9. Distribution: gnu
  10. Date: Thu, 31 Dec 1992 15:03:28 GMT
  11. Approved: bug-gcc@prep.ai.mit.edu
  12. Lines: 72
  13.  
  14. gcc 2.3.3 does not bootstrap properly on an IBM RT running bsd 4.3.
  15. I did:
  16.     configure romp-aos
  17.         make LANGUAGES=c
  18.  
  19. and got the same error as with 2.3.2 compiling obstack.c:
  20.  
  21.     hc -Hnocpp -c  -DIN_GCC     -I. -I. -I./config obstack.c
  22.     E "obstack.h",L134/C1:    Can't open "stddef.h": No such file or directory
  23.  
  24. The problem is that the hc compiler defines __STDC__, yet does not
  25. provide <stddef.h>.  It works to include gstddef.h, though, so I changed
  26. obstack.h to use gstddef.h if STDDEF_H_MISSING is defined, and defined
  27. it in config/x-romp.  Perhaps there is a better fix altogether.
  28.  
  29. I also added -w to x-romp.  hc's warnings are not useful.
  30.  
  31. karl@cs.umb.edu
  32.  
  33. Tue Dec 29 07:28:32 1992  Karl Berry  (karl@red.cs.umb.edu)
  34.  
  35.     * x-romp (CC): Include -w.
  36.  
  37.     * x-romp (CC): Include -DSTDDEF_H_MISSING.
  38.         * obstack.h [STDDEF_H_MISSSING && IN_GCC]: Include gstddef.h
  39.           instead of <stddef.h>.
  40.  
  41. *** ./ORIG/obstack.h    Sat Dec 26 01:55:47 1992
  42. --- ./obstack.h    Tue Dec 29 06:04:53 1992
  43. ***************
  44. *** 120,126 ****
  45.      don't already have ptrdiff_t get it.  */
  46.   
  47.   #if defined (__STDC__) && ! defined (offsetof)
  48. ! #if defined (__GNUC__) && defined (IN_GCC)
  49.   /* On Next machine, the system's stddef.h screws up if included
  50.      after we have defined just ptrdiff_t, so include all of gstddef.h.
  51.      Otherwise, define just ptrdiff_t, which is all we need.  */
  52. --- 120,126 ----
  53.      don't already have ptrdiff_t get it.  */
  54.   
  55.   #if defined (__STDC__) && ! defined (offsetof)
  56. ! #if (defined (__GNUC__) || defined (STDDEF_H_MISSING)) && defined (IN_GCC)
  57.   /* On Next machine, the system's stddef.h screws up if included
  58.      after we have defined just ptrdiff_t, so include all of gstddef.h.
  59.      Otherwise, define just ptrdiff_t, which is all we need.  */
  60. *** ./ORIG/x-romp    Mon Jul 27 20:00:31 1992
  61. --- ./x-romp    Tue Dec 29 06:10:54 1992
  62. ***************
  63. *** 2,8 ****
  64.   # being used.  -Hnocpp makes hc use its builtin preprocessor instead of
  65.   # /lib/cpp.  gcc doesn't use <sys/ioctl.h>, so it doesn't matter whether
  66.   # fixincludes has been run.
  67. ! CC=hc -Hnocpp
  68.   
  69.   # The default `make' on the RT doesn't define MAKE, so do it here.
  70.   MAKE=make
  71. --- 2,14 ----
  72.   # being used.  -Hnocpp makes hc use its builtin preprocessor instead of
  73.   # /lib/cpp.  gcc doesn't use <sys/ioctl.h>, so it doesn't matter whether
  74.   # fixincludes has been run.
  75. ! # 
  76. ! # hc's warnings do nothing but obscure the output, hence the -w.
  77. ! # 
  78. ! # hc defines __STDC__, yet <stddef.h> is missing, so we tell obstack.h
  79. ! # to use gstddef.h instead.
  80. ! # 
  81. ! CC=hc -Hnocpp -w -DSTDDEF_H_MISSING
  82.   
  83.   # The default `make' on the RT doesn't define MAKE, so do it here.
  84.   MAKE=make
  85.  
  86.