From 1859e37fd53a9e3f55d26579a9a18b7f4d7d8ed8 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sat, 21 Jul 2012 13:04:35 +0200 Subject: Disable __builtin_constant_p for g++34. --- gmpxx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gmpxx.h') diff --git a/gmpxx.h b/gmpxx.h index 4f0171044..97c5e1907 100644 --- a/gmpxx.h +++ b/gmpxx.h @@ -32,7 +32,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #include // wrapper for gcc's __builtin_constant_p -#if defined (__GNUC__) && __GNUC__ >= 2 +// __builtin_constant_p has been in gcc since forever, +// but g++-3.4 miscompiles it. +#if __GMP_GNUC_PREREQ(4, 2) #define __GMPXX_CONSTANT(X) __builtin_constant_p(X) #else #define __GMPXX_CONSTANT(X) false -- cgit v1.2.1