Commit 9a17c91d by Steve Ellcey Committed by Steve Ellcey

config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and add hpux-stdint.h to tm_file.

	* 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.

From-SVN: r146900
parent 62e66577
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> 2009-04-28 Catherine Moore <clm@codesourcery.com>
* debug.h (set_name): Add comment. * debug.h (set_name): Add comment.
......
...@@ -975,6 +975,16 @@ hppa*64*-*-hpux11*) ...@@ -975,6 +975,16 @@ hppa*64*-*-hpux11*)
;; ;;
esac esac
gas=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
;; ;;
hppa[12]*-*-hpux11*) hppa[12]*-*-hpux11*)
case ${target} in case ${target} in
...@@ -1005,6 +1015,16 @@ hppa[12]*-*-hpux11*) ...@@ -1005,6 +1015,16 @@ hppa[12]*-*-hpux11*)
esac esac
use_collect2=yes use_collect2=yes
gas=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*) i[34567]86-*-darwin*)
need_64bit_hwint=yes need_64bit_hwint=yes
...@@ -1360,6 +1380,8 @@ ia64*-*-hpux*) ...@@ -1360,6 +1380,8 @@ ia64*-*-hpux*)
c_target_objs="ia64-c.o" c_target_objs="ia64-c.o"
cxx_target_objs="ia64-c.o" cxx_target_objs="ia64-c.o"
extra_options="${extra_options} ia64/ilp32.opt" extra_options="${extra_options} ia64/ilp32.opt"
use_gcc_stdint=wrap
tm_file="${tm_file} hpux-stdint.h"
;; ;;
iq2000*-*-elf*) iq2000*-*-elf*)
tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h" tm_file="svr4.h elfos.h newlib-stdint.h iq2000/iq2000.h"
......
/* 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"
...@@ -46,11 +46,11 @@ do { \ ...@@ -46,11 +46,11 @@ do { \
builtin_define("__IA64__"); \ builtin_define("__IA64__"); \
builtin_define("_LONGLONG"); \ builtin_define("_LONGLONG"); \
builtin_define("_INCLUDE_LONGLONG"); \ builtin_define("_INCLUDE_LONGLONG"); \
builtin_define("__STDC_EXT__"); \
builtin_define("_UINT128_T"); \ builtin_define("_UINT128_T"); \
if (c_dialect_cxx () || !flag_iso) \ if (c_dialect_cxx () || !flag_iso) \
{ \ { \
builtin_define("_HPUX_SOURCE"); \ builtin_define("_HPUX_SOURCE"); \
builtin_define("__STDC_EXT__"); \
builtin_define("__STDCPP__"); \ builtin_define("__STDCPP__"); \
builtin_define("_INCLUDE__STDC_A1_SOURCE"); \ builtin_define("_INCLUDE__STDC_A1_SOURCE"); \
} \ } \
......
...@@ -56,11 +56,11 @@ along with GCC; see the file COPYING3. If not see ...@@ -56,11 +56,11 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("__hpux__"); \ builtin_define ("__hpux__"); \
builtin_define ("__unix"); \ builtin_define ("__unix"); \
builtin_define ("__unix__"); \ builtin_define ("__unix__"); \
builtin_define ("__STDC_EXT__"); \
if (c_dialect_cxx ()) \ if (c_dialect_cxx ()) \
{ \ { \
builtin_define ("_HPUX_SOURCE"); \ builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_INCLUDE_LONGLONG"); \ builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDC_EXT__"); \
} \ } \
else if (!flag_iso) \ else if (!flag_iso) \
{ \ { \
...@@ -76,8 +76,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -76,8 +76,6 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("_PWB"); \ builtin_define ("_PWB"); \
builtin_define ("PWB"); \ builtin_define ("PWB"); \
} \ } \
else \
builtin_define ("__STDC_EXT__"); \
} \ } \
if (TARGET_SIO) \ if (TARGET_SIO) \
builtin_define ("_SIO"); \ builtin_define ("_SIO"); \
......
...@@ -38,11 +38,11 @@ along with GCC; see the file COPYING3. If not see ...@@ -38,11 +38,11 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("__hpux__"); \ builtin_define ("__hpux__"); \
builtin_define ("__unix"); \ builtin_define ("__unix"); \
builtin_define ("__unix__"); \ builtin_define ("__unix__"); \
builtin_define ("__STDC_EXT__"); \
if (c_dialect_cxx ()) \ if (c_dialect_cxx ()) \
{ \ { \
builtin_define ("_HPUX_SOURCE"); \ builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_INCLUDE_LONGLONG"); \ builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDC_EXT__"); \
builtin_define ("__STDCPP__"); \ builtin_define ("__STDCPP__"); \
} \ } \
else if (!flag_iso) \ else if (!flag_iso) \
...@@ -58,8 +58,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -58,8 +58,6 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("_PWB"); \ builtin_define ("_PWB"); \
builtin_define ("PWB"); \ builtin_define ("PWB"); \
} \ } \
else \
builtin_define ("__STDC_EXT__"); \
} \ } \
if (flag_pa_unix >= 1995) \ if (flag_pa_unix >= 1995) \
{ \ { \
......
...@@ -37,11 +37,11 @@ along with GCC; see the file COPYING3. If not see ...@@ -37,11 +37,11 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("__hpux__"); \ builtin_define ("__hpux__"); \
builtin_define ("__unix"); \ builtin_define ("__unix"); \
builtin_define ("__unix__"); \ builtin_define ("__unix__"); \
builtin_define ("__STDC_EXT__"); \
if (c_dialect_cxx ()) \ if (c_dialect_cxx ()) \
{ \ { \
builtin_define ("_HPUX_SOURCE"); \ builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_INCLUDE_LONGLONG"); \ builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDC_EXT__"); \
builtin_define ("__STDCPP__"); \ builtin_define ("__STDCPP__"); \
} \ } \
else \ else \
...@@ -59,8 +59,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -59,8 +59,6 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("_PWB"); \ builtin_define ("_PWB"); \
builtin_define ("PWB"); \ builtin_define ("PWB"); \
} \ } \
else \
builtin_define ("__STDC_EXT__"); \
} \ } \
} \ } \
if (!TARGET_64BIT) \ if (!TARGET_64BIT) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment