Update of /cvsroot/fink/experimental/fangism/finkinfo
In directory vz-cvs-3.sog:/tmp/cvs-serv7203

Modified Files:
        gmp5.info gmp5.patch 
Log Message:
testin upstream patch for powerpc-asm


Index: gmp5.info
===================================================================
RCS file: /cvsroot/fink/experimental/fangism/finkinfo/gmp5.info,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- gmp5.info   10 Jul 2012 21:40:03 -0000      1.23
+++ gmp5.info   30 Jul 2012 22:38:52 -0000      1.24
@@ -1,7 +1,7 @@
 Info4: <<
 Package: gmp5%type_pkg[-64bit]
 Version: 5.0.5
-Revision: 2
+Revision: 3
 GCC: 4.0
 Type: -64bit (boolean)
 Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = 
-64bit ) i386
@@ -9,8 +9,8 @@
 Source-MD5: 041487d25e9c230b0c42b106361055fe
 # Source2: http://www.csl.cornell.edu/~fang/sw/gmp-trunk-20110131-config.guess
 # Source2-MD5: d526c73bbb512808aa4e871937dd6fa4
-# PatchFile: %{ni}.patch
-# PatchFile-MD5: 5e2d7de9993a24aee6ad146b844fb6a3
+PatchFile: %{ni}.patch
+PatchFile-MD5: 9164502077cf44bd64c6656b7eabf9ca
 Depends: <<
   %N-shlibs (= %v-%r),
   libgmpxx5%type_pkg[-64bit]-shlibs (= %v-%r),
@@ -31,7 +31,7 @@
 <<
 PatchScript: <<
   #!/bin/sh -ev
-  # %{default_script}
+  %{default_script}
   # echo "replacing gmp's config.guess with newer one from trunk (patched)"
   # mv config.guess config.guess.orig
   # sed 's|corei[a-z]*|corei|g' ../gmp-trunk-*-config.guess > ./config.guess

Index: gmp5.patch
===================================================================
RCS file: /cvsroot/fink/experimental/fangism/finkinfo/gmp5.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gmp5.patch  22 Jul 2011 17:55:07 -0000      1.4
+++ gmp5.patch  30 Jul 2012 22:38:52 -0000      1.5
@@ -1,38 +1,79 @@
---- gmp-5.0.2/acinclude.m4.orig 2011-05-17 19:03:09.000000000 -0400
-+++ gmp-5.0.2/acinclude.m4      2011-05-17 19:03:43.000000000 -0400
-@@ -1941,8 +1941,8 @@
- esac
+diff -r 816c18dbd492 -r 829215e83ff1 ChangeLog
+--- a/ChangeLog        Tue Jun 19 15:02:48 2012 +0200
++++ b/ChangeLog        Sat Jul 21 19:19:11 2012 +0200
+@@ -1,3 +1,8 @@
++2012-07-21  Torbjorn Granlund  <[email protected]>
++
++      * mpn/powerpc32/vmx/mod_34lsub1.asm: Fix r0 clobbering issue with
++      "large" code affecting elf+darwin PIC.
++
+ 2012-05-27 Marco Bodrato <[email protected]>
  
