[Gmp-commit] /home/hgfiles/gmp-5.0: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Thu Feb 25 12:47:21 CET 2010
details: /home/hgfiles/gmp-5.0/rev/211ff96b2dc1
changeset: 13427:211ff96b2dc1
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Feb 25 12:26:07 2010 +0100
description:
Fix support of the.0n ABI.
details: /home/hgfiles/gmp-5.0/rev/4e691dbe6cd7
changeset: 13428:4e691dbe6cd7
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Feb 25 12:45:45 2010 +0100
description:
Cast switch indices to placate HP's cc.
diffstat:
ChangeLog | 7 +++++++
mpn/pa64/aors_n.asm | 11 ++++++++---
tests/mpn/t-bdiv.c | 2 +-
tests/mpn/t-div.c | 2 +-
4 files changed, 17 insertions(+), 5 deletions(-)
diffs (65 lines):
diff -r dff71729341d -r 4e691dbe6cd7 ChangeLog
--- a/ChangeLog Tue Feb 23 22:28:22 2010 +0100
+++ b/ChangeLog Thu Feb 25 12:45:45 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-23 Torbjorn Granlund <tege at gmplib.org>
* mpn/generic/mod_1_3.c: Cast a switch index.
diff -r dff71729341d -r 4e691dbe6cd7 mpn/pa64/aors_n.asm
--- a/mpn/pa64/aors_n.asm Tue Feb 23 22:28:22 2010 +0100
+++ b/mpn/pa64/aors_n.asm Thu Feb 25 12:45:45 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 dff71729341d -r 4e691dbe6cd7 tests/mpn/t-bdiv.c
--- a/tests/mpn/t-bdiv.c Tue Feb 23 22:28:22 2010 +0100
+++ b/tests/mpn/t-bdiv.c Thu Feb 25 12:45:45 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 dff71729341d -r 4e691dbe6cd7 tests/mpn/t-div.c
--- a/tests/mpn/t-div.c Tue Feb 23 22:28:22 2010 +0100
+++ b/tests/mpn/t-div.c Thu Feb 25 12:45:45 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