Attached is my change as it currently stands.

Dave
-- 
J. David Anglin                                  dave.ang...@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
Index: config.gcc
===================================================================
--- config.gcc  (revision 145670)
+++ config.gcc  (working copy)
@@ -937,6 +937,7 @@
            tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
        fi
        use_collect2=yes
+       use_gcc_stdint=provide
        gas=yes
        ;;
 hppa*64*-*-hpux11*)
@@ -974,6 +975,7 @@
                thread_file=posix
                ;;
        esac
+       use_gcc_stdint=provide
        gas=yes
        ;;
 hppa[12]*-*-hpux11*)
@@ -1003,6 +1005,7 @@
                thread_file=posix
                ;;
        esac
+       use_gcc_stdint=provide
        use_collect2=yes
        gas=yes
        ;;
Index: config/pa/pa64-hpux.h
===================================================================
--- config/pa/pa64-hpux.h       (revision 145670)
+++ config/pa/pa64-hpux.h       (working copy)
@@ -19,6 +19,20 @@
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
+/* C99 stdint.h types.  */
+#undef INT64_TYPE
+#define INT64_TYPE "long int"
+#undef UINT64_TYPE
+#define UINT64_TYPE "long unsigned int"
+#undef INT_LEAST64_TYPE
+#define INT_LEAST64_TYPE "long int"
+#undef UINT_LEAST64_TYPE
+#define UINT_LEAST64_TYPE "long unsigned int"
+#undef INT_FAST64_TYPE
+#define INT_FAST64_TYPE "long int"
+#undef UINT_FAST64_TYPE
+#define UINT_FAST64_TYPE "long unsigned int"
+
 /* We can debug dynamically linked executables on hpux11; we also
    want dereferencing of a NULL pointer to cause a SEGV.  Do not move
    the "+Accept TypeMismatch" switch.  We check for it in collect2
Index: config/pa/pa-hpux.h
===================================================================
--- config/pa/pa-hpux.h (revision 145670)
+++ config/pa/pa-hpux.h (working copy)
@@ -1,5 +1,5 @@
 /* Definitions of target machine for GNU compiler, for HP-UX.
-   Copyright (C) 1991, 1995, 1996, 2002, 2003, 2004, 2007, 2008
+   Copyright (C) 1991, 1995, 1996, 2002, 2003, 2004, 2007, 2008, 2009
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -32,6 +32,39 @@
 #define SIZE_TYPE "unsigned int"
 #define PTRDIFF_TYPE "int"
 
+/* C99 stdint.h types.  */
+#define INT8_TYPE "char"
+#define INT16_TYPE "short int"
+#define INT32_TYPE "int"
+#define INT64_TYPE "long long int"
+#define UINT8_TYPE "unsigned char"
+#define UINT16_TYPE "short unsigned int"
+#define UINT32_TYPE "unsigned int"
+#define UINT64_TYPE "long long unsigned int"
+
+#define INT_LEAST8_TYPE "char"
+#define INT_LEAST16_TYPE "short int"
+#define INT_LEAST32_TYPE "int"
+#define INT_LEAST64_TYPE "long long int"
+#define UINT_LEAST8_TYPE "unsigned char"
+#define UINT_LEAST16_TYPE "short unsigned int"
+#define UINT_LEAST32_TYPE "unsigned int"
+#define UINT_LEAST64_TYPE "long long unsigned int"
+
+#define INT_FAST8_TYPE "int"
+#define INT_FAST16_TYPE "int"
+#define INT_FAST32_TYPE "int"
+#define INT_FAST64_TYPE "long long int"
+#define UINT_FAST8_TYPE "unsigned int"
+#define UINT_FAST16_TYPE "unsigned int"
+#define UINT_FAST32_TYPE "unsigned int"
+#define UINT_FAST64_TYPE "long long unsigned int"
+
+#define INTPTR_TYPE "long int"
+#define UINTPTR_TYPE "long unsigned int"
+
+#define SIG_ATOMIC_TYPE "unsigned int"
+
 #define LONG_DOUBLE_TYPE_SIZE 128
 #define HPUX_LONG_DOUBLE_LIBRARY
 #define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) ((MODE) == TFmode)
@@ -56,11 +89,11 @@
        builtin_define ("__hpux__");                            \
        builtin_define ("__unix");                              \
        builtin_define ("__unix__");                            \
+       builtin_define ("__STDC_EXT__");                        \
        if (c_dialect_cxx ())                                   \
          {                                                     \
            builtin_define ("_HPUX_SOURCE");                    \
            builtin_define ("_INCLUDE_LONGLONG");               \
-           builtin_define ("__STDC_EXT__");                    \
          }                                                     \
        else if (!flag_iso)                                     \
          {                                                     \
@@ -76,8 +109,6 @@
                builtin_define ("_PWB");                        \
                builtin_define ("PWB");                         \
              }                                                 \
-           else                                                \
-             builtin_define ("__STDC_EXT__");                  \
          }                                                     \
        if (TARGET_SIO)                                         \
          builtin_define ("_SIO");                              \
Index: config/pa/pa-hpux10.h
===================================================================
--- config/pa/pa-hpux10.h       (revision 145670)
+++ config/pa/pa-hpux10.h       (working copy)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler, for HP PA-RISC
    Copyright (C) 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
-   2007, 2008 Free Software Foundation, Inc.
+   2007, 2008, 2009 Free Software Foundation, Inc.
    Contributed by Tim Moore (mo...@defmacro.cs.utah.edu)
 
 This file is part of GCC.
@@ -38,11 +38,11 @@
        builtin_define ("__hpux__");                                    \
        builtin_define ("__unix");                                      \
        builtin_define ("__unix__");                                    \
+       builtin_define ("__STDC_EXT__");                                \
        if (c_dialect_cxx ())                                           \
          {                                                             \
            builtin_define ("_HPUX_SOURCE");                            \
            builtin_define ("_INCLUDE_LONGLONG");                       \
-           builtin_define ("__STDC_EXT__");                            \
            builtin_define ("__STDCPP__");                              \
          }                                                             \
        else if (!flag_iso)                                             \
@@ -58,8 +58,6 @@
                builtin_define ("_PWB");                                \
                builtin_define ("PWB");                                 \
              }                                                         \
-           else                                                        \
-             builtin_define ("__STDC_EXT__");                          \
          }                                                             \
        if (flag_pa_unix >= 1995)                                       \
          {                                                             \
Index: config/pa/pa-hpux11.h
===================================================================
--- config/pa/pa-hpux11.h       (revision 145670)
+++ config/pa/pa-hpux11.h       (working copy)
@@ -37,11 +37,11 @@
        builtin_define ("__hpux__");                                    \
        builtin_define ("__unix");                                      \
        builtin_define ("__unix__");                                    \
+       builtin_define ("__STDC_EXT__");                                \
        if (c_dialect_cxx ())                                           \
          {                                                             \
            builtin_define ("_HPUX_SOURCE");                            \
            builtin_define ("_INCLUDE_LONGLONG");                       \
-           builtin_define ("__STDC_EXT__");                            \
            builtin_define ("__STDCPP__");                              \
          }                                                             \
        else                                                            \
@@ -59,8 +59,6 @@
                    builtin_define ("_PWB");                            \
                    builtin_define ("PWB");                             \
                  }                                                     \
-               else                                                    \
-                 builtin_define ("__STDC_EXT__");                      \
              }                                                         \
          }                                                             \
        if (!TARGET_64BIT)                                              \

Reply via email to