thread changes break compiliation on i686-linux-gnu

Andreas Jaeger aj@suse.de
Wed May 22 07:40:00 GMT 2002


Andreas Jaeger <aj@suse.de> writes:

> Richard,
>
> I now get with current CVS:
>
> ./xgcc -B./ -B/opt/gcc/3.2-devel/i686-pc-linux-gnu/bin/ -isystem /opt/gcc/3.2-devel/i686-pc-linux-gnu/include -isystem /opt/gcc/3.2-devel/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/cvs/gcc/gcc -I/cvs/gcc/gcc/. -I/cvs/gcc/gcc/config -I/cvs/gcc/gcc/../include  -DL_bb -c /cvs/gcc/gcc/libgcc2.c -o libgcc/./_bb.o
> In file included from /cvs/gcc/gcc/gthr-posix.h:37,
>                  from gthr-default.h:1,
>                  from /cvs/gcc/gcc/gthr.h:98,
>                  from /cvs/gcc/gcc/libgcc2.c:1278:
> include/pthread.h:172: parse error before "__thread"
> include/pthread.h:174: `pthread_create' declared as function returning a function
> include/pthread.h:175: parse error before "void"
> make[3]: *** [libgcc/./_bb.o] Error 1

The problem is the parameter called __thread here:
extern int pthread_create (pthread_t *__restrict __thread,
                           __const pthread_attr_t *__restrict __attr,
                           void *(*__start_routine) (void *),
                           void *__restrict __arg) __THROW;

Andreas

>
> config.status reports:
> # This directory was configured as follows:
> /cvs/gcc/configure --with-gcc-version-trigger=/cvs/gcc/gcc/version.c --host=i686-pc-linux-gnu --prefix=/opt/gcc/3.2-devel --enable-shared --enable-threads=posix --enable-clocale=gnu --disable-nls --enable-checking=misc,tree,rtl,gc --with-system-zlib --norecursion 
> #  using "mt-frag"
>
> This is with glibc 2.2.5+ (from CVS),
>
> Andreas

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-bugs mailing list