[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Wed Apr 27 19:17:06 CEST 2011


details:   /var/hg/gmp/rev/9ef2992e8b96
changeset: 14136:9ef2992e8b96
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Apr 27 19:16:34 2011 +0200
description:
(speed_cyclecounter): Always use PIC variant when compiled with Apple's GCC.

details:   /var/hg/gmp/rev/12325856c8ac
changeset: 14137:12325856c8ac
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Apr 27 19:16:59 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog    |  3 +++
 tune/speed.h |  2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r a7b0ebc4fe8b -r 12325856c8ac ChangeLog
--- a/ChangeLog	Wed Apr 27 18:43:37 2011 +0200
+++ b/ChangeLog	Wed Apr 27 19:16:59 2011 +0200
@@ -1,5 +1,8 @@
 2011-04-27  Torbjorn Granlund  <tege at gmplib.org>
 
+	* tune/speed.h (speed_cyclecounter): Always use PIC variant when
+	compiled with Apple's GCC.
+
 	* mpn/x86/darwin.m4 (LEA): Complete rewrite.
 	(m4append): New macro.
 
diff -r a7b0ebc4fe8b -r 12325856c8ac tune/speed.h
--- a/tune/speed.h	Wed Apr 27 18:43:37 2011 +0200
+++ b/tune/speed.h	Wed Apr 27 19:16:59 2011 +0200
@@ -384,7 +384,7 @@
    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;				\


More information about the gmp-commit mailing list