[Gmp-commit] /var/hg/gmp: Make long long reliability tests tolerable for stri...
mercurial at gmplib.org
mercurial at gmplib.org
Mon Mar 31 20:20:21 UTC 2014
details: /var/hg/gmp/rev/c0353313902c
changeset: 16363:c0353313902c
user: Marc Glisse <marc.glisse at inria.fr>
date: Mon Mar 31 22:20:18 2014 +0200
description:
Make long long reliability tests tolerable for stricter compilers.
diffstat:
ChangeLog | 1 +
acinclude.m4 | 10 ++++++----
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 38068aa8e307 -r c0353313902c ChangeLog
--- a/ChangeLog Mon Mar 31 19:11:26 2014 +0200
+++ b/ChangeLog Mon Mar 31 22:20:18 2014 +0200
@@ -1,6 +1,7 @@
2014-03-31 Marc Glisse <marc.glisse at inria.fr>
* mpn/arm/dive_1.asm, mpn/arm/invert_limb.asm: Use RODATA.
+ * acinclude.m4 ([long long reliability tests]): Declare functions.
2014-03-30 Marc Glisse <marc.glisse at inria.fr>
diff -r 38068aa8e307 -r c0353313902c acinclude.m4
--- a/acinclude.m4 Mon Mar 31 19:11:26 2014 +0200
+++ b/acinclude.m4 Mon Mar 31 22:20:18 2014 +0200
@@ -609,11 +609,12 @@
#if defined (__GNUC__) && ! defined (__cplusplus)
typedef unsigned long long t1;typedef t1*t2;
+void g(){}
+void h(){}
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;
+void 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();}}
-h(){}g(){}
#else
int dummy;
#endif
@@ -625,8 +626,9 @@
1666 to get an ICE with -O1 -mpowerpc64. */
#if defined (__GNUC__) && ! defined (__cplusplus)
-f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
-g(){}
+int g();
+void f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
+int g(){return 0;}
#else
int dummy;
#endif
More information about the gmp-commit
mailing list