aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2002-05-22 02:59:19 +0000
committerBruce Korb <korbb@gcc.gnu.org>2002-05-22 02:59:19 +0000
commit021c1f34a93af4fd6567864e39135745c4ab4749 (patch)
tree480b22ca8f41f4366a93d16073a009fe64eac1e7 /gcc/fixinc
parent4c526be3ebad989de148e26ea1f9137462e78c12 (diff)
downloadgcc-021c1f34a93af4fd6567864e39135745c4ab4749.zip
gcc-021c1f34a93af4fd6567864e39135745c4ab4749.tar.gz
gcc-021c1f34a93af4fd6567864e39135745c4ab4749.tar.bz2
Use c_fix = format instead of sed
From-SVN: r53721
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/inclhack.def14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index 322a79d..bebdd53 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);";
};
/*