diff options
-rw-r--r-- | gmp-impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index f8e3da73e..9a2918985 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -127,8 +127,9 @@ MA 02111-1307, USA. */ and give a return value, it doesn't read or write any memory (neither global nor pointed to by arguments), and has no other side-effects. This is more restrictive than "pure". See info node "(gcc)Function - Attributes". */ -#if HAVE_ATTRIBUTE_CONST + Attributes". __GMP_NO_ATTRIBUTE_CONST_PURE lets tune/common.c etc turn + this off when trying to write timing loops. */ +#if HAVE_ATTRIBUTE_CONST && ! defined (__GMP_NO_ATTRIBUTE_CONST_PURE) #define ATTRIBUTE_CONST __attribute__ ((const)) #else #define ATTRIBUTE_CONST |