]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Apr 2009 15:20:07 +0000 (15:20 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Apr 2009 15:20:07 +0000 (15:20 +0000)
add hpux-stdint.h to tm_file.
(hppa[12]*-*-hpux11*): Ditto.
(ia64*-*-hpux*): Ditto.
* config/hpux-stdint.h: New.
* gcc/config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
__STDC_EXT__ for all compiles.
* gcc/config/pa/pa-hpux.h: Ditto.
* gcc/config/pa/pa-hpux10.h: Ditto.
* gcc/config/pa/pa-hpux11.h: Ditto.

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

gcc/ChangeLog
gcc/config.gcc
gcc/config/hpux-stdint.h [new file with mode: 0644]
gcc/config/ia64/hpux.h
gcc/config/pa/pa-hpux.h
gcc/config/pa/pa-hpux10.h
gcc/config/pa/pa-hpux11.h

index 71332dace78b8b5399e6aa0005799fceff1477a0..0381548873ea2caa36b77649a11d195a05f206b2 100644 (file)
@@ -1,3 +1,16 @@
+2009-04-28  Steve Ellcey  <sje@cup.hp.com>
+
+       * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
+       add hpux-stdint.h to tm_file.
+       (hppa[12]*-*-hpux11*): Ditto.
+       (ia64*-*-hpux*): Ditto.
+       * config/hpux-stdint.h: New.
+       * gcc/config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
+       __STDC_EXT__ for all compiles.
+       * gcc/config/pa/pa-hpux.h: Ditto.
+       * gcc/config/pa/pa-hpux10.h: Ditto.
+       * gcc/config/pa/pa-hpux11.h: Ditto.
+
 2009-04-28  Catherine Moore  <clm@codesourcery.com>
 
        * debug.h (set_name): Add comment.
index d4d3889f4f4f95702e90f3fed8acadbeb85c79e6..8f838df439485a02e9d3a7d7658594c22aeb2c53 100644 (file)
@@ -975,6 +975,16 @@ hppa*64*-*-hpux11*)
                ;;
        esac
        gas=yes
+       case ${target} in
+         *-*-hpux11.[01]*)
+               use_gcc_stdint=provide
+               tm_file="${tm_file} hpux-stdint.h"
+               ;;
+         *-*-hpux11.[23]*)
+               use_gcc_stdint=wrap
+               tm_file="${tm_file} hpux-stdint.h"
+               ;;
+       esac
        ;;
 hppa[12]*-*-hpux11*)
        case ${target} in
@@ -1005,6 +1015,16 @@ hppa[12]*-*-hpux11*)
        esac
        use_collect2=yes
        gas=yes
+       case ${target} in
+         *-*-hpux11.[01]*)
+               use_gcc_stdint=provide
+               tm_file="${tm_file} hpux-stdint.h"
+               ;;
+         *-*-hpux11.[23]*)
+               use_gcc_stdint=wrap
+               tm_file="${tm_file} hpux-stdint.h"
+               ;;
+       esac
        ;;
 i[34567]86-*-darwin*)
        need_64bit_hwint=yes
@@ -1360,6 +1380,8 @@ ia64*-*-hpux*)
        c_target_objs="ia64-c.o"
        cxx_target_objs="ia64-c.o"
        extra_options="${extra_options} ia64/ilp32.opt"
+       use_gcc_stdint=wrap
+       tm_file="${tm_file} hpux-stdint.h"
        ;;
 iq2000*-*-elf*)
         tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h"
diff --git a/gcc/config/hpux-stdint.h b/gcc/config/hpux-stdint.h
new file mode 100644 (file)
index 0000000..b06813b
--- /dev/null
@@ -0,0 +1,34 @@
+
+/* These should be correct for ia64-hp-hpux11.23.  */
+
+#define SIG_ATOMIC_TYPE "unsigned int"
+
+#define INT8_TYPE "signed char"
+#define INT16_TYPE "short int"
+#define INT32_TYPE "int"
+#define INT64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "long long int")
+#define UINT8_TYPE "unsigned char"
+#define UINT16_TYPE "short unsigned int"
+#define UINT32_TYPE "unsigned int"
+#define UINT64_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
+
+#define INT_LEAST8_TYPE "signed char"
+#define INT_LEAST16_TYPE "short int"
+#define INT_LEAST32_TYPE "int"
+#define INT_LEAST64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "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_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
+
+#define INT_FAST8_TYPE "int"
+#define INT_FAST16_TYPE "int"
+#define INT_FAST32_TYPE "int"
+#define INT_FAST64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "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_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
+
+#define INTPTR_TYPE "long int"
+#define UINTPTR_TYPE "long unsigned int"
index 2ce6f70558f8b37794d8d966d418ea6a27f2bf23..f7918d21aa4c24109a8f7d83eb5306656f1e40f5 100644 (file)
@@ -46,11 +46,11 @@ do {                                                        \
        builtin_define("__IA64__");                     \
        builtin_define("_LONGLONG");                    \
        builtin_define("_INCLUDE_LONGLONG");            \
+       builtin_define("__STDC_EXT__");                 \
        builtin_define("_UINT128_T");                   \
        if (c_dialect_cxx () || !flag_iso)              \
          {                                             \
            builtin_define("_HPUX_SOURCE");             \
-           builtin_define("__STDC_EXT__");             \
            builtin_define("__STDCPP__");               \
            builtin_define("_INCLUDE__STDC_A1_SOURCE"); \
          }                                             \
index 937f8b92bdc461b95e74d34361067ea2d4417a5c..bd12d4fc68ea7f0414587730d543388da5cf44fa 100644 (file)
@@ -56,11 +56,11 @@ along with GCC; see the file COPYING3.  If not see
        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 +76,6 @@ along with GCC; see the file COPYING3.  If not see
                builtin_define ("_PWB");                        \
                builtin_define ("PWB");                         \
              }                                                 \
-           else                                                \
-             builtin_define ("__STDC_EXT__");                  \
          }                                                     \
        if (TARGET_SIO)                                         \
          builtin_define ("_SIO");                              \
index 72f753f09ad965da63512e46b9a6ea9b30ec9bb4..c1294dfff0b8a8aa5cc8577c23d23b51ac606829 100644 (file)
@@ -38,11 +38,11 @@ along with GCC; see the file COPYING3.  If not see
        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 @@ along with GCC; see the file COPYING3.  If not see
                builtin_define ("_PWB");                                \
                builtin_define ("PWB");                                 \
              }                                                         \
-           else                                                        \
-             builtin_define ("__STDC_EXT__");                          \
          }                                                             \
        if (flag_pa_unix >= 1995)                                       \
          {                                                             \
index 8dd01d2563d6ec4737ec0c3c118ab5edf0bf1cb6..06b709c235056c59ddcf2898dcd05eed3bfe8acf 100644 (file)
@@ -37,11 +37,11 @@ along with GCC; see the file COPYING3.  If not see
        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 @@ along with GCC; see the file COPYING3.  If not see
                    builtin_define ("_PWB");                            \
                    builtin_define ("PWB");                             \
                  }                                                     \
-               else                                                    \
-                 builtin_define ("__STDC_EXT__");                      \
              }                                                         \
          }                                                             \
        if (!TARGET_64BIT)                                              \