diff options
author | Richard Sandiford <r.sandiford@uk.ibm.com> | 2014-05-17 08:30:14 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-05-17 08:30:14 +0000 |
commit | 60f82c425b994cd76bb3fe664698a7b527955072 (patch) | |
tree | 31d1caa330113edbe72a249e00dfd6c42f22044f /gcc/wide-int.cc | |
parent | 220f44b77e74928ad57a9aa5ff264afee59bb16e (diff) | |
download | gcc-60f82c425b994cd76bb3fe664698a7b527955072.zip gcc-60f82c425b994cd76bb3fe664698a7b527955072.tar.gz gcc-60f82c425b994cd76bb3fe664698a7b527955072.tar.bz2 |
wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or __SIZEOF_INT128__ is defined.
gcc/
* wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
__SIZEOF_INT128__ is defined.
From-SVN: r210546
Diffstat (limited to 'gcc/wide-int.cc')
-rw-r--r-- | gcc/wide-int.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/wide-int.cc b/gcc/wide-int.cc index 69a15bc..3bfae2c 100644 --- a/gcc/wide-int.cc +++ b/gcc/wide-int.cc @@ -27,13 +27,18 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "dumpfile.h" -#if GCC_VERSION >= 3000 #define W_TYPE_SIZE HOST_BITS_PER_WIDE_INT +#if GCC_VERSION >= 3000 && (W_TYPE_SIZE == 32 || defined (__SIZEOF_INT128__)) typedef unsigned HOST_HALF_WIDE_INT UHWtype; typedef unsigned HOST_WIDE_INT UWtype; typedef unsigned int UQItype __attribute__ ((mode (QI))); typedef unsigned int USItype __attribute__ ((mode (SI))); typedef unsigned int UDItype __attribute__ ((mode (DI))); +#if W_TYPE_SIZE == 32 +typedef unsigned int UDWtype __attribute__ ((mode (DI))); +#else +typedef unsigned int UDWtype __attribute__ ((mode (TI))); +#endif #include "longlong.h" #endif |