- cat >conftest.c <<EOF
--extern const int foo[];               /* Suppresses C++'s suppression of foo 
*/
--const int foo[] = {1,2,3};
-+extern const int foo[[]];             /* Suppresses C++'s suppression of foo 
*/
-+const int foo[[]] = {1,2,3};
- EOF
- echo "Test program:" >&AC_FD_CC
- cat conftest.c >&AC_FD_CC
---- gmp-5.0.2/configure.orig    2011-05-17 19:15:41.000000000 -0400
-+++ gmp-5.0.2/configure 2011-05-17 19:16:00.000000000 -0400
-@@ -26446,8 +26446,8 @@
- esac
+       * mpn/x86_64/fat/fat.c: abort iff longmode-capable-bit is turned off.
+diff -r 816c18dbd492 -r 829215e83ff1 mpn/powerpc32/vmx/mod_34lsub1.asm
+--- a/mpn/powerpc32/vmx/mod_34lsub1.asm        Tue Jun 19 15:02:48 2012 +0200
++++ b/mpn/powerpc32/vmx/mod_34lsub1.asm        Sat Jul 21 19:19:11 2012 +0200
+@@ -1,6 +1,7 @@
+ dnl  PowerPC-32 mpn_mod_34lsub1 -- mpn remainder mod 2^24-1.
+ 
+-dnl  Copyright 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
++dnl  Copyright 2002, 2003, 2005, 2006, 2007, 2012 Free Software Foundation,
++dnl  Inc.
+ 
+ dnl  This file is part of the GNU MP Library.
+ 
+@@ -135,15 +136,15 @@
+ 
+       andi.   r7, up, 15
+       vxor    a0, v0, v0
+-      lis     r0, 0xaaaa
++      lis     r9, 0xaaaa
+       vxor    a1, v0, v0
+-      ori     r0, r0, 0xaaab
++      ori     r9, r9, 0xaaab
+       vxor    a2, v0, v0
+       li      r5, 16
+       vxor    c0, v0, v0
+       li      r6, 32
+       vxor    c1, v0, v0
+-      LEAL(   r11, cnsts)
++      LEAL(   r11, cnsts)             C CAUTION clobbers r0 for elf, darwin
+       vxor    c2, v0, v0
+       vxor    z, v0, v0
+ 
+@@ -158,7 +159,7 @@
+       vsldoi  a2, z, a2, 12
+ 
+       addi    n, n, 9
+-      mulhwu  r0, n, r0
++      mulhwu  r0, n, r9
+       srwi    r0, r0, 3               C r0 = floor(n/12)
+       mtctr   r0
+ 
+@@ -174,7 +175,7 @@
+       vsldoi  a1, z, a1, 8
+ 
+       addi    n, n, 6
+-      mulhwu  r0, n, r0
++      mulhwu  r0, n, r9
+       srwi    r0, r0, 3               C r0 = floor(n/12)
+       mtctr   r0
+ 
+@@ -188,7 +189,7 @@
+       vsldoi  a0, z, a0, 4
+ 
+       addi    n, n, 3
+-      mulhwu  r0, n, r0
++      mulhwu  r0, n, r9
+       srwi    r0, r0, 3               C r0 = floor(n/12)
+       mtctr   r0
+ 
+@@ -197,7 +198,7 @@
+       b       L(0)
+ 
+ L(aligned16):
+-      mulhwu  r0, n, r0
++      mulhwu  r0, n, r9
+       srwi    r0, r0, 3               C r0 = floor(n/12)
+       mtctr   r0
  
- cat >conftest.c <<EOF
--extern const int foo;         /* Suppresses C++'s suppression of foo */
--const int foo = {1,2,3};
-+extern const int foo[];       /* Suppresses C++'s suppression of foo */
-+const int foo[] = {1,2,3};
- EOF
- echo "Test program:" >&5
- cat conftest.c >&5
-diff -r 03ed209dd7ef -r 538dfce27f41 mpn/generic/dcpi1_bdiv_q.c
---- a/mpn/generic/dcpi1_bdiv_q.c       Thu Jun 16 12:22:24 2011 +0200
-+++ b/mpn/generic/dcpi1_bdiv_q.c       Fri Jul 15 13:43:41 2011 +0200
-@@ -130,7 +129,7 @@
-       qn = nn - qn;
-       while (qn > dn)
-       {
--        mpn_sub_1 (np + dn, np + dn, qn, cy);
-+        mpn_sub_1 (np + dn, np + dn, qn - dn, cy);
-         cy = mpn_dcpi1_bdiv_qr_n (qp, np, dp, dn, dinv, tp);
-         qp += dn;
-         np += dn;


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to