diff options
author | Krister Walfridsson <krister.walfridsson@gmail.com> | 2017-09-30 20:45:59 +0000 |
---|---|---|
committer | Krister Walfridsson <kristerw@gcc.gnu.org> | 2017-09-30 20:45:59 +0000 |
commit | dfe2677b2732a912adafd5afe5981dd52e24b05a (patch) | |
tree | fd840e06d11add91d8797b385d3fca1934d69d5b /gcc/config | |
parent | ae3f9c32ae1f80e52318318fd749c0237c19e4e8 (diff) | |
download | gcc-dfe2677b2732a912adafd5afe5981dd52e24b05a.zip gcc-dfe2677b2732a912adafd5afe5981dd52e24b05a.tar.gz gcc-dfe2677b2732a912adafd5afe5981dd52e24b05a.tar.bz2 |
config.gcc (*-*-netbsd*): New variable nbsd_tm_file containing netbsd.h, netbsd-stdint.h, and netbsd-elf.h.
2017-09-30 Krister Walfridsson <krister.walfridsson@gmail.com>
Maya Rashish <coypu@sdf.org>
* 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 <coypu@sdf.org>
From-SVN: r253323
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/netbsd-stdint.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 |