summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-10-23 01:50:09 +0200
committerKevin Ryde <user42@zip.com.au>2002-10-23 01:50:09 +0200
commita775849a2070df3196f186b38c3defef2b37de8e (patch)
tree2c731c9c69b5b667fc4ac97c0fe9827079145a1e /gmp-impl.h
parentc7a8aaad720d6906143b946df2ed4600148c42ce (diff)
downloadgmp-a775849a2070df3196f186b38c3defef2b37de8e.tar.gz
* gmp-h.in (__GMP_ATTRIBUTE_PURE): Suppress this when
__GMP_NO_ATTRIBUTE_CONST_PURE is defined. * gmp-impl.h (ATTRIBUTE_CONST): Ditto.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h5
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