Commit f3ecb732 by David Edelsohn Committed by David Edelsohn

inclhack.def (aix_complex): New fix.

        * inclhack.def (aix_complex): New fix.
        * fixincl.x: Regenerate.

From-SVN: r150704
parent 6eb29714
2009-08-12 David Edelsohn <edelsohn@gnu.org>
* inclhack.def (aix_complex): New fix.
* fixincl.x: Regenerate.
2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* inclhack.def (hpux_inttype_int_least8_t): Also apply on hpux10*.
......
......@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
* It has been AutoGen-ed Saturday August 1, 2009 at 09:16:11 PM EDT
* It has been AutoGen-ed Saturday August 8, 2009 at 08:07:05 PM EDT
* From the definitions inclhack.def
* and the template file fixincl
*/
/* DO NOT SVN-MERGE THIS FILE, EITHER Sat Aug 1 21:16:12 EDT 2009
/* DO NOT SVN-MERGE THIS FILE, EITHER Sat Aug 8 20:07:05 EDT 2009
*
* 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 199 fixup descriptions.
* This file contains 200 fixup descriptions.
*
* See README for more information.
*
......@@ -485,6 +485,41 @@ static const char* apzAab_Sun_MemcpyPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Complex fix
*/
tSCC zAix_ComplexName[] =
"aix_complex";
/*
* File name selection pattern
*/
tSCC zAix_ComplexList[] =
"complex.h\0";
/*
* Machine/OS name selection pattern
*/
#define apzAix_ComplexMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_ComplexSelect0[] =
"AIX xlc C99";
#define AIX_COMPLEX_TEST_CT 1
static tTestDesc aAix_ComplexTests[] = {
{ TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Complex
*/
static const char* apzAix_ComplexPatch[] = { sed_cmd_z,
"-e", "s/^#define[ \t]_Complex_I[ \t]__I//",
"-e", "s/^#define[ \t]I[ \t]_Complex_I//",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Pthread fix
*/
tSCC zAix_PthreadName[] =
......@@ -8093,9 +8128,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 242
#define REGEX_COUNT 243
#define MACH_LIST_SIZE_LIMIT 181
#define FIX_COUNT 199
#define FIX_COUNT 200
/*
* Enumerate the fixes
......@@ -8109,6 +8144,7 @@ typedef enum {
AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
AAB_SUN_MEMCPY_FIXIDX,
AIX_COMPLEX_FIXIDX,
AIX_PTHREAD_FIXIDX,
AIX_SYSMACHINE_FIXIDX,
AIX_SYSWAIT_2_FIXIDX,
......@@ -8343,6 +8379,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
{ zAix_ComplexName, zAix_ComplexList,
apzAix_ComplexMachs,
AIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
aAix_ComplexTests, apzAix_ComplexPatch, 0 },
{ zAix_PthreadName, zAix_PthreadList,
apzAix_PthreadMachs,
AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
......
......@@ -356,6 +356,23 @@ fix = {
/*
* complex.h on AIX 5 and AIX 6 define _Complex_I and I in terms of __I,
* which only is provided by AIX xlc C99.
*/
fix = {
hackname = aix_complex;
files = complex.h;
select = "AIX xlc C99";
sed = "s/^#define[ \t]_Complex_I[ \t]__I//";
sed = "s/^#define[ \t]I[ \t]_Complex_I//";
test_text = "#define _Complex_I __I\n"
"#define I _Complex_I";
};
/*
* pthread.h on AIX 4.3.3 tries to define a macro without whitspace
* which violates a requirement of ISO C.
*/
......
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