This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: thread changes break compiliation on i686-linux-gnu


On Wed, May 22, 2002 at 04:40:13PM +0200, Andreas Jaeger wrote:
> > include/pthread.h:172: parse error before "__thread"
> 
> 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;

Fixed thus.


r~


	* 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,";
  
!     test_text =
! 	"extern int pthread_create (pthread_t *__restrict __thread,\n"
! 	"extern int pthread_kill (pthread_t __thread, int __signo);";
  };
  
  /*


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]