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

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 25 12:47:17 CET 2010


details:   /home/hgfiles/gmp/rev/2131d8f7841c
changeset: 13438:2131d8f7841c
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 12:26:14 2010 +0100
description:
Fix support of the.0n ABI.

details:   /home/hgfiles/gmp/rev/89139223d01d
changeset: 13439:89139223d01d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 25 12:45:34 2010 +0100
description:
Cast switch indices to placate HP's cc.

diffstat:

 ChangeLog           |   9 ++++++++-
 mpn/pa64/aors_n.asm |  11 ++++++++---
 tests/mpn/t-bdiv.c  |   2 +-
 tests/mpn/t-div.c   |   2 +-
 4 files changed, 18 insertions(+), 6 deletions(-)

diffs (74 lines):

diff -r 4e0582c906f9 -r 89139223d01d ChangeLog
--- a/ChangeLog	Wed Feb 24 18:36:16 2010 +0100
+++ b/ChangeLog	Thu Feb 25 12:45:34 2010 +0100
@@ -1,3 +1,10 @@
+2010-02-25  Torbjorn Granlund  <tege at gmplib.org>
+
+	* tests/mpn/t-div.c: Cast a switch index to placate HP's cc.
+	* tests/mpn/t-bdiv.c: Likewise.
+
+	* mpn/pa64/aors_n.asm: Fix support of the.0n ABI.
+
 2010-02-24 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* tests/mpz/t-bin.c (data): Replace (2k,k), tested by twos ().
@@ -5,7 +12,7 @@
 
 2010-02-23  Torbjorn Granlund  <tege at gmplib.org>
 
-	* mpn/generic/mod_1_3.c: Cast a switch index.
+	* mpn/generic/mod_1_3.c: Cast a switch index to placate HP's cc.
 
 	* mpn/generic/sqrtrem.c: Use CNST_LIMB.
 
diff -r 4e0582c906f9 -r 89139223d01d mpn/pa64/aors_n.asm
--- a/mpn/pa64/aors_n.asm	Wed Feb 24 18:36:16 2010 +0100
+++ b/mpn/pa64/aors_n.asm	Thu Feb 25 12:45:34 2010 +0100
@@ -1,6 +1,7 @@
 dnl  HP-PA 2.0 mpn_add_n, mpn_sub_n
 
-dnl  Copyright 1997, 2000, 2002, 2003, 2009 Free Software Foundation, Inc.
+dnl  Copyright 1997, 2000, 2002, 2003, 2009, 2010 Free Software Foundation,
+dnl  Inc.
 
 dnl  This file is part of the GNU MP Library.
 
@@ -49,8 +50,12 @@
 ',`     .level  2.0
 ')
 PROLOGUE(func_nc)
-	b	L(com)
-	nop
+ifdef(`HAVE_ABI_2_0w',
+`	b		L(com)
+	ldi		0, %r22
+',`	b		L(com)
+	ldw		-52(%r30), %r22
+')
 EPILOGUE()
 PROLOGUE(func)
 	ldi		0, %r22
diff -r 4e0582c906f9 -r 89139223d01d tests/mpn/t-bdiv.c
--- a/tests/mpn/t-bdiv.c	Wed Feb 24 18:36:16 2010 +0100
+++ b/tests/mpn/t-bdiv.c	Thu Feb 25 12:45:34 2010 +0100
@@ -218,7 +218,7 @@
       if (t % 17 == 0)
 	dp[0] = GMP_NUMB_MAX;
 
-      switch (t % 16)
+      switch ((int) t % 16)
 	{
 	case 0:
 	  clearn = random_word (rands) % nn;
diff -r 4e0582c906f9 -r 89139223d01d tests/mpn/t-div.c
--- a/tests/mpn/t-div.c	Wed Feb 24 18:36:16 2010 +0100
+++ b/tests/mpn/t-div.c	Thu Feb 25 12:45:34 2010 +0100
@@ -241,7 +241,7 @@
       if (t % 17 == 0)
 	dp[dn - 1] = GMP_NUMB_MAX;
 
-      switch (t % 16)
+      switch ((int) t % 16)
 	{
 	case 0:
 	  clearn = random_word (rands) % nn;


More information about the gmp-commit mailing list