[Gmp-commit] /var/hg/gmp: Let recent g++ use gnu_inline.
mercurial at gmplib.org
mercurial at gmplib.org
Sun May 1 15:19:21 CEST 2011
details: /var/hg/gmp/rev/ffa75fd50f3d
changeset: 14151:ffa75fd50f3d
user: Marc Glisse <marc.glisse at inria.fr>
date: Sun May 01 15:19:10 2011 +0200
description:
Let recent g++ use gnu_inline.
diffstat:
ChangeLog | 2 ++
gmp-h.in | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 5b2f9440c608 -r ffa75fd50f3d ChangeLog
--- a/ChangeLog Sun May 01 12:05:06 2011 +0200
+++ b/ChangeLog Sun May 01 15:19:10 2011 +0200
@@ -14,6 +14,8 @@
* doc/gmp.texi (mpf_urandomb): Explicit the fact that it does not
change the precision.
+ * gmp-h.in (__GMP_EXTERN_INLINE): Recent g++ uses gnu_inline.
+
2011-04-28 Torbjorn Granlund <tege at gmplib.org>
* configure.in (x86_64): Support bobcat specifically.
diff -r 5b2f9440c608 -r ffa75fd50f3d gmp-h.in
--- a/gmp-h.in Sun May 01 12:05:06 2011 +0200
+++ b/gmp-h.in Sun May 01 15:19:10 2011 +0200
@@ -421,7 +421,8 @@
GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
inline semantics, unless -fgnu89-inline is used. */
#ifdef __GNUC__
-#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2)
+#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \
+ || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
#else
#define __GMP_EXTERN_INLINE extern __inline__
More information about the gmp-commit
mailing list