summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-22 03:04:28 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-22 03:04:28 +0000
commit77f2677453e3dbe2d205d8af1e28c95828255961 (patch)
tree5003e154ddc8f6677268a813548f28bffe4281ba /gcc
parentbfdbdaf05b1154ce7d6711c40cf1593758800b94 (diff)
downloadgcc-77f2677453e3dbe2d205d8af1e28c95828255961.tar.gz
regen: Use c_fix = format instead of sed
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53722 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fixinc/fixincl.x11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index b9271465698..7d5f0bbd7b9 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -4577,7 +4577,7 @@ tSCC zThread_KeywordName[] =
* File name selection pattern
*/
tSCC zThread_KeywordList[] =
- "|bits/sigthread.h|pthread.h|";
+ "|pthread.h|bits/sigthread.h|";
/*
* Machine/OS name selection pattern
*/
@@ -4587,7 +4587,7 @@ tSCC zThread_KeywordList[] =
* content selection pattern - do fix if pattern found
*/
tSCC zThread_KeywordSelect0[] =
- "__thread";
+ "pthread_t __thread([^a-z0-9_])";
#define THREAD_KEYWORD_TEST_CT 1
static tTestDesc aThread_KeywordTests[] = {
@@ -4596,8 +4596,9 @@ static tTestDesc aThread_KeywordTests[] = {
/*
* Fix Command Arguments for Thread_Keyword
*/
-static const char* apzThread_KeywordPatch[] = { "sed",
- "-e", "s/\\([^a-z0-9_]\\)__thread\\([^a-z0-9_]\\)/\\1__thr\\2/g",
+static const char* apzThread_KeywordPatch[] = {
+ "format",
+ "pthread_t __thr%1",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -6445,7 +6446,7 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
{ zThread_KeywordName, zThread_KeywordList,
apzThread_KeywordMachs,
- THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY,
+ THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aThread_KeywordTests, apzThread_KeywordPatch, 0 },
{ zTinfo_CplusplusName, zTinfo_CplusplusList,