aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2014-05-28 15:17:29 +0000
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2014-05-28 15:17:29 +0000
commitb19efdc6ea0ae21b70f94bb05a888c26a24b6402 (patch)
treecfbaa267a6019b13eb4af311c22a76793d4a302e
parent253686af40fd55d0d190b8959b21997b0fc30558 (diff)
PR bootstrap/PR61146
* wide-int.cc: Do not include longlong.h when compiling with clang. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@211023 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/wide-int.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 42aade9555c..76f2f9c61a1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/wide-int.cc b/gcc/wide-int.cc
index 0d26edb245f..ed7f01bd19e 100644
--- a/gcc/wide-int.cc
+++ b/gcc/wide-int.cc
@@ -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)));