summaryrefslogtreecommitdiff
path: root/fixincludes
diff options
context:
space:
mode:
Diffstat (limited to 'fixincludes')
-rw-r--r--fixincludes/ChangeLog19
-rw-r--r--fixincludes/fixincl.x319
-rw-r--r--fixincludes/inclhack.def181
-rw-r--r--fixincludes/tests/base/pthread.h40
-rw-r--r--fixincludes/tests/base/standards.h14
-rw-r--r--fixincludes/tests/base/sys/stat.h5
-rw-r--r--fixincludes/tests/base/testing.h17
7 files changed, 24 insertions, 571 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index d37b5efa100..14dd8a8175b 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,22 @@
+2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * inclhack.def (alpha___extern_prefix): Remove.
+ (alpha___extern_prefix_standards): Remove.
+ (alpha___extern_prefix_sys_stat): Remove.
+ (alpha_bad_lval): Remove.
+ (alpha_pthread): Remove.
+ (alpha_pthread_gcc): Remove.
+ (alpha_pthread_init): Remove.
+ * fixincl.x: Regenerate.
+ * tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: Remove.
+ [ALPHA_PTHREAD_GCC_CHECK]: Remove.
+ [ALPHA_PTHREAD_INIT_CHECK]: Remove.
+ * tests/base/standards.h: Remove.
+ * tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_SYS_STAT_CHECK]:
+ Remove.
+ * tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: Remove.
+ [ALPHA_BAD_LVAL_CHECK]: Remove.
+
2012-03-12 Tristan Gingold <gingold@adacore.com>
* inclhack.def (vms_use_quoted_include,vms_add_missing_braces)
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
index eca464678e4..57bc488ea56 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 March 12, 2012 at 10:19:44 AM by AutoGen 5.11.1
+ * It has been AutoGen-ed Monday March 12, 2012 at 04:25:19 PM MET
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Mar 12 10:19:44 CET 2012
+/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Mar 12 16:25:19 MET 2012
*
* 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 230 fixup descriptions.
+ * This file contains 223 fixup descriptions.
*
* See README for more information.
*
@@ -1027,118 +1027,6 @@ static const char* apzAlpha___AssertPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Alpha___Extern_Prefix fix
- */
-tSCC zAlpha___Extern_PrefixName[] =
- "alpha___extern_prefix";
-
-/*
- * File name selection pattern
- */
-#define zAlpha___Extern_PrefixList (char*)NULL
-/*
- * Machine/OS name selection pattern
- */
-tSCC* apzAlpha___Extern_PrefixMachs[] = {
- "alpha*-dec-osf*",
- (const char*)NULL };
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zAlpha___Extern_PrefixSelect0[] =
- "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
-(#[ \t]*pragma[ \t]*extern_prefix.*)";
-
-#define ALPHA___EXTERN_PREFIX_TEST_CT 1
-static tTestDesc aAlpha___Extern_PrefixTests[] = {
- { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Alpha___Extern_Prefix
- */
-static const char* apzAlpha___Extern_PrefixPatch[] = {
- "format",
- "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
-%3",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Alpha___Extern_Prefix_Standards fix
- */
-tSCC zAlpha___Extern_Prefix_StandardsName[] =
- "alpha___extern_prefix_standards";
-
-/*
- * File name selection pattern
- */
-tSCC zAlpha___Extern_Prefix_StandardsList[] =
- "standards.h\0";
-/*
- * Machine/OS name selection pattern
- */
-tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
- "alpha*-dec-osf*",
- (const char*)NULL };
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
- ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
-
-#define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
-static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
- { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Alpha___Extern_Prefix_Standards
- */
-static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
- "format",
- "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Alpha___Extern_Prefix_Sys_Stat fix
- */
-tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
- "alpha___extern_prefix_sys_stat";
-
-/*
- * File name selection pattern
- */
-tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
- "sys/stat.h\0sys/mount.h\0";
-/*
- * Machine/OS name selection pattern
- */
-tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
- "alpha*-dec-osf5*",
- (const char*)NULL };
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
- "#[ \t]*if[ \t]*defined\\(__DECC\\)";
-
-#define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
-static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
- { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
- */
-static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
- "format",
- "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
* Description of Alpha_Assert fix
*/
tSCC zAlpha_AssertName[] =
@@ -1174,41 +1062,6 @@ static const char* apzAlpha_AssertPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Alpha_Bad_Lval fix
- */
-tSCC zAlpha_Bad_LvalName[] =
- "alpha_bad_lval";
-
-/*
- * File name selection pattern
- */
-#define zAlpha_Bad_LvalList (char*)NULL
-/*
- * Machine/OS name selection pattern
- */
-tSCC* apzAlpha_Bad_LvalMachs[] = {
- "alpha*-dec-osf*",
- (const char*)NULL };
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zAlpha_Bad_LvalSelect0[] =
- "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
-
-#define ALPHA_BAD_LVAL_TEST_CT 1
-static tTestDesc aAlpha_Bad_LvalTests[] = {
- { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Alpha_Bad_Lval
- */
-static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
- "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
* Description of Alpha_Getopt fix
*/
tSCC zAlpha_GetoptName[] =
@@ -1314,126 +1167,6 @@ static const char* apzAlpha_ParensPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Alpha_Pthread fix
- */
-tSCC zAlpha_PthreadName[] =
- "alpha_pthread";
-
-/*
- * File name selection pattern
- */
-tSCC zAlpha_PthreadList[] =
- "pthread.h\0";
-/*
- * Machine/OS name selection pattern
- */
-tSCC* apzAlpha_PthreadMachs[] = {
- "alpha*-dec-osf*",
- (const char*)NULL };
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zAlpha_PthreadSelect0[] =
- "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
-(#[ \t]*define _PTHREAD_USE_PTDNAM_)";
-
-#define ALPHA_PTHREAD_TEST_CT 1
-static tTestDesc aAlpha_PthreadTests[] = {
- { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Alpha_Pthread
- */
-static const char* apzAlpha_PthreadPatch[] = {
- "format",
- "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
-%5",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Alpha_Pthread_Gcc fix
- */
-tSCC zAlpha_Pthread_GccName[] =
- "alpha_pthread_gcc";
-
-/*
- * File name selection pattern
- */
-tSCC zAlpha_Pthread_GccList[] =
- "pthread.h\0";
-/*
- * Machine/OS name selection pattern
- */
-tSCC* apzAlpha_Pthread_GccMachs[] = {
- "alpha*-dec-osf*",
- (const char*)NULL };
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zAlpha_Pthread_GccSelect0[] =
- "#else\n\
-# error <pthread.h>: unrecognized compiler.";
-
-#define ALPHA_PTHREAD_GCC_TEST_CT 1
-static tTestDesc aAlpha_Pthread_GccTests[] = {
- { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Alpha_Pthread_Gcc
- */
-static const char* apzAlpha_Pthread_GccPatch[] = {
- "format",
- "#elif defined (__GNUC__)\n\
-# define _PTHREAD_ENV_GCC\n\
-%0",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- * Description of Alpha_Pthread_Init fix
- */
-tSCC zAlpha_Pthread_InitName[] =
- "alpha_pthread_init";
-
-/*
- * File name selection pattern
- */
-tSCC zAlpha_Pthread_InitList[] =
- "pthread.h\0";
-/*
- * 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_cmd_z,
- "-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[] =
@@ -9335,9 +9068,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
-#define REGEX_COUNT 272
+#define REGEX_COUNT 265
#define MACH_LIST_SIZE_LIMIT 181
-#define FIX_COUNT 230
+#define FIX_COUNT 223
/*
* Enumerate the fixes
@@ -9365,17 +9098,10 @@ typedef enum {
AIX_SYSWAIT_2_FIXIDX,
AIX_VOLATILE_FIXIDX,
ALPHA___ASSERT_FIXIDX,
- ALPHA___EXTERN_PREFIX_FIXIDX,
- ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
- ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
ALPHA_ASSERT_FIXIDX,
- ALPHA_BAD_LVAL_FIXIDX,
ALPHA_GETOPT_FIXIDX,
ALPHA_IF_SEMICOLON_FIXIDX,
ALPHA_PARENS_FIXIDX,
- ALPHA_PTHREAD_FIXIDX,
- ALPHA_PTHREAD_GCC_FIXIDX,
- ALPHA_PTHREAD_INIT_FIXIDX,
ALPHA_SBRK_FIXIDX,
AVOID_BOOL_DEFINE_FIXIDX,
AVOID_BOOL_TYPE_FIXIDX,
@@ -9686,31 +9412,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
- { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
- apzAlpha___Extern_PrefixMachs,
- ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
-
- { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
- apzAlpha___Extern_Prefix_StandardsMachs,
- ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
-
- { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
- apzAlpha___Extern_Prefix_Sys_StatMachs,
- ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
-
{ zAlpha_AssertName, zAlpha_AssertList,
apzAlpha_AssertMachs,
ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
- { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
- apzAlpha_Bad_LvalMachs,
- ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
- aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
-
{ zAlpha_GetoptName, zAlpha_GetoptList,
apzAlpha_GetoptMachs,
ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
@@ -9726,21 +9432,6 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
- { zAlpha_PthreadName, zAlpha_PthreadList,
- apzAlpha_PthreadMachs,
- ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
-
- { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
- apzAlpha_Pthread_GccMachs,
- 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,
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 1a5cd8d234e..40b8d0fe5dd 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -586,63 +586,6 @@ fix = {
/*
- * Obey __PRAGMA_EXTERN_PREFIX for Tru64 UNIX V4/5 headers.
- */
-fix = {
- hackname = alpha___extern_prefix;
- select = "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n"
- "(#[ \t]*pragma[ \t]*extern_prefix.*)";
-
- mach = "alpha*-dec-osf*";
- c_fix = format;
- c_fix_arg = "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n%3";
-
- test_text = "#ifdef __DECC\n"
- "#pragma extern_prefix \"_P\"\n"
- "# if defined(__DECC)\n"
- "# pragma extern_prefix \"_E\"\n"
- "# if !defined(_LIBC_POLLUTION_H_) && defined(__DECC)\n"
- "# pragma extern_prefix \"\"";
-};
-
-
-/*
- * Obey __PRAGMA_EXTERN_PREFIX for Tru64 UNIX V4/5 <standards.h>.
- */
-fix = {
- hackname = alpha___extern_prefix_standards;
- files = standards.h;
- select = ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
-
- mach = "alpha*-dec-osf*";
- c_fix = format;
- c_fix_arg = "%0 && !defined(__PRAGMA_EXTERN_PREFIX)";
-
- test_text = "#if (_ISO_C_SOURCE>=19990L) "
- "&& !defined(_LIBC_POLLUTION_H_) && !defined(__DECC)";
-};
-
-
-/*
- * Obey __PRAGMA_EXTERN_PREFIX for Tru64 UNIX V5 <sys/mount.h> and
- * <sys/stat.h>. The tests for __DECC are special in various ways, so
- * alpha__extern_prefix cannot be used.
- */
-fix = {
- hackname = alpha___extern_prefix_sys_stat;
- files = sys/stat.h;
- files = sys/mount.h;
- select = "#[ \t]*if[ \t]*defined\\(__DECC\\)";
-
- mach = "alpha*-dec-osf5*";
- c_fix = format;
- c_fix_arg = "%0 || defined(__PRAGMA_EXTERN_PREFIX)";
-
- test_text = "# if defined(__DECC)";
-};
-
-
-/*
* Fix assert macro in assert.h on Alpha OSF/1.
* The superfluous int cast breaks C++.
*/
@@ -658,37 +601,6 @@ fix = {
/*
- * Fix #defines under Alpha OSF/1:
- * The following files contain '#pragma extern_prefix "_FOO"' followed by
- * a '#define something(x,y,z) _FOOsomething(x,y,z)'. The intent of these
- * statements is to reduce namespace pollution. While these macros work
- * properly in most cases, they don't allow you to take a pointer to the
- * "something" being modified. To get around this limitation, change these
- * statements to be of the form '#define something _FOOsomething'.
- *
- * sed ain't egrep, lesson 2463: sed can use self-referential
- * regular expressions. In the substitute expression below,
- * "\\1" and "\\2" refer to subexpressions found earlier in the
- * same match. So, we continue to use sed. "extern_prefix" will
- * be a rare match anyway...
- */
-fix = {
- hackname = alpha_bad_lval;
-
- select = "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
- mach = "alpha*-dec-osf*";
-
- sed =
- "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*"
- "\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/";
-
- test_text = '#pragma extern_prefix "_FOO"'"\n"
- "#define something(x,y,z) _FOOsomething(x,y,z)\n"
- "#define mumble _FOOmumble";
-};
-
-
-/*
* Fix getopt declarations in stdio.h and stdlib.h on Alpha OSF/1 and AIX.
*/
fix = {
@@ -729,99 +641,6 @@ fix = {
/*
- * Obey __PRAGMA_EXTERN_PREFIX for Tru64 UNIX <pthread.h>.
- */
-fix = {
- hackname = alpha_pthread;
- files = pthread.h;
- select = "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)"
- "|def _PTHREAD_ENV_DECC)(.*))\n"
- "(#[ \t]*define _PTHREAD_USE_PTDNAM_)";
-
- mach = "alpha*-dec-osf*";
- c_fix = format;
- c_fix_arg = "%2 defined (_PTHREAD_ENV_DECC)%4 "
- "|| defined (__PRAGMA_EXTERN_PREFIX)\n%5";
-
- test_text = "# if defined (_PTHREAD_ENV_DECC) "
- "|| defined (_PTHREAD_ENV_EPCC)\n"
- "# define _PTHREAD_USE_PTDNAM_\n"
- "# endif\n"
- "# ifdef _PTHREAD_ENV_DECC\n"
- "# define _PTHREAD_USE_PTDNAM_\n"
- "# endif";
-};
-
-
-/*
- * Recognize GCC in Tru64 UNIX V5.1B <pthread.h>.
- */
-fix = {
- hackname = alpha_pthread_gcc;
- files = pthread.h;
- select = "#else\n# error <pthread.h>: unrecognized compiler.";
-
- mach = "alpha*-dec-osf*";
- c_fix = format;
- c_fix_arg = "#elif defined (__GNUC__)\n"
- "# define _PTHREAD_ENV_GCC\n"
- "%0";
-
- test_text = "# define _PTHREAD_ENV_INTELC\n"
- "#else\n"
- "# error <pthread.h>: unrecognized compiler.\n"
- "#endif";
-};
-
-
-/*
- * Compaq Tru64 v5.1 defines all of its PTHREAD_*_INITIALIZER macros
- * incorrectly, specifying less fields in the initializers than are
- * defined in the corresponding structure types. Use of these macros
- * in user code results in spurious warnings.
- */
-fix = {
- hackname = alpha_pthread_init;
- files = pthread.h;
- select = ' \* @\(#\).RCSfile: pthread\.h,v \$'
- ' .Revision: 1\.1\.33\.21 \$ \(DEC\)'
- ' .Date: 2000/08/15 15:30:13 \$';
- mach = "alpha*-dec-osf*";
- sed = "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";
- test_text = <<- _EOText_
- /*
- * @(#)_RCSfile: pthread.h,v $ _Revision: 1.1.33.21 $ (DEC) _Date: 2000/08/15 15:30:13 $
- */
- #ifndef _PTHREAD_NOMETER_STATIC
- # define PTHREAD_MUTEX_INITIALIZER \
- {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA}
- # define PTHREAD_COND_INITIALIZER \
- {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA}
- # define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) \
- {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_}
- # define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) \
- {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_}
- #else
- # define PTHREAD_MUTEX_INITIALIZER {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA}
- # define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) \
- {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_}
- # define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) \
- {0, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_}
- #endif
-
- #define PTHREAD_RWLOCK_INITIALIZER {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA}
- #define PTHREAD_RWLOCK_INITWITHNAME_NP(_n_,_a_) \
- {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, _n_, _a_}
- _EOText_;
-};
-
-
-/*
* Fix return value of sbrk in unistd.h on Alpha OSF/1 V2.0
* And OpenBSD.
*/
diff --git a/fixincludes/tests/base/pthread.h b/fixincludes/tests/base/pthread.h
index 24a215fa47f..054fe508d1d 100644
--- a/fixincludes/tests/base/pthread.h
+++ b/fixincludes/tests/base/pthread.h
@@ -29,46 +29,6 @@
#endif /* AIX_PTHREAD_CHECK */
-#if defined( ALPHA_PTHREAD_CHECK )
-# if defined (_PTHREAD_ENV_DECC) || defined (_PTHREAD_ENV_EPCC) || defined (__PRAGMA_EXTERN_PREFIX)
-# define _PTHREAD_USE_PTDNAM_
-# endif
-# if defined (_PTHREAD_ENV_DECC) || defined (__PRAGMA_EXTERN_PREFIX)
-# define _PTHREAD_USE_PTDNAM_
-# endif
-#endif /* ALPHA_PTHREAD_CHECK */
-
-
-#if defined( ALPHA_PTHREAD_GCC_CHECK )
-# define _PTHREAD_ENV_INTELC
-#elif defined (__GNUC__)
-# define _PTHREAD_ENV_GCC
-#else
-# error <pthread.h>: unrecognized compiler.
-#endif
-#endif /* ALPHA_PTHREAD_GCC_CHECK */
-
-
-#if defined( ALPHA_PTHREAD_INIT_CHECK )
-/*
- * @(#)_RCSfile: pthread.h,v $ _Revision: 1.1.33.21 $ (DEC) _Date: 2000/08/15 15:30:13 $
- */
-#ifndef _PTHREAD_NOMETER_STATIC
-# define PTHREAD_MUTEX_INITIALIZER {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
-# define PTHREAD_COND_INITIALIZER {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, 0, 0, 0, 0 }
-# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_MSTATE_CONFIG, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
-# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_CSTATE_SLOW, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
-#else
-# define PTHREAD_MUTEX_INITIALIZER {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, 0, 0, 0, 0, 0, 0 }
-# define PTHREAD_MUTEX_INITWITHNAME_NP(_n_,_a_) {0, _PTHREAD_MVALID | _PTHREAD_MVF_STA, _n_, _a_, 0, 0, 0, 0 }
-# define PTHREAD_COND_INITWITHNAME_NP(_n_,_a_) {0, _PTHREAD_CVALID | _PTHREAD_CVF_STA, _n_, _a_, 0, 0 }
-#endif
-
-#define PTHREAD_RWLOCK_INITIALIZER {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
-#define PTHREAD_RWLOCK_INITWITHNAME_NP(_n_,_a_) {_PTHREAD_RWVALID | _PTHREAD_RWVF_STA, _n_, _a_, 0, 0, 0, 0, 0, 0, 0 }
-#endif /* ALPHA_PTHREAD_INIT_CHECK */
-
-
#if defined( GLIBC_MUTEX_INIT_CHECK )
#define PTHREAD_MUTEX_INITIALIZER \
{ { 0, 0, 0, 0, 0, 0 } }
diff --git a/fixincludes/tests/base/standards.h b/fixincludes/tests/base/standards.h
deleted file mode 100644
index fccf8063fa3..00000000000
--- a/fixincludes/tests/base/standards.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/* DO NOT EDIT THIS FILE.
-
- It has been auto-edited by fixincludes from:
-
- "fixinc/tests/inc/standards.h"
-
- This had to be done to correct non-standard usages in the
- original, manufacturer supplied header file. */
-
-
-
-#if defined( ALPHA___EXTERN_PREFIX_STANDARDS_CHECK )
-#if (_ISO_C_SOURCE>=19990L) && !defined(_LIBC_POLLUTION_H_) && !defined(__DECC) && !defined(__PRAGMA_EXTERN_PREFIX)
-#endif /* ALPHA___EXTERN_PREFIX_STANDARDS_CHECK */
diff --git a/fixincludes/tests/base/sys/stat.h b/fixincludes/tests/base/sys/stat.h
index 5c254ea94c5..240c308fdbc 100644
--- a/fixincludes/tests/base/sys/stat.h
+++ b/fixincludes/tests/base/sys/stat.h
@@ -9,11 +9,6 @@
-#if defined( ALPHA___EXTERN_PREFIX_SYS_STAT_CHECK )
-# if defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX)
-#endif /* ALPHA___EXTERN_PREFIX_SYS_STAT_CHECK */
-
-
#if defined( GLIBC_C99_INLINE_2_CHECK )
#ifdef __GNUC_GNU_INLINE__
extern
diff --git a/fixincludes/tests/base/testing.h b/fixincludes/tests/base/testing.h
index c15a151280f..f1ffeffa41a 100644
--- a/fixincludes/tests/base/testing.h
+++ b/fixincludes/tests/base/testing.h
@@ -9,23 +9,6 @@
-#if defined( ALPHA___EXTERN_PREFIX_CHECK )
-#if (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))
-#pragma extern_prefix "_P"
-# if (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))
-# pragma extern_prefix "_E"
-# if !defined(_LIBC_POLLUTION_H_) && (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))
-# pragma extern_prefix ""
-#endif /* ALPHA___EXTERN_PREFIX_CHECK */
-
-
-#if defined( ALPHA_BAD_LVAL_CHECK )
-#pragma extern_prefix "_FOO"
-#define something _FOOsomething
-#define mumble _FOOmumble
-#endif /* ALPHA_BAD_LVAL_CHECK */
-
-
#if defined( AVOID_WCHAR_T_TYPE_CHECK )
#ifndef __cplusplus
typedef unsigned short wchar_t ;