inclhack.def (thread_keyword): Allow as any prototype arg.

* fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
        * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.

From-SVN: r53745
This commit is contained in:
Richard Henderson 2002-05-22 13:02:16 -07:00 committed by Richard Henderson
parent ac30211cb9
commit d5bcfcce1d
4 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2002-05-22 Richard Henderson <rth@redhat.com>
* fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
* fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
* t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.

View File

@ -4587,7 +4587,7 @@ tSCC zThread_KeywordList[] =
* content selection pattern - do fix if pattern found
*/
tSCC zThread_KeywordSelect0[] =
"pthread_t __thread([^a-z0-9_])";
" __thread,";
#define THREAD_KEYWORD_TEST_CT 1
static tTestDesc aThread_KeywordTests[] = {
@ -4598,7 +4598,7 @@ static tTestDesc aThread_KeywordTests[] = {
*/
static const char* apzThread_KeywordPatch[] = {
"format",
"pthread_t __thr%1",
" __thr,",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *

View File

@ -2892,11 +2892,13 @@ fix = {
hackname = thread_keyword;
files = "pthread.h";
files = "bits/sigthread.h";
select = "pthread_t __thread([^a-z0-9_])";
select = " __thread,";
c_fix = format;
c_fix_arg = 'pthread_t __thr%1';
c_fix_arg = " __thr,";
test_text = "extern int pthread_kill (pthread_t __thread, int __signo);";
test_text =
"extern int pthread_create (pthread_t *__restrict __thread,\n"
"extern int pthread_kill (pthread_t __thread, int __signo);";
};
/*

View File

@ -37,5 +37,6 @@ extern int __page_size;
#if defined( THREAD_KEYWORD_CHECK )
extern int pthread_create (pthread_t *__restrict __thr,
extern int pthread_kill (pthread_t __thr, int __signo);
#endif /* THREAD_KEYWORD_CHECK */