Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs
In directory vz-cvs-3.sog:/tmp/cvs-serv15841/libs

Modified Files:
        gmp5.info gmp5.patch 
Log Message:
gmp5: upstream patch for some powerpc asm, fixes tpow tests for libmpc2,3


Index: gmp5.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/gmp5.info,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- gmp5.info   4 Jun 2012 20:30:15 -0000       1.7
+++ gmp5.info   31 Jul 2012 00:25:51 -0000      1.8
@@ -1,16 +1,16 @@
 Info4: <<
 Package: gmp5%type_pkg[-64bit]
 Version: 5.0.5
-Revision: 1
+Revision: 3
 GCC: 4.0
 Type: -64bit (boolean)
 Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = 
-64bit ) i386
 Source: mirror:gnu:gmp/gmp-%v.tar.bz2
 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
+# Source2: http://www.csl.cornell.edu/~fang/sw/gmp-trunk-20110131-config.guess
+# Source2-MD5: d526c73bbb512808aa4e871937dd6fa4
+PatchFile: %{ni}.patch
+PatchFile-MD5: 32ad9f91ac27a8a53deea57306555428
 Depends: <<
   %N-shlibs (= %v-%r),
   libgmpxx5%type_pkg[-64bit]-shlibs (= %v-%r),
@@ -31,11 +31,11 @@
 <<
 PatchScript: <<
   #!/bin/sh -ev
-  # %{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
-  chmod +x ./config.guess
+  %{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
+  # chmod +x ./config.guess
   sed -i.orig -e 's|-Wa,-maltivec|-maltivec|g' configure
 <<
 UseMaxBuildJobs: true
@@ -100,7 +100,7 @@
     %p/%lib/gmp5/libgmp.10.dylib 11.0.0 %n (>= 5.0.1-2) %type_num[-64bit]
   <<
   Description: Shared library for gmp package
-  DocFiles: doc/* AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README
+  DocFiles: doc/*.html doc/isa_abi* AUTHORS COPYING COPYING.LIB ChangeLog 
INSTALL NEWS README
 <<
 SplitOff2: <<
   Package: libgmpxx5%type_pkg[-64bit]-shlibs
@@ -110,7 +110,7 @@
     %p/%lib/gmp5/libgmpxx.4.dylib 7.0.0 %n (>= 5.0.1-2) %type_num[-64bit]
   <<
   Description: Shared C++ library for gmp package
-  DocFiles: doc/* AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README
+  DocFiles: doc/*.html doc/isa_abi* AUTHORS COPYING COPYING.LIB ChangeLog 
INSTALL NEWS README
 <<
 License: LGPL
 Description: GNU multiple precision arithmetic library
@@ -133,6 +133,8 @@
 DescPort: <<
  gmp5-5.0.2-2: includes patch for low probability division bug in
        mpn/generic/dcpi1_bdiv_q.c
+ gmp5-5.0.5-3: includes patch for powerpc-asm
+       http://gmplib.org/list-archives/gmp-bugs/2012-July/002731.html
 
  Older notes:
 

Index: gmp5.patch
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/gmp5.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- gmp5.patch  8 Oct 2011 00:04:19 -0000       1.1
+++ gmp5.patch  31 Jul 2012 00:25:51 -0000      1.2
@@ -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-06  Torbjorn Granlund  <[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
+       * Version 5.0.5 released.
+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