diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2002-03-21 01:11:48 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2002-03-21 01:11:48 +0000 |
commit | aaa4d13052fc2d708f3c164e28624058ffad5616 (patch) | |
tree | 1f4e1f84938e3cdd48f6c1e33a8c0ebbbb33d076 /gcc/fixinc/fixincl.x | |
parent | 617d988c057ee8dea59a796717596e7604a6e05f (diff) | |
download | gcc-aaa4d13052fc2d708f3c164e28624058ffad5616.zip gcc-aaa4d13052fc2d708f3c164e28624058ffad5616.tar.gz gcc-aaa4d13052fc2d708f3c164e28624058ffad5616.tar.bz2 |
inclhack.def (alpha_assert): Fix assert macro in Tru64 UNIX assert.h.
* fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
UNIX assert.h.
* fixinc/fixincl.x: Regenerate.
From-SVN: r51106
Diffstat (limited to 'gcc/fixinc/fixincl.x')
-rw-r--r-- | gcc/fixinc/fixincl.x | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x index e2a2222..280948d 100644 --- a/gcc/fixinc/fixincl.x +++ b/gcc/fixinc/fixincl.x @@ -5,7 +5,7 @@ * files which are fixed to work correctly with ANSI C and placed in a * directory that GNU C will search. * - * This file contains 138 fixup descriptions. + * This file contains 139 fixup descriptions. * * See README for more information. * @@ -744,6 +744,41 @@ static const char* apzAlpha___AssertPatch[] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * + * Description of Alpha_Assert fix + */ +tSCC zAlpha_AssertName[] = + "alpha_assert"; + +/* + * File name selection pattern + */ +tSCC zAlpha_AssertList[] = + "|assert.h|"; +/* + * Machine/OS name selection pattern + */ +#define apzAlpha_AssertMachs (const char**)NULL + +/* + * content selection pattern - do fix if pattern found + */ +tSCC zAlpha_AssertSelect0[] = + "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)"; + +#define ALPHA_ASSERT_TEST_CT 1 +static tTestDesc aAlpha_AssertTests[] = { + { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, }; + +/* + * Fix Command Arguments for Alpha_Assert + */ +static const char* apzAlpha_AssertPatch[] = { + "format", + "%1(EX)", + (char*)NULL }; + +/* * * * * * * * * * * * * * * * * * * * * * * * * * + * * Description of Alpha_Getopt fix */ tSCC zAlpha_GetoptName[] = @@ -5435,9 +5470,9 @@ static const char* apzX11_SprintfPatch[] = { * * List of all fixes */ -#define REGEX_COUNT 147 +#define REGEX_COUNT 148 #define MACH_LIST_SIZE_LIMIT 279 -#define FIX_COUNT 138 +#define FIX_COUNT 139 /* * Enumerate the fixes @@ -5458,6 +5493,7 @@ typedef enum { AIX_SYSWAIT_FIXIDX, AIX_VOLATILE_FIXIDX, ALPHA___ASSERT_FIXIDX, + ALPHA_ASSERT_FIXIDX, ALPHA_GETOPT_FIXIDX, ALPHA_PARENS_FIXIDX, ALPHA_SBRK_FIXIDX, @@ -5659,6 +5695,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = { ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, aAlpha___AssertTests, apzAlpha___AssertPatch, 0 }, + { zAlpha_AssertName, zAlpha_AssertList, + apzAlpha_AssertMachs, + ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, + aAlpha_AssertTests, apzAlpha_AssertPatch, 0 }, + { zAlpha_GetoptName, zAlpha_GetoptList, apzAlpha_GetoptMachs, ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |