From dfe2677b2732a912adafd5afe5981dd52e24b05a Mon Sep 17 00:00:00 2001 From: Krister Walfridsson Date: Sat, 30 Sep 2017 20:45:59 +0000 Subject: config.gcc (*-*-netbsd*): New variable nbsd_tm_file containing netbsd.h, netbsd-stdint.h, and netbsd-elf.h. 2017-09-30 Krister Walfridsson Maya Rashish * config.gcc (*-*-netbsd*): New variable nbsd_tm_file containing netbsd.h, netbsd-stdint.h, and netbsd-elf.h. (alpha*-*-netbsd*) Use nbsd_tm_file. (arm*-*-netbsdelf*) Likewise. (i[34567]86-*-netbsdelf*) Likewise. (x86_64-*-netbsd*) Likewise. (mips*-*-netbsd*) Likewise. (powerpc-*-netbsd*) Likewise. (sh*-*-netbsd*) Likewise. (sparc-*-netbsdelf*) Likewise. (sparc64-*-netbsd*) Likewise. (m68k*-*-netbsdelf*) Use nbsd_tm_file and add CHAR_FAST8/SHORT_FAST16 to tm_defines. (vax-*-netbsdelf*) Likewise. * config/netbsd-stdint.h (INT_FAST8_TYPE): Check CHAR_FAST8. (UINT_FAST8_TYPE) Likewise. (INT_FAST16_TYPE) Check CHAR_FAST16. (UINT_FAST16_TYPE) Likewise. Co-Authored-By: Maya Rashish From-SVN: r253323 --- gcc/config/netbsd-stdint.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gcc/config') diff --git a/gcc/config/netbsd-stdint.h b/gcc/config/netbsd-stdint.h index 7a127c5..3d54669 100644 --- a/gcc/config/netbsd-stdint.h +++ b/gcc/config/netbsd-stdint.h @@ -42,12 +42,28 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define UINT_LEAST32_TYPE UINT32_TYPE #define UINT_LEAST64_TYPE UINT64_TYPE +#ifdef CHAR_FAST8 +#define INT_FAST8_TYPE (LONG_TYPE_SIZE == 64 ? "int" : "signed char") +#else #define INT_FAST8_TYPE INT32_TYPE +#endif +#ifdef SHORT_FAST16 +#define INT_FAST16_TYPE (LONG_TYPE_SIZE == 64 ? "int" : "short int") +#else #define INT_FAST16_TYPE INT32_TYPE +#endif #define INT_FAST32_TYPE INT32_TYPE #define INT_FAST64_TYPE INT64_TYPE +#ifdef CHAR_FAST8 +#define UINT_FAST8_TYPE "unsigned char" +#else #define UINT_FAST8_TYPE UINT32_TYPE +#endif +#ifdef SHORT_FAST16 +#define UINT_FAST16_TYPE "short unsigned int" +#else #define UINT_FAST16_TYPE UINT32_TYPE +#endif #define UINT_FAST32_TYPE UINT32_TYPE #define UINT_FAST64_TYPE UINT64_TYPE -- cgit v1.1