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
This commit is contained in:
parent
62e66577b2
commit
9a17c91def
@ -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.
|
||||
|
@ -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"
|
||||
|
34
gcc/config/hpux-stdint.h
Normal file
34
gcc/config/hpux-stdint.h
Normal file
@ -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"
|
@ -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"); \
|
||||
} \
|
||||
|
@ -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"); \
|
||||
|
@ -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) \
|
||||
{ \
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user