summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-04-27 19:16:34 +0200
committerTorbjorn Granlund <tege@gmplib.org>2011-04-27 19:16:34 +0200
commit1829b11116c46ada7fbe582bd7ec692e15b35801 (patch)
treeb8da643657ff869b42c31a73e17e1d7fc433b30c /tune
parent8db078ef0f850d58df891bcaac001e276e38f9a2 (diff)
downloadgmp-1829b11116c46ada7fbe582bd7ec692e15b35801.tar.gz
(speed_cyclecounter): Always use PIC variant when compiled with Apple's GCC.
Diffstat (limited to 'tune')
-rw-r--r--tune/speed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tune/speed.h b/tune/speed.h
index 96bdbaaee..1ed35266a 100644
--- a/tune/speed.h
+++ b/tune/speed.h
@@ -384,7 +384,7 @@ void mftb_function __GMP_PROTO ((unsigned p[2]));
is used without a -DPIC to tell us about it. */
#if defined(__GNUC__) && ! defined (NO_ASM) \
&& (defined (__i386__) || defined (__i486__))
-#ifdef PIC
+#if defined (PIC) || defined (__APPLE_CC__)
#define speed_cyclecounter(p) \
do { \
int __speed_cyclecounter__save_ebx; \