diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-28 15:20:07 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-28 15:20:07 +0000 |
commit | 43cb92228e7a237bda6eb5585d291af6efc54b79 (patch) | |
tree | b0c0bda2d51d90b52987f96b17e6a54ae92151e0 | |
parent | 8869ef7363218f00a2a4bcad730611e6f797c951 (diff) | |
download | gcc-43cb92228e7a237bda6eb5585d291af6efc54b79.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146900 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/config.gcc | 22 | ||||
-rw-r--r-- | gcc/config/hpux-stdint.h | 34 | ||||
-rw-r--r-- | gcc/config/ia64/hpux.h | 2 | ||||
-rw-r--r-- | gcc/config/pa/pa-hpux.h | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa-hpux10.h | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa-hpux11.h | 4 |
7 files changed, 73 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71332dace78..0381548873e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config.gcc b/gcc/config.gcc index d4d3889f4f4..8f838df4394 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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 index 00000000000..b06813b4769 --- /dev/null +++ b/gcc/config/hpux-stdint.h @@ -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" diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h index 2ce6f70558f..f7918d21aa4 100644 --- a/gcc/config/ia64/hpux.h +++ b/gcc/config/ia64/hpux.h @@ -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"); \ } \ diff --git a/gcc/config/pa/pa-hpux.h b/gcc/config/pa/pa-hpux.h index 937f8b92bdc..bd12d4fc68e 100644 --- a/gcc/config/pa/pa-hpux.h +++ b/gcc/config/pa/pa-hpux.h @@ -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"); \ diff --git a/gcc/config/pa/pa-hpux10.h b/gcc/config/pa/pa-hpux10.h index 72f753f09ad..c1294dfff0b 100644 --- a/gcc/config/pa/pa-hpux10.h +++ b/gcc/config/pa/pa-hpux10.h @@ -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) \ { \ diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index 8dd01d2563d..06b709c2350 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -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) \ |