diff options
Diffstat (limited to 'gcc/fixinc/inclhack.def')
| -rw-r--r-- | gcc/fixinc/inclhack.def | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index d5b5eec..322a79d 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -1,4 +1,3 @@ - /* -*- Mode: C -*- */ autogen definitions fixincl; @@ -2887,6 +2886,20 @@ fix = { /* + * __thread is now a keyword. + */ +fix = { + hackname = thread_keyword; + files = "pthread.h"; + files = "bits/sigthread.h"; + select = "pthread_t __thread"; + + sed = "s/pthread_t __thread\\([^a-z0-9_]\\)/pthread_t __thr\\1/"; + + test_text = "extern int pthread_kill (pthread_t __thread, int __signo);"; +}; + +/* * if the #if says _cplusplus, not the double underscore __cplusplus * that it should be */ |
