[Bug target/24831] [4.1/4.2 regression] gthr-dce.h:77: error: expected expression before '{' token

dave at hiauly1 dot hia dot nrc dot ca gcc-bugzilla@gcc.gnu.org
Mon Nov 21 04:55:00 GMT 2005



------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca  2005-11-21 04:55 -------
Subject: Re:  [4.1 regression] gthr-dce.h:77: error: expected expression before
'{' token

> Anyhow, it seems to me like we could simply remove or comment out the
> pthread_key_delete line, since this function is not used anywhere.
> 
> Could you please test such a change?  Thanks,

Removing the pthread_key_delete line eliminates one error.  However,
we still are left with:

...
-c ../../gcc/gcc/unwind-dw2.c -o libgcc/threads/unwind-dw2.o
In file included from ../../gcc/gcc/gthr.h:103,
                 from ../../gcc/gcc/unwind-dw2.c:42:
../../gcc/gcc/gthr-dce.h:77: error: expected expression before '{' token
../../gcc/gcc/gthr-dce.h:77: warning: type defaults to 'int' in declaration of
'
__gthrw_pthread_once_init'
../../gcc/gcc/unwind-dw2.c: In function 'uw_init_context_1':
../../gcc/gcc/unwind-dw2.c:1259: error: invalid initializer

In HP-UX 10.20, we have:

./pthread.h:#define pthread_once_init   cma_once_init
./dce/cma.h:#define cma_once_init       {0, 0, 0}

I'll remove the __gthrw stuff for pthread_once_init as a test.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24831



More information about the Gcc-bugs mailing list