Here is what happens while trying to compile libio.
This has happened for the last few snapshots, at least since egcs-2.92.28.
========================================================================
test x"yes" != xyes || \
/usr/src/BUILD/egcs/gcc/xgcc -B/usr/src/BUILD/egcs/gcc/
-B/usr/i486-pc-linux-gnu/bin/ -c -D_GNU_SOURCE -g1 -pipe -O2
-fvtable-thunks -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates
-I. -I/usr/src1/CVS/EGCS/egcs/libio -nostdinc++ -D_IO_MTSAFE_IO
-fpic /usr/src1/CVS/EGCS/egcs/libio/builtinbuf.cc -o pic/builtinbuf.o
In file included from /usr/include/bits/stdio-lock.h:20,
from /usr/src1/CVS/EGCS/egcs/libio/libio.h:166,
from /usr/src1/CVS/EGCS/egcs/libio/streambuf.h:36,
from /usr/src1/CVS/EGCS/egcs/libio/builtinbuf.h:32,
from /usr/src1/CVS/EGCS/egcs/libio/builtinbuf.cc:29:
/usr/include/pthread.h:451: Internal compiler error.
/usr/include/pthread.h:451: Please submit a full bug report to `egcs-bugs@cygnus.com'.
/usr/include/pthread.h:451: See <URL: http://egcs.cygnus.com/faq.html#bugreport >
for details.
cpp: output pipe has been closed
make: *** [builtinbuf.o] Error 1
========================================================================
Here is the relevant line of pthread.h, I added the __TEST__,
and using -D__TEST__ the file compiles.
========================================================================
__const void *__pointer));
extern int pthread_setspecific __P ((pthread_key_t __key,
__const void *__pointer));
/* Return current value of the thread-specific data slot identified by KEY. */
#ifndef __TEST__
extern void *__pthread_getspecific __P ((pthread_key_t __key));
extern void *pthread_getspecific __P ((pthread_key_t __key));
#endif
=======================================================================
Replacing "-c" with "-E -dD" above this expands to:
=======================================================================
extern void *__pthread_getspecific (pthread_key_t __key) throw () ;
extern void *pthread_getspecific (pthread_key_t __key) throw () ;
=======================================================================
Here is the relevant system info.
=======================================================================
Linux localhost 2.1.131 #2 Tue Dec 15 20:11:11 PST 1998 i486 unknown
Reading specs from /usr/src/BUILD/egcs/gcc/specs
gcc version egcs-2.92.32 19981220 (gcc2 ss-980609 experimental)
glibc-2.0.105
binutils-2.9.1.0.16
--
Richard Ketchersid, 816 Evans _/_/ _/_/
UC Berkeley, Logic Group _/_/_/ _/ _/
Office Hours: W/F 10-11 _/ _/ _/_/