This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: thread changes break compiliation on i686-linux-gnu
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>, Andreas Jaeger <aj at suse dot de>, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 May 2002 16:43:22 -0400
- Subject: Re: thread changes break compiliation on i686-linux-gnu
- References: <hoy9ech0o8.fsf@gee.suse.de> <u83cwk456a.fsf@gromit.moeb> <20020522130037.B25953@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, May 22, 2002 at 01:00:37PM -0700, Richard Henderson wrote:
> * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
> * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
>
> Index: inclhack.def
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
> retrieving revision 1.130
> diff -c -p -d -r1.130 inclhack.def
> *** inclhack.def 22 May 2002 02:59:19 -0000 1.130
> --- inclhack.def 22 May 2002 19:59:39 -0000
> *************** fix = {
> *** 2892,2902 ****
> hackname = thread_keyword;
> files = "pthread.h";
> files = "bits/sigthread.h";
> ! select = "pthread_t __thread([^a-z0-9_])";
> c_fix = format;
> ! c_fix_arg = 'pthread_t __thr%1';
>
> ! test_text = "extern int pthread_kill (pthread_t __thread, int __signo);";
> };
>
> /*
> --- 2892,2904 ----
> hackname = thread_keyword;
> files = "pthread.h";
> files = "bits/sigthread.h";
> ! select = " __thread,";
> c_fix = format;
> ! c_fix_arg = " __thr,";
Shouldn't this be __thread[,)] and __thr%1 instead for:
extern int pthread_cancel (pthread_t __thread)
?;
Jakub