]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
inclhack.def (aix_complex): New fix.
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 12 Aug 2009 17:33:41 +0000 (17:33 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 12 Aug 2009 17:33:41 +0000 (13:33 -0400)
        * inclhack.def (aix_complex): New fix.
        * fixincl.x: Regenerate.

From-SVN: r150704

fixincludes/ChangeLog
fixincludes/fixincl.x
fixincludes/inclhack.def

index 9747c00c640e6c4fa1a5a959a8d85217210922b3..a093459f31ffe0aa16afa5a5febcee6ae4e6103c 100644 (file)
@@ -1,3 +1,8 @@
+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*.
index 797d962619b3c0ea5fed12d22553a47de2f29691..a4eb90b62054fc000bb6d45c880390f43acfbc7f 100644 (file)
@@ -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.
  *
@@ -483,6 +483,41 @@ static const char* apzAab_Sun_MemcpyPatch[] = {
 #endif /* __memory_h__ */",
     (char*)NULL };
 
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ *  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
@@ -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,
index b65ad2c21d62d8af64bf79b7b902537250040e6d..82b767ab927353e85328b05b1ccf81b77d43f062 100644 (file)
@@ -355,6 +355,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.