diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-11-21 16:25:07 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-11-21 16:25:07 +0000 |
commit | 1fda9d7bbba123dde51fdd4c1d2056ee1e0cf193 (patch) | |
tree | ce42d87a3f2eded136a49700d47eeba7e3f01591 /fixincludes/fixincl.x | |
parent | db02564e0a85c02865edf7db08d9fc343aa6b375 (diff) | |
download | gcc-1fda9d7bbba123dde51fdd4c1d2056ee1e0cf193.tar.gz |
inclhack.def (alpha_pthread_init): New fix.
* inclhack.def (alpha_pthread_init): New fix.
* fixincl.x: Regenerate.
* tests/base/pthread.h: Update for new test.
Co-Authored-By: Bruce Korb <bkorb@gnu.org>
From-SVN: r90981
Diffstat (limited to 'fixincludes/fixincl.x')
-rw-r--r-- | fixincludes/fixincl.x | 57 |
1 files changed, 52 insertions, 5 deletions
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x index 3700290c2c0..ff772117d1e 100644 --- a/fixincludes/fixincl.x +++ b/fixincludes/fixincl.x @@ -2,11 +2,11 @@ * * DO NOT EDIT THIS FILE (fixincl.x) * - * It has been AutoGen-ed Saturday November 13, 2004 at 08:30:08 PM UTC + * It has been AutoGen-ed Sunday November 21, 2004 at 09:09:46 AM MST * From the definitions inclhack.def * and the template file fixincl */ -/* DO NOT CVS-MERGE THIS FILE, EITHER Sat Nov 13 20:30:09 UTC 2004 +/* DO NOT CVS-MERGE THIS FILE, EITHER Sun Nov 21 09:09:46 MST 2004 * * You must regenerate it. Use the ./genfixes script. * @@ -15,7 +15,7 @@ * certain ANSI-incompatible system header files which are fixed to work * correctly with ANSI C and placed in a directory that GNU C will search. * - * This file contains 176 fixup descriptions. + * This file contains 177 fixup descriptions. * * See README for more information. * @@ -1085,6 +1085,47 @@ static const char* apzAlpha_Pthread_GccPatch[] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * + * Description of Alpha_Pthread_Init fix + */ +tSCC zAlpha_Pthread_InitName[] = + "alpha_pthread_init"; + +/* + * File name selection pattern + */ +tSCC zAlpha_Pthread_InitList[] = + "|pthread.h|"; +/* + * Machine/OS name selection pattern + */ +tSCC* apzAlpha_Pthread_InitMachs[] = { + "alpha*-dec-osf*", + (const char*)NULL }; + +/* + * content selection pattern - do fix if pattern found + */ +tSCC zAlpha_Pthread_InitSelect0[] = + " \\* @\\(#\\)\\$RCSfile: pthread\\.h,v \\$ \\$Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) \\$Date: 2000/08/15 15:30:13 \\$"; + +#define ALPHA_PTHREAD_INIT_TEST_CT 1 +static tTestDesc aAlpha_Pthread_InitTests[] = { + { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, }; + +/* + * Fix Command Arguments for Alpha_Pthread_Init + */ +static const char* apzAlpha_Pthread_InitPatch[] = { "sed", + "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\ +s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\ +s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\ +s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\ +s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\ +s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n", + (char*)NULL }; + +/* * * * * * * * * * * * * * * * * * * * * * * * * * + * * Description of Alpha_Sbrk fix */ tSCC zAlpha_SbrkName[] = @@ -7031,9 +7072,9 @@ static const char* apzX11_SprintfPatch[] = { * * List of all fixes */ -#define REGEX_COUNT 205 +#define REGEX_COUNT 206 #define MACH_LIST_SIZE_LIMIT 261 -#define FIX_COUNT 176 +#define FIX_COUNT 177 /* * Enumerate the fixes @@ -7063,6 +7104,7 @@ typedef enum { ALPHA_PARENS_FIXIDX, ALPHA_PTHREAD_FIXIDX, ALPHA_PTHREAD_GCC_FIXIDX, + ALPHA_PTHREAD_INIT_FIXIDX, ALPHA_SBRK_FIXIDX, ALPHA_WCHAR_FIXIDX, AVOID_BOOL_DEFINE_FIXIDX, @@ -7338,6 +7380,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = { ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 }, + { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList, + apzAlpha_Pthread_InitMachs, + ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY, + aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 }, + { zAlpha_SbrkName, zAlpha_SbrkList, apzAlpha_SbrkMachs, ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |