diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-17 02:28:07 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-17 02:28:07 +0000 |
commit | 4cad3a315f9b5d94bcf3d0e8725a7e70ba1a5b67 (patch) | |
tree | cf78e3a13bf620d4cdb370eaf5e37b9bda3c6471 /fixincludes/fixincl.x | |
parent | 31529c9bdf4752e17019c96418f33479ec783833 (diff) | |
download | gcc-4cad3a315f9b5d94bcf3d0e8725a7e70ba1a5b67.tar.gz |
* inclhack.def (aix_once_init_[12]): New fixes.
* fixincl.x: Regenerate.
* tests/base/pthread.h: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/fixincl.x')
-rw-r--r-- | fixincludes/fixincl.x | 100 |
1 files changed, 95 insertions, 5 deletions
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x index 0f5e5fcae8e..dac0a4ed229 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 Sunday October 23, 2011 at 12:18:29 PM EST + * It has been AutoGen-ed November 7, 2011 at 01:16:39 PM by AutoGen 5.10 * From the definitions inclhack.def * and the template file fixincl */ -/* DO NOT SVN-MERGE THIS FILE, EITHER Sun Oct 23 12:18:29 EST 2011 +/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Nov 7 13:16:39 EST 2011 * * 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 220 fixup descriptions. + * This file contains 222 fixup descriptions. * * See README for more information. * @@ -559,6 +559,84 @@ static const char* apzAix_Net_If_ArpPatch[] = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * + * Description of Aix_Once_Init_1 fix + */ +tSCC zAix_Once_Init_1Name[] = + "aix_once_init_1"; + +/* + * File name selection pattern + */ +tSCC zAix_Once_Init_1List[] = + "pthread.h\0"; +/* + * Machine/OS name selection pattern + */ +tSCC* apzAix_Once_Init_1Machs[] = { + "*-*-aix*", + (const char*)NULL }; + +/* + * content selection pattern - do fix if pattern found + */ +tSCC zAix_Once_Init_1Select0[] = + "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\ +\\{ \\\\\n"; + +#define AIX_ONCE_INIT_1_TEST_CT 1 +static tTestDesc aAix_Once_Init_1Tests[] = { + { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, }; + +/* + * Fix Command Arguments for Aix_Once_Init_1 + */ +static const char* apzAix_Once_Init_1Patch[] = { + "format", + "#define PTHREAD_ONCE_INIT \\\n\ +{{ \\\n", + (char*)NULL }; + +/* * * * * * * * * * * * * * * * * * * * * * * * * * + * + * Description of Aix_Once_Init_2 fix + */ +tSCC zAix_Once_Init_2Name[] = + "aix_once_init_2"; + +/* + * File name selection pattern + */ +tSCC zAix_Once_Init_2List[] = + "pthread.h\0"; +/* + * Machine/OS name selection pattern + */ +tSCC* apzAix_Once_Init_2Machs[] = { + "*-*-aix*", + (const char*)NULL }; + +/* + * content selection pattern - do fix if pattern found + */ +tSCC zAix_Once_Init_2Select0[] = + "[ \t]0 \\\\\n\ +\\}\n"; + +#define AIX_ONCE_INIT_2_TEST_CT 1 +static tTestDesc aAix_Once_Init_2Tests[] = { + { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, }; + +/* + * Fix Command Arguments for Aix_Once_Init_2 + */ +static const char* apzAix_Once_Init_2Patch[] = { + "format", + "\t0 \\\n\ +}}\n", + (char*)NULL }; + +/* * * * * * * * * * * * * * * * * * * * * * * * * * + * * Description of Aix_Pthread fix */ tSCC zAix_PthreadName[] = @@ -8956,9 +9034,9 @@ static const char* apzX11_SprintfPatch[] = { * * List of all fixes */ -#define REGEX_COUNT 262 +#define REGEX_COUNT 264 #define MACH_LIST_SIZE_LIMIT 181 -#define FIX_COUNT 220 +#define FIX_COUNT 222 /* * Enumerate the fixes @@ -8974,6 +9052,8 @@ typedef enum { AAB_SUN_MEMCPY_FIXIDX, AIX_COMPLEX_FIXIDX, AIX_NET_IF_ARP_FIXIDX, + AIX_ONCE_INIT_1_FIXIDX, + AIX_ONCE_INIT_2_FIXIDX, AIX_PTHREAD_FIXIDX, AIX_STDINT_1_FIXIDX, AIX_STDINT_2_FIXIDX, @@ -9237,6 +9317,16 @@ tFixDesc fixDescList[ FIX_COUNT ] = { AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 }, + { zAix_Once_Init_1Name, zAix_Once_Init_1List, + apzAix_Once_Init_1Machs, + AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, + aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 }, + + { zAix_Once_Init_2Name, zAix_Once_Init_2List, + apzAix_Once_Init_2Machs, + AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, + aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 }, + { zAix_PthreadName, zAix_PthreadList, apzAix_PthreadMachs, AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |