Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Karl Berry
Thu, 31 Dec 1992 15:03
gcc 2.3.3 bootstrap on IBM RT
Author: Karl Berry
Date: Thu, 31 Dec 1992 15:03
Date: Thu, 31 Dec 1992 15:03
71 lines
3143 bytes
3143 bytes
gcc 2.3.3 does not bootstrap properly on an IBM RT running bsd 4.3.
I did:
configure romp-aos
make LANGUAGES=c
and got the same error as with 2.3.2 compiling obstack.c:
hc -Hnocpp -c -DIN_GCC -I. -I. -I./config obstack.c
E "obstack.h",L134/C1: Can't open "stddef.h": No such file or directory
The problem is that the hc compiler defines __STDC__, yet does not
provide <stddef.h>. It works to include gstddef.h, though, so I changed
obstack.h to use gstddef.h if STDDEF_H_MISSING is defined, and defined
it in config/x-romp. Perhaps there is a better fix altogether.
I also added -w to x-romp. hc's warnings are not useful.
karl@cs.umb.edu
Tue Dec 29 07:28:32 1992 Karl Berry (karl@red.cs.umb.edu)
* x-romp (CC): Include -w.
* x-romp (CC): Include -DSTDDEF_H_MISSING.
* obstack.h [STDDEF_H_MISSSING && IN_GCC]: Include gstddef.h
instead of <stddef.h>.
*** ./ORIG/obstack.h Sat Dec 26 01:55:47 1992
--- ./obstack.h Tue Dec 29 06:04:53 1992
***************
*** 120,126 ****
don't already have ptrdiff_t get it. */
#if defined (__STDC__) && ! defined (offsetof)
! #if defined (__GNUC__) && defined (IN_GCC)
/* On Next machine, the system's stddef.h screws up if included
after we have defined just ptrdiff_t, so include all of gstddef.h.
Otherwise, define just ptrdiff_t, which is all we need. */
--- 120,126 ----
don't already have ptrdiff_t get it. */
#if defined (__STDC__) && ! defined (offsetof)
! #if (defined (__GNUC__) || defined (STDDEF_H_MISSING)) && defined (IN_GCC)
/* On Next machine, the system's stddef.h screws up if included
after we have defined just ptrdiff_t, so include all of gstddef.h.
Otherwise, define just ptrdiff_t, which is all we need. */
*** ./ORIG/x-romp Mon Jul 27 20:00:31 1992
--- ./x-romp Tue Dec 29 06:10:54 1992
***************
*** 2,8 ****
# being used. -Hnocpp makes hc use its builtin preprocessor instead of
# /lib/cpp. gcc doesn't use <sys/ioctl.h>, so it doesn't matter whether
# fixincludes has been run.
! CC=hc -Hnocpp
# The default `make' on the RT doesn't define MAKE, so do it here.
MAKE=make
--- 2,14 ----
# being used. -Hnocpp makes hc use its builtin preprocessor instead of
# /lib/cpp. gcc doesn't use <sys/ioctl.h>, so it doesn't matter whether
# fixincludes has been run.
! #
! # hc's warnings do nothing but obscure the output, hence the -w.
! #
! # hc defines __STDC__, yet <stddef.h> is missing, so we tell obstack.h
! # to use gstddef.h instead.
! #
! CC=hc -Hnocpp -w -DSTDDEF_H_MISSING
# The default `make' on the RT doesn't define MAKE, so do it here.
MAKE=make
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads