wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or __SIZEOF_INT128__ is defined.
authorRichard Sandiford <r.sandiford@uk.ibm.com>
Sat, 17 May 2014 08:30:14 +0000 (08:30 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 17 May 2014 08:30:14 +0000 (08:30 +0000)
gcc/
* wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
__SIZEOF_INT128__ is defined.

From-SVN: r210546

gcc/ChangeLog
gcc/wide-int.cc

index 79ab247..2eff66e 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+       * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
+       __SIZEOF_INT128__ is defined.
+
 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
index 69a15bc..3bfae2c 100644 (file)
@@ -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