r1308 - in trunk: . gmp

jim at linuxfromscratch.org jim at linuxfromscratch.org
Thu Dec 22 00:16:28 PST 2005


Author: jim
Date: 2005-12-22 01:16:28 -0700 (Thu, 22 Dec 2005)
New Revision: 1308

Added:
   trunk/gmp/gmp-4.1.4-gcc4-1.patch
   trunk/gmp/gmp-4.1.4-sparc64-1.patch
Modified:
   trunk/
Log:
 r1606 at server:  jim | 2005-12-22 00:14:44 -0800
 Added: gmp-4.1.4-gcc4-1.patch gmp-4.1.4-sparc64-1.patch



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1598
   + cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1606

Added: trunk/gmp/gmp-4.1.4-gcc4-1.patch
===================================================================
--- trunk/gmp/gmp-4.1.4-gcc4-1.patch	2005-12-21 13:10:11 UTC (rev 1307)
+++ trunk/gmp/gmp-4.1.4-gcc4-1.patch	2005-12-22 08:16:28 UTC (rev 1308)
@@ -0,0 +1,19 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2005-12-21
+Initial Package Version: 4.1.4
+Origin: Jim Gifford
+Upstream Status: Unknown
+Description: Fixes Issues with GCC 4.x
+ 
+diff -Naur gmp-4.1.4.orig/configure gmp-4.1.4/configure
+--- gmp-4.1.4.orig/configure	2004-09-21 13:06:47.000000000 +0000
++++ gmp-4.1.4/configure	2005-12-22 07:50:35.000000000 +0000
+@@ -2523,7 +2523,7 @@
+ 
+         SPEED_CYCLECOUNTER_OBJ=sparcv9.lo
+ 
+-        gcc_cflags="-g -O2 -Wa,-xarch=v8plus"
++        gcc_cflags="-g -O2"
+         gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9 -mcpu=v8 -mv8"
+ 
+         # must have -xarch=v8plus here, to get the right assembler options

Added: trunk/gmp/gmp-4.1.4-sparc64-1.patch
===================================================================
--- trunk/gmp/gmp-4.1.4-sparc64-1.patch	2005-12-21 13:10:11 UTC (rev 1307)
+++ trunk/gmp/gmp-4.1.4-sparc64-1.patch	2005-12-22 08:16:28 UTC (rev 1308)
@@ -0,0 +1,62 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2005-12-21
+Initial Package Version: 4.1.4
+Origin: Jim Gifford/AuroraLinux
+Upstream Status: Unknown
+Description: Makes GMP work under Sparc64
+ 
+diff -Naur gmp-4.1.4.orig/configure gmp-4.1.4/configure
+--- gmp-4.1.4.orig/configure	2004-09-21 13:06:47.000000000 +0000
++++ gmp-4.1.4/configure	2005-12-22 07:52:44.000000000 +0000
+@@ -2518,44 +2518,13 @@
+       # even though the chip is v9.
+       #
+       sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
+-        path="sparc32/v9 sparc32/v8 sparc32"
+-        extra_functions="udiv_fp"
+-
+-        SPEED_CYCLECOUNTER_OBJ=sparcv9.lo
+-
+-        gcc_cflags="-g -O2 -Wa,-xarch=v8plus"
+-        gcc_cflags_cpu="-mcpu=ultrasparc -mcpu=v9 -mcpu=v8 -mv8"
+-
+-        # must have -xarch=v8plus here, to get the right assembler options
+-        # for our mpn/sparc32/v9 code
+-        cc_cflags="-xtarget=native -xarch=v8plus -xO4"
+-
+-        case $host in
+-          *-*-solaris2.[7-9])
+-            # solaris prior to 2.6 doesn't save registers properly, so the
+-            # 64-bit ABI is only available for 2.7 up
+-            abilist="64 32"
+-            path_64="sparc64"
+-            cclist_64="gcc cc"
+-            gcc_64_cflags="-g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9"
+-            gcc_64_ldflags="-Wc,-m64"
+-	    # -fast enables different optimizations depending compiler version
+-	    # -fns=no and -fsimple=1 disables some transformations that
+-	    # conflict with IEEE 754, which some compiler versions perform.
+-            cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9"
+-            SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
+-            cyclecounter_size_64=2
+-            ;;
+-          *-*-*bsd*)
+-            # NetBSD and OpenBSD sparc64
+-            abilist="64"
+-            extra_functions=
+-            path="sparc64"
+-            gcc_cflags="-g -O2"
+-            cyclecounter_size=2
+-            ;;
+-        esac
+-      ;;
++        # Linux sparc64
++        abilist="64"
++        extra_functions=
++        path="sparc64"
++        gcc_cflags="-g -O2"
++        cyclecounter_size=2
++        ;;
+     esac
+     ;;
+ 




More information about the patches mailing list