diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-22 02:59:19 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-22 02:59:19 +0000 |
commit | bfdbdaf05b1154ce7d6711c40cf1593758800b94 (patch) | |
tree | 480b22ca8f41f4366a93d16073a009fe64eac1e7 /gcc | |
parent | 0c0bfc96260243060e542d946f26c77f29afb69c (diff) | |
download | gcc-bfdbdaf05b1154ce7d6711c40cf1593758800b94.tar.gz |
Use c_fix = format instead of sed
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/fixinc/inclhack.def | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f797d19e659..e743447ab07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,8 @@ 2002-05-21 Bruce Korb <bkorb@gnu.org> * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check + * fixinc/inclhack.def(thread_keyword): use c_fix = format. + * fixinc/fixincl.x: regen. 2002-05-21 Kazu Hirata <kazu@cs.umass.edu> diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 322a79d90b8..bebdd538486 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2889,14 +2889,14 @@ 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/"; + 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);"; + test_text = "extern int pthread_kill (pthread_t __thread, int __signo);"; }; /* |