diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2014-05-28 15:17:29 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2014-05-28 15:17:29 +0000 |
commit | ecc7533ad758552159107457ede65148c991159b (patch) | |
tree | cfbaa267a6019b13eb4af311c22a76793d4a302e /gcc | |
parent | 6e5799b9045f7a7588e3e2037a2acb67f0a168ec (diff) | |
download | gcc-ecc7533ad758552159107457ede65148c991159b.zip gcc-ecc7533ad758552159107457ede65148c991159b.tar.gz gcc-ecc7533ad758552159107457ede65148c991159b.tar.bz2 |
PR bootstrap/PR61146
PR bootstrap/PR61146
* wide-int.cc: Do not include longlong.h when compiling with clang.
From-SVN: r211023
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/wide-int.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 42aade9..76f2f9c 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 0d26edb..ed7f01b 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))); |