[Gmp-commit] /home/hgfiles/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Dec 3 22:50:48 CET 2009


details:   /home/hgfiles/gmp/rev/32e0a265aac3
changeset: 12974:32e0a265aac3
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Dec 03 21:51:53 2009 +0100
description:
Add a "static" for C99 inline semantics compatibility.

details:   /home/hgfiles/gmp/rev/a60282a2d7c3
changeset: 12975:a60282a2d7c3
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Dec 03 22:50:45 2009 +0100
description:
Move intptr_t test into common AC_CHECK_TYPES.

diffstat:

 ChangeLog    |  5 +++++
 acinclude.m4 |  2 +-
 configure.in |  4 ++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 03cf49081a7b -r a60282a2d7c3 ChangeLog
--- a/ChangeLog	Thu Dec 03 21:17:10 2009 +0100
+++ b/ChangeLog	Thu Dec 03 22:50:45 2009 +0100
@@ -1,5 +1,10 @@
 2009-12-03  Torbjorn Granlund  <tege at gmplib.org>
 
+	* configure.in: Move intptr_t test into common AC_CHECK_TYPES.
+
+	* acinclude.m4 ([long long reliability test 1]): Add a "static" for C99
+	inline semantics compatibility.
+
 	* mpn/generic/gcdext.c: Add a TMP_FREE.
 
 2009-12-03  Niels Möller  <nisse at lysator.liu.se>
diff -r 03cf49081a7b -r a60282a2d7c3 acinclude.m4
--- a/acinclude.m4	Thu Dec 03 21:17:10 2009 +0100
+++ b/acinclude.m4	Thu Dec 03 22:50:45 2009 +0100
@@ -591,7 +591,7 @@
 
 #if defined (__GNUC__) && ! defined (__cplusplus)
 typedef unsigned long long t1;typedef t1*t2;
-__inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
+static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
diff -r 03cf49081a7b -r a60282a2d7c3 configure.in
--- a/configure.in	Thu Dec 03 21:17:10 2009 +0100
+++ b/configure.in	Thu Dec 03 22:50:45 2009 +0100
@@ -2336,7 +2336,8 @@
 #
 # the default includes are sufficient for all these types
 #
-AC_CHECK_TYPES([intmax_t, long double, long long, ptrdiff_t, quad_t, uint_least32_t])
+AC_CHECK_TYPES([intmax_t, long double, long long, ptrdiff_t, quad_t,
+		uint_least32_t, intptr_t])
 
 AC_C_STRINGIZE
 
@@ -3177,7 +3178,6 @@
 # of any sensible system.  In a generic C build, grepping LONG_BIT out of
 # <limits.h> might be an alternative, for maximum portability.
 #
-AC_CHECK_TYPES(intptr_t)
 AC_CHECK_SIZEOF(void *)
 AC_CHECK_SIZEOF(unsigned short)
 AC_CHECK_SIZEOF(unsigned)


More information about the gmp-commit mailing list