Ticket #12830: ecm-6.3.p6-p7.diff

File ecm-6.3.p6-p7.diff, 1.7 KB (added by leif, 3 years ago)

Diff between my p6 and p7 spkgs. For reference / review only.

  • .hgtags

    diff --git a/.hgtags b/.hgtags
    a b  
    3362e5a142f7157c6dfa8ab59fc9228208326507ad ecm-6.3.p4 
    4414c0237361c1ffefdcece11d745f3381ec009a46 ecm-6.3.p5 
    557ac46fc5997fb25668f35b8571f48af69f5859f4 ecm-6.3.p6 
     67fca381ce4ac6348621631152378799293833b61 ecm-6.3.p7 
  • SPKG.txt

    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    8383 
    8484== Changelog == 
    8585 
     86=== ecm-6.3.p7 (Leif Leonhardy, April 19th 2012) === 
     87 * #12830: Add `-m[no-]power*` to the processor-specific options recognized; 
     88   these are used to enable/disable specific instruction set extensions of the 
     89   POWER and PowerPC (PPC) CPUs.  
     90 
    8691=== ecm-6.3.p6 (Leif Leonhardy, April 16th 2012) === 
    8792 * #12830: Add a work-around for GCC 4.7.x on ia64 (Itanium), since GMP-ECM 
    8893   currently won't build with that and anything but `-O0` on that platform. 
  • spkg-install

    diff --git a/spkg-install b/spkg-install
    a b  
    181181        # 'native' not supported, see if GMP / MPIR provides us some CPU type: 
    182182        for opt in $gmp_cflags; do 
    183183            case $opt in 
    184                 -march=*|-mcpu=*|-mtune*) 
     184                -march=*|-mcpu=*|-mtune=*|-mpower*|-mno-power*) 
    185185                    echo "Found CPU parameter in gmp.h: $opt" 
    186186                    cpu_params="$cpu_params $opt" 
    187187                    ;; 
     
    193193    rm -f foo.* foo 
    194194    # Only add them if CFLAGS do not already contain similar: 
    195195    if [ -n "$cpu_params" ] && 
    196         ! (echo "$CFLAGS" | egrep -- '-march=|-mcpu=|-mtune=' >/dev/null); 
     196        ! (echo "$CFLAGS" | egrep -- '-march=|-mcpu=|-mtune=|-mpower|-mno-power' >/dev/null); 
    197197    then 
    198198        echo "Using additional host-specific CFLAGS: $cpu_params" 
    199199        CFLAGS="$cpu_params $CFLAGS"