Commit 8f2e963b by Loren J. Rittle Committed by Loren J. Rittle

inclhack.def (strict_ansi_not): Add a bypass based on the old, removed AAA_standards fix.

	* fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
	the old, removed AAA_standards fix.
	* fixinc/fixincl.x: Rebuilt.

From-SVN: r49282
parent fdae5767
2002-01-28 Loren J. Rittle <ljrittle@acm.org>
* fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
the old, removed AAA_standards fix.
* fixinc/fixincl.x: Rebuilt.
2002-01-28 Hans-Peter Nilsson <hp@axis.com> 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
......
...@@ -144,14 +144,14 @@ static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { ...@@ -144,14 +144,14 @@ static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
#define __FD_ZERO(fdsetp) \\\n\ #define __FD_ZERO(fdsetp) \\\n\
do { \\\n\ do { \\\n\
int __d0, __d1; \\\n\ int __d0, __d1; \\\n\
\t\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
\t\t\t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
\t\t\t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
\t\t\t \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
} while (0)\n\ } while (0)\n\
#endif\n\n\ #endif\n\n\
#define _POSIX_TYPES_H_WRAPPER\n\ #define _POSIX_TYPES_H_WRAPPER\n\
#endif /* _POSIX_TYPES_H_WRAPPER */\n", #endif /* _POSIX_TYPES_H_WRAPPER */",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
...@@ -3764,13 +3764,20 @@ tSCC zStrict_Ansi_NotSelect0[] = ...@@ -3764,13 +3764,20 @@ tSCC zStrict_Ansi_NotSelect0[] =
"^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
/* /*
* content bypass pattern - skip fix if pattern found
*/
tSCC zStrict_Ansi_NotBypass0[] =
"GNU and MIPS C compilers define __STDC__ differently";
/*
* perform the C function call test * perform the C function call test
*/ */
tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers"; tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
#define STRICT_ANSI_NOT_TEST_CT 2 #define STRICT_ANSI_NOT_TEST_CT 3
static tTestDesc aStrict_Ansi_NotTests[] = { static tTestDesc aStrict_Ansi_NotTests[] = {
{ TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ }, { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
{ TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
{ TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, }; { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
/* /*
...@@ -5428,7 +5435,7 @@ static const char* apzX11_SprintfPatch[] = { ...@@ -5428,7 +5435,7 @@ static const char* apzX11_SprintfPatch[] = {
* *
* List of all fixes * List of all fixes
*/ */
#define REGEX_COUNT 146 #define REGEX_COUNT 147
#define MACH_LIST_SIZE_LIMIT 279 #define MACH_LIST_SIZE_LIMIT 279
#define FIX_COUNT 138 #define FIX_COUNT 138
......
...@@ -2173,6 +2173,8 @@ fix = { ...@@ -2173,6 +2173,8 @@ fix = {
"|__STDC__[ \t]*==[ \t]*0" "|__STDC__[ \t]*==[ \t]*0"
"|__STDC__[ \t]*!=[ \t]*1" "|__STDC__[ \t]*!=[ \t]*1"
"|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; "|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
/* Tru64 UNIX V4.0F/V5.1 <standards.h> supports GCC usage of __STDC__. */
bypass = 'GNU and MIPS C compilers define __STDC__ differently';
c_test = stdc_0_in_system_headers; c_test = stdc_0_in_system_headers;
c_fix = format; c_fix = format;
......
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