Commit 793387fa by Joseph Myers Committed by Joseph Myers

inclhack.def (hpux8_bogus_inlines): Bypass on __GNUG__.

	* inclhack.def (hpux8_bogus_inlines): Bypass on __GNUG__.
	(int_abort_free_and_exit, sun_malloc, sysv68_string): Bypass on
	_CLASSIC_ANSI_TYPES.
	(sun_auth_proto): Bypass on __cplusplus.
	* fixincl.x: Regenerate.

From-SVN: r90371
parent cdf87ecb
2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
* inclhack.def (hpux8_bogus_inlines): Bypass on __GNUG__.
(int_abort_free_and_exit, sun_malloc, sysv68_string): Bypass on
_CLASSIC_ANSI_TYPES.
(sun_auth_proto): Bypass on __cplusplus.
* fixincl.x: Regenerate.
2004-11-05 Geoffrey Keating <geoffk@apple.com> 2004-11-05 Geoffrey Keating <geoffk@apple.com>
* Makefile.in (mostlyclean): Add fixinc.sh. * Makefile.in (mostlyclean): Add fixinc.sh.
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* *
* DO NOT EDIT THIS FILE (fixincl.x) * DO NOT EDIT THIS FILE (fixincl.x)
* *
* It has been AutoGen-ed Friday October 29, 2004 at 02:26:49 PM PDT * It has been AutoGen-ed Tuesday November 9, 2004 at 11:12:40 PM UTC
* From the definitions inclhack.def * From the definitions inclhack.def
* and the template file fixincl * and the template file fixincl
*/ */
/* DO NOT CVS-MERGE THIS FILE, EITHER Fri Oct 29 14:26:49 PDT 2004 /* DO NOT CVS-MERGE THIS FILE, EITHER Tue Nov 9 23:12:40 UTC 2004
* *
* You must regenerate it. Use the ./genfixes script. * You must regenerate it. Use the ./genfixes script.
* *
...@@ -2547,8 +2547,15 @@ tSCC zHpux8_Bogus_InlinesList[] = ...@@ -2547,8 +2547,15 @@ tSCC zHpux8_Bogus_InlinesList[] =
tSCC zHpux8_Bogus_InlinesSelect0[] = tSCC zHpux8_Bogus_InlinesSelect0[] =
"inline"; "inline";
#define HPUX8_BOGUS_INLINES_TEST_CT 1 /*
* content bypass pattern - skip fix if pattern found
*/
tSCC zHpux8_Bogus_InlinesBypass0[] =
"__GNUG__";
#define HPUX8_BOGUS_INLINES_TEST_CT 2
static tTestDesc aHpux8_Bogus_InlinesTests[] = { static tTestDesc aHpux8_Bogus_InlinesTests[] = {
{ TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
{ TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
/* /*
...@@ -2748,8 +2755,15 @@ tSCC zInt_Abort_Free_And_ExitList[] = ...@@ -2748,8 +2755,15 @@ tSCC zInt_Abort_Free_And_ExitList[] =
tSCC zInt_Abort_Free_And_ExitSelect0[] = tSCC zInt_Abort_Free_And_ExitSelect0[] =
"int[ \t]+(abort|free|exit)[ \t]*\\("; "int[ \t]+(abort|free|exit)[ \t]*\\(";
#define INT_ABORT_FREE_AND_EXIT_TEST_CT 1 /*
* content bypass pattern - skip fix if pattern found
*/
tSCC zInt_Abort_Free_And_ExitBypass0[] =
"_CLASSIC_ANSI_TYPES";
#define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
static tTestDesc aInt_Abort_Free_And_ExitTests[] = { static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
{ TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
{ TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, }; { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
/* /*
...@@ -5238,8 +5252,15 @@ tSCC zSun_Auth_ProtoList[] = ...@@ -5238,8 +5252,15 @@ tSCC zSun_Auth_ProtoList[] =
tSCC zSun_Auth_ProtoSelect0[] = tSCC zSun_Auth_ProtoSelect0[] =
"\\(\\*[a-z][a-z_]*\\)\\(\\)"; "\\(\\*[a-z][a-z_]*\\)\\(\\)";
#define SUN_AUTH_PROTO_TEST_CT 1 /*
* content bypass pattern - skip fix if pattern found
*/
tSCC zSun_Auth_ProtoBypass0[] =
"__cplusplus";
#define SUN_AUTH_PROTO_TEST_CT 2
static tTestDesc aSun_Auth_ProtoTests[] = { static tTestDesc aSun_Auth_ProtoTests[] = {
{ TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
{ TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
/* /*
...@@ -5345,8 +5366,16 @@ tSCC zSun_MallocList[] = ...@@ -5345,8 +5366,16 @@ tSCC zSun_MallocList[] =
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzSun_MallocMachs (const char**)NULL #define apzSun_MallocMachs (const char**)NULL
#define SUN_MALLOC_TEST_CT 0
#define aSun_MallocTests (tTestDesc*)NULL /*
* content bypass pattern - skip fix if pattern found
*/
tSCC zSun_MallocBypass0[] =
"_CLASSIC_ANSI_TYPES";
#define SUN_MALLOC_TEST_CT 1
static tTestDesc aSun_MallocTests[] = {
{ TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Sun_Malloc * Fix Command Arguments for Sun_Malloc
...@@ -5749,8 +5778,16 @@ tSCC zSysv68_StringList[] = ...@@ -5749,8 +5778,16 @@ tSCC zSysv68_StringList[] =
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
#define apzSysv68_StringMachs (const char**)NULL #define apzSysv68_StringMachs (const char**)NULL
#define SYSV68_STRING_TEST_CT 0
#define aSysv68_StringTests (tTestDesc*)NULL /*
* content bypass pattern - skip fix if pattern found
*/
tSCC zSysv68_StringBypass0[] =
"_CLASSIC_ANSI_TYPES";
#define SYSV68_STRING_TEST_CT 1
static tTestDesc aSysv68_StringTests[] = {
{ TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
/* /*
* Fix Command Arguments for Sysv68_String * Fix Command Arguments for Sysv68_String
...@@ -7196,7 +7233,7 @@ static const char* apzX11_SprintfPatch[] = { ...@@ -7196,7 +7233,7 @@ static const char* apzX11_SprintfPatch[] = {
* *
* List of all fixes * List of all fixes
*/ */
#define REGEX_COUNT 206 #define REGEX_COUNT 211
#define MACH_LIST_SIZE_LIMIT 261 #define MACH_LIST_SIZE_LIMIT 261
#define FIX_COUNT 181 #define FIX_COUNT 181
......
...@@ -1432,6 +1432,7 @@ fix = { ...@@ -1432,6 +1432,7 @@ fix = {
hackname = hpux8_bogus_inlines; hackname = hpux8_bogus_inlines;
files = math.h; files = math.h;
select = inline; select = inline;
bypass = "__GNUG__";
sed = "s@inline int abs(int [a-z][a-z]*) {.*}" sed = "s@inline int abs(int [a-z][a-z]*) {.*}"
"@extern \"C\" int abs(int);@"; "@extern \"C\" int abs(int);@";
sed = "s@inline double abs(double [a-z][a-z]*) {.*}@@"; sed = "s@inline double abs(double [a-z][a-z]*) {.*}@@";
...@@ -1521,6 +1522,7 @@ fix = { ...@@ -1521,6 +1522,7 @@ fix = {
hackname = int_abort_free_and_exit; hackname = int_abort_free_and_exit;
files = stdlib.h; files = stdlib.h;
select = "int[ \t]+(abort|free|exit)[ \t]*\\("; select = "int[ \t]+(abort|free|exit)[ \t]*\\(";
bypass = "_CLASSIC_ANSI_TYPES";
c_fix = format; c_fix = format;
c_fix_arg = "void\t%1("; c_fix_arg = "void\t%1(";
...@@ -2912,6 +2914,7 @@ fix = { ...@@ -2912,6 +2914,7 @@ fix = {
files = rpc/clnt.h; files = rpc/clnt.h;
files = rpc/svc.h; files = rpc/svc.h;
files = rpc/xdr.h; files = rpc/xdr.h;
bypass = "__cplusplus";
/* /*
* Select those files containing '(*name)()'. * Select those files containing '(*name)()'.
*/ */
...@@ -2970,6 +2973,7 @@ fix = { ...@@ -2970,6 +2973,7 @@ fix = {
fix = { fix = {
hackname = sun_malloc; hackname = sun_malloc;
files = malloc.h; files = malloc.h;
bypass = "_CLASSIC_ANSI_TYPES";
sed = "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g"; sed = "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g";
sed = "s/int[ \t][ \t]*free/void\tfree/g"; sed = "s/int[ \t][ \t]*free/void\tfree/g";
...@@ -3473,6 +3477,7 @@ fix = { ...@@ -3473,6 +3477,7 @@ fix = {
hackname = sysv68_string; hackname = sysv68_string;
files = testing.h; files = testing.h;
files = string.h; files = string.h;
bypass = "_CLASSIC_ANSI_TYPES";
sed = "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/"; sed = "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/";
sed = "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/"; sed = "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment