OSDN Git Service

2009-08-28 Bruce Korb <bkorb@gnu.org>
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Aug 2009 19:42:41 +0000 (19:42 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Aug 2009 19:42:41 +0000 (19:42 +0000)
     Steve Ellcey  <sje@cup.hp.com>

* README (files): Describe files entry.
* inclhack.def (hpux_stdint_least): Remove.
(hpux_stdint_fast): Remove.
(hpux_stdint_fast): Remove.
(hpux_stdint_least_fast): New.
(hpux_inttype_int_least8_t): Remove.
(hpux_inttype_int8_t): Modify.
* fixincl.x: Regenerate.
* tests/base/stdint.h: Update.
* tests/base/sys/_inttypes.h: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151178 138bc75d-0d04-0410-961f-82ee72b054a4

fixincludes/ChangeLog
fixincludes/README
fixincludes/fixincl.x
fixincludes/inclhack.def
fixincludes/tests/base/stdint.h
fixincludes/tests/base/sys/_inttypes.h

index 3a4ae1e..c274bea 100644 (file)
@@ -1,3 +1,17 @@
+2009-08-28   Bruce Korb <bkorb@gnu.org>
+            Steve Ellcey  <sje@cup.hp.com>
+
+       * README (files): Describe files entry.
+       * inclhack.def (hpux_stdint_least): Remove.
+       (hpux_stdint_fast): Remove.
+       (hpux_stdint_fast): Remove.
+       (hpux_stdint_least_fast): New.
+       (hpux_inttype_int_least8_t): Remove.
+       (hpux_inttype_int8_t): Modify.
+       * fixincl.x: Regenerate.
+       * tests/base/stdint.h: Update.
+       * tests/base/sys/_inttypes.h: Update.
+
 2009-08-28  Steve Ellcey  <sje@cup.hp.com>
 
        * inclhack.def (hpux_imaginary_i): Remove spaces.
index 50f408f..e9e4654 100644 (file)
@@ -89,6 +89,11 @@ MAKING CHANGES TO INCLHACK.DEF
 
     * c-test - call a function in fixtests.c.  See that file.
 
+    * files  - the "fnmatch" pattern of the file(s) to examine for
+               the issue.  There may be several copies of this attribute.
+               If the header lives in a /usr/include subdirectory, be
+               sure to include that subdirectory in the name. e.g. net/if.h
+
     * mach   - Match the output of config.conf against a series of fnmatch
                patterns.  It must match at least one of the patterns, unless
                "not-machine" has also been specified.  In that case, the
index 0beb33b..8b3422a 100644 (file)
@@ -2,11 +2,11 @@
  * 
  * DO NOT EDIT THIS FILE   (fixincl.x)
  * 
- * It has been AutoGen-ed  Friday August 28, 2009 at 10:41:05 AM PDT
+ * It has been AutoGen-ed  Friday August 28, 2009 at 10:55:38 AM PDT
  * From the definitions    inclhack.def
  * and the template file   fixincl
  */
-/* DO NOT SVN-MERGE THIS FILE, EITHER Fri Aug 28 10:41:05 PDT 2009
+/* DO NOT SVN-MERGE THIS FILE, EITHER Fri Aug 28 10:55:38 PDT 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 206 fixup descriptions.
+ * This file contains 204 fixup descriptions.
  *
  * See README for more information.
  *
@@ -4028,121 +4028,43 @@ static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * *
  *
- *  Description of Hpux_Stdint_Least fix
+ *  Description of Hpux_Stdint_Least_Fast fix
  */
-tSCC zHpux_Stdint_LeastName[] =
-     "hpux_stdint_least";
+tSCC zHpux_Stdint_Least_FastName[] =
+     "hpux_stdint_least_fast";
 
 /*
  *  File name selection pattern
  */
-tSCC zHpux_Stdint_LeastList[] =
+tSCC zHpux_Stdint_Least_FastList[] =
   "stdint.h\0";
 /*
  *  Machine/OS name selection pattern
  */
-tSCC* apzHpux_Stdint_LeastMachs[] = {
+tSCC* apzHpux_Stdint_Least_FastMachs[] = {
         "*-hp-hpux11.2*",
         (const char*)NULL };
 
 /*
  *  content selection pattern - do fix if pattern found
  */
-tSCC zHpux_Stdint_LeastSelect0[] =
-       "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX";
+tSCC zHpux_Stdint_Least_FastSelect0[] =
+       "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
 
-#define    HPUX_STDINT_LEAST_TEST_CT  1
-static tTestDesc aHpux_Stdint_LeastTests[] = {
-  { TT_EGREP,    zHpux_Stdint_LeastSelect0, (regex_t*)NULL }, };
+#define    HPUX_STDINT_LEAST_FAST_TEST_CT  1
+static tTestDesc aHpux_Stdint_Least_FastTests[] = {
+  { TT_EGREP,    zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
 
 /*
- *  Fix Command Arguments for Hpux_Stdint_Least
+ *  Fix Command Arguments for Hpux_Stdint_Least_Fast
  */
-static const char* apzHpux_Stdint_LeastPatch[] = {
+static const char* apzHpux_Stdint_Least_FastPatch[] = {
     "format",
     "#ifdef __LP64__\n\
-#  define\tUINT_LEAST64_MAX\tULONG_MAX\n\
+#  define\tUINT_%164_MAX\tULONG_MAX\n\
 #else\n\
 %0\n\
-#endif\n",
-    (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- *  Description of Hpux_Stdint_Fast fix
- */
-tSCC zHpux_Stdint_FastName[] =
-     "hpux_stdint_fast";
-
-/*
- *  File name selection pattern
- */
-tSCC zHpux_Stdint_FastList[] =
-  "stdint.h\0";
-/*
- *  Machine/OS name selection pattern
- */
-tSCC* apzHpux_Stdint_FastMachs[] = {
-        "*-hp-hpux11.2*",
-        (const char*)NULL };
-
-/*
- *  content selection pattern - do fix if pattern found
- */
-tSCC zHpux_Stdint_FastSelect0[] =
-       "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX";
-
-#define    HPUX_STDINT_FAST_TEST_CT  1
-static tTestDesc aHpux_Stdint_FastTests[] = {
-  { TT_EGREP,    zHpux_Stdint_FastSelect0, (regex_t*)NULL }, };
-
-/*
- *  Fix Command Arguments for Hpux_Stdint_Fast
- */
-static const char* apzHpux_Stdint_FastPatch[] = {
-    "format",
-    "#ifdef __LP64__\n\
-#  define\tUINT_FAST64_MAX\t\tULONG_MAX\n\
-#else\n\
-%0\n\
-#endif\n",
-    (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
- *  Description of Hpux_Inttype_Int_Least8_T fix
- */
-tSCC zHpux_Inttype_Int_Least8_TName[] =
-     "hpux_inttype_int_least8_t";
-
-/*
- *  File name selection pattern
- */
-tSCC zHpux_Inttype_Int_Least8_TList[] =
-  "sys/_inttypes.h\0";
-/*
- *  Machine/OS name selection pattern
- */
-tSCC* apzHpux_Inttype_Int_Least8_TMachs[] = {
-        "*-hp-hpux1[01].*",
-        (const char*)NULL };
-
-/*
- *  content selection pattern - do fix if pattern found
- */
-tSCC zHpux_Inttype_Int_Least8_TSelect0[] =
-       "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*";
-
-#define    HPUX_INTTYPE_INT_LEAST8_T_TEST_CT  1
-static tTestDesc aHpux_Inttype_Int_Least8_TTests[] = {
-  { TT_EGREP,    zHpux_Inttype_Int_Least8_TSelect0, (regex_t*)NULL }, };
-
-/*
- *  Fix Command Arguments for Hpux_Inttype_Int_Least8_T
- */
-static const char* apzHpux_Inttype_Int_Least8_TPatch[] = {
-    "format",
-    "typedef signed char int_least8_t;",
+#endif",
     (char*)NULL };
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -4168,7 +4090,7 @@ tSCC* apzHpux_Inttype_Int8_TMachs[] = {
  *  content selection pattern - do fix if pattern found
  */
 tSCC zHpux_Inttype_Int8_TSelect0[] =
-       "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*";
+       "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
 
 #define    HPUX_INTTYPE_INT8_T_TEST_CT  1
 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
@@ -4179,7 +4101,7 @@ static tTestDesc aHpux_Inttype_Int8_TTests[] = {
  */
 static const char* apzHpux_Inttype_Int8_TPatch[] = {
     "format",
-    "typedef signed char int8_t;",
+    "typedef signed char int%18_t;",
     (char*)NULL };
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -8380,9 +8302,9 @@ static const char* apzX11_SprintfPatch[] = {
  *
  *  List of all fixes
  */
-#define REGEX_COUNT          249
+#define REGEX_COUNT          247
 #define MACH_LIST_SIZE_LIMIT 181
-#define FIX_COUNT            206
+#define FIX_COUNT            204
 
 /*
  *  Enumerate the fixes
@@ -8485,9 +8407,7 @@ typedef enum {
     HPUX_C99_INTPTR_FIXIDX,
     HPUX_C99_INTTYPES_FIXIDX,
     HPUX_C99_INTTYPES2_FIXIDX,
-    HPUX_STDINT_LEAST_FIXIDX,
-    HPUX_STDINT_FAST_FIXIDX,
-    HPUX_INTTYPE_INT_LEAST8_T_FIXIDX,
+    HPUX_STDINT_LEAST_FAST_FIXIDX,
     HPUX_INTTYPE_INT8_T_FIXIDX,
     HPUX_IMAGINARY_I_FIXIDX,
     HUGE_VAL_HEX_FIXIDX,
@@ -9082,20 +9002,10 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
      HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
      aHpux_C99_Inttypes2Tests,   apzHpux_C99_Inttypes2Patch, 0 },
 
-  {  zHpux_Stdint_LeastName,    zHpux_Stdint_LeastList,
-     apzHpux_Stdint_LeastMachs,
-     HPUX_STDINT_LEAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
-     aHpux_Stdint_LeastTests,   apzHpux_Stdint_LeastPatch, 0 },
-
-  {  zHpux_Stdint_FastName,    zHpux_Stdint_FastList,
-     apzHpux_Stdint_FastMachs,
-     HPUX_STDINT_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
-     aHpux_Stdint_FastTests,   apzHpux_Stdint_FastPatch, 0 },
-
-  {  zHpux_Inttype_Int_Least8_TName,    zHpux_Inttype_Int_Least8_TList,
-     apzHpux_Inttype_Int_Least8_TMachs,
-     HPUX_INTTYPE_INT_LEAST8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
-     aHpux_Inttype_Int_Least8_TTests,   apzHpux_Inttype_Int_Least8_TPatch, 0 },
+  {  zHpux_Stdint_Least_FastName,    zHpux_Stdint_Least_FastList,
+     apzHpux_Stdint_Least_FastMachs,
+     HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+     aHpux_Stdint_Least_FastTests,   apzHpux_Stdint_Least_FastPatch, 0 },
 
   {  zHpux_Inttype_Int8_TName,    zHpux_Inttype_Int8_TList,
      apzHpux_Inttype_Int8_TMachs,
index c43ac85..f118260 100644 (file)
@@ -2190,43 +2190,34 @@ fix = {
 };
 
 fix = {
-    hackname  = hpux_stdint_least;
+    hackname  = hpux_stdint_least_fast;
     mach      = "*-hp-hpux11.2*";
     files     = stdint.h;
-    select    = "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX";
-    c_fix     = format;
-    c_fix_arg = "#ifdef __LP64__\n#  define    UINT_LEAST64_MAX        ULONG_MAX\n#else\n%0\n#endif\n";
-    test_text ="#  define       UINT_LEAST64_MAX        ULLONG_MAX\n";
-};
-
-fix = {
-    hackname  = hpux_stdint_fast;
-    mach      = "*-hp-hpux11.2*";
-    files     = stdint.h;
-    select    = "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX";
-    c_fix     = format;
-    c_fix_arg = "#ifdef __LP64__\n#  define    UINT_FAST64_MAX         ULONG_MAX\n#else\n%0\n#endif\n";
-    test_text ="#  define       UINT_FAST64_MAX        ULLONG_MAX\n";
-};
-
-fix = {
-    hackname  = hpux_inttype_int_least8_t;
-    mach      = "*-hp-hpux1[01].*";
-    files     = sys/_inttypes.h;
-    select    = "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*";
+    select    =
+        "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
     c_fix     = format;
-    c_fix_arg = "typedef signed char int_least8_t;";
-    test_text ="typedef char int_least8_t;\n";
+    c-fix-arg = <<- _EOFix_
+       #ifdef __LP64__
+       #  define       UINT_%164_MAX   ULONG_MAX
+       #else
+       %0
+       #endif
+       _EOFix_;
+    test-text = <<- _EOFix_
+       #  define       UINT_FAST64_MAX        ULLONG_MAX
+       #  define       UINT_LEAST64_MAX        ULLONG_MAX
+       _EOFix_;
 };
 
 fix = {
     hackname  = hpux_inttype_int8_t;
     mach      = "*-hp-hpux1[01].*";
     files     = sys/_inttypes.h;
-    select    = "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*";
+    select    = "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
     c_fix     = format;
-    c_fix_arg = "typedef signed char int8_t;";
-    test_text ="typedef char int8_t;\n";
+    c_fix_arg = "typedef signed char int%18_t;";
+    test_text = "typedef char int_least8_t;\n"
+                "typedef char int8_t;\n";
 };
 
 fix = {
index 8be61a9..1c59442 100644 (file)
 #endif  /* HPUX_C99_INTTYPES2_CHECK */
 
 
-#if defined( HPUX_STDINT_LEAST_CHECK )
+#if defined( HPUX_STDINT_LEAST_FAST_CHECK )
 #ifdef __LP64__
-#  define      UINT_LEAST64_MAX        ULONG_MAX
+#  define      UINT_FAST64_MAX ULONG_MAX
 #else
-#  define       UINT_LEAST64_MAX        ULLONG_MAX
+#  define       UINT_FAST64_MAX        ULLONG_MAX
 #endif
-
-
-#endif  /* HPUX_STDINT_LEAST_CHECK */
-
-
-#if defined( HPUX_STDINT_FAST_CHECK )
 #ifdef __LP64__
-#  define      UINT_FAST64_MAX         ULONG_MAX
+#  define      UINT_LEAST64_MAX        ULONG_MAX
 #else
-#  define       UINT_FAST64_MAX        ULLONG_MAX
+#  define       UINT_LEAST64_MAX        ULLONG_MAX
 #endif
-
-
-#endif  /* HPUX_STDINT_FAST_CHECK */
+#endif  /* HPUX_STDINT_LEAST_FAST_CHECK */
 
 
 #if defined( IRIX_STDINT_C99_CHECK )
index 6773ab8..dab8961 100644 (file)
@@ -9,13 +9,8 @@
 
 
 
-#if defined( HPUX_INTTYPE_INT_LEAST8_T_CHECK )
-typedef signed char int_least8_t;
-
-#endif  /* HPUX_INTTYPE_INT_LEAST8_T_CHECK */
-
-
 #if defined( HPUX_INTTYPE_INT8_T_CHECK )
+typedef signed char int_least8_t;
 typedef signed char int8_t;
 
 #endif  /* HPUX_INTTYPE_INT8_T_CHECK */