PR bootstrap/PR61146
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 28 May 2014 15:17:29 +0000 (15:17 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 28 May 2014 15:17:29 +0000 (15:17 +0000)
PR bootstrap/PR61146
* wide-int.cc: Do not include longlong.h when compiling with clang.

From-SVN: r211023

gcc/ChangeLog
gcc/wide-int.cc

index 42aade9555c326b1a18303a94fcf436b492cc64a..76f2f9c61a1af05e21e4dd40318ef3a4022e342b 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR bootstrap/PR61146
+       * wide-int.cc: Do not include longlong.h when compiling with clang.
+
 2014-05-28  Richard Biener  <rguenther@suse.de>
 
        * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
index 0d26edb245f29b0472962f59dc9e482907d41b1c..ed7f01bd19e9521e47f7f44c17018dfaff9cc3c7 100644 (file)
@@ -38,7 +38,8 @@ along with GCC; see the file COPYING3.  If not see
 #endif
 
 #define W_TYPE_SIZE HOST_BITS_PER_WIDE_INT
-#if GCC_VERSION >= 3000 && (W_TYPE_SIZE == 32 || defined (__SIZEOF_INT128__))
+/* Do not include longlong.h when compiler is clang-based. See PR61146.  */
+#if GCC_VERSION >= 3000 && (W_TYPE_SIZE == 32 || defined (__SIZEOF_INT128__)) && !defined(__clang__)
 typedef unsigned HOST_HALF_WIDE_INT UHWtype;
 typedef unsigned HOST_WIDE_INT UWtype;
 typedef unsigned int UQItype __attribute__ ((mode (QI)));