2011-09-20 08:18:47 +00:00
|
|
|
diff -up gmp-5.0.2/configure.in.tmp gmp-5.0.2/configure.in
|
|
|
|
--- gmp-5.0.2/configure.in.tmp 2011-05-08 11:49:29.000000000 +0200
|
|
|
|
+++ gmp-5.0.2/configure.in 2011-08-15 14:34:22.543596916 +0200
|
|
|
|
@@ -1109,6 +1109,10 @@ case $host in
|
|
|
|
path="pyr"
|
2010-11-24 13:41:26 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
+ s390x-*-*)
|
|
|
|
+ gcc_cflags="-g -O2 $fomit_frame_pointer"
|
|
|
|
+ path="s390x"
|
|
|
|
+ ;;
|
2011-09-20 08:18:47 +00:00
|
|
|
|
2010-11-24 13:41:26 +00:00
|
|
|
# IBM s/370 and similar
|
|
|
|
[s3[6-9]0*-*-*])
|
2011-09-20 08:18:47 +00:00
|
|
|
diff -up gmp-5.0.2/mpn/s390/gmp-mparam.h.tmp gmp-5.0.2/mpn/s390/gmp-mparam.h
|
|
|
|
--- gmp-5.0.2/mpn/s390/gmp-mparam.h.tmp 2011-08-15 14:37:48.000000000 +0200
|
|
|
|
+++ gmp-5.0.2/mpn/s390/gmp-mparam.h 2011-08-15 14:38:22.884229091 +0200
|
2010-11-24 13:41:26 +00:00
|
|
|
@@ -18,7 +18,8 @@ You should have received a copy of the G
|
|
|
|
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|
|
|
|
|
|
|
|
2011-09-20 08:18:47 +00:00
|
|
|
-/* GMP_LIMB_BITS etc generated by configure */
|
2010-11-24 13:41:26 +00:00
|
|
|
+#define BITS_PER_MP_LIMB 32
|
|
|
|
+#define BYTES_PER_MP_LIMB 4
|
|
|
|
|
|
|
|
|
|
|
|
/* Generated by tuneup.c, 2001-12-03, gcc 2.95 */
|
|
|
|
diff -up /dev/null gmp-4.3.1/mpn/s390x/gmp-mparam.h
|
|
|
|
--- /dev/null 2009-05-25 10:38:12.683001420 +0200
|
|
|
|
+++ gmp-4.3.1/mpn/s390x/gmp-mparam.h 2009-05-28 14:59:54.000000000 +0200
|
2011-09-20 08:18:47 +00:00
|
|
|
@@ -0,0 +1,26 @@
|
2010-11-24 13:41:26 +00:00
|
|
|
+/* gmp-mparam.h -- Compiler/machine parameter header file.
|
|
|
|
+
|
2011-09-20 08:18:47 +00:00
|
|
|
+Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
|
|
|
|
+2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
2010-11-24 13:41:26 +00:00
|
|
|
+
|
|
|
|
+This file is part of the GNU MP Library.
|
|
|
|
+
|
|
|
|
+The GNU MP Library is free software; you can redistribute it and/or modify
|
2011-09-20 08:18:47 +00:00
|
|
|
+it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
+the Free Software Foundation; either version 3 of the License, or (at your
|
2010-11-24 13:41:26 +00:00
|
|
|
+option) any later version.
|
|
|
|
+
|
|
|
|
+The GNU MP Library is distributed in the hope that it will be useful, but
|
|
|
|
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
2011-09-20 08:18:47 +00:00
|
|
|
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
2010-11-24 13:41:26 +00:00
|
|
|
+License for more details.
|
|
|
|
+
|
2011-09-20 08:18:47 +00:00
|
|
|
+You should have received a copy of the GNU Lesser General Public License
|
|
|
|
+along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
2010-11-24 13:41:26 +00:00
|
|
|
+
|
|
|
|
+#define BITS_PER_MP_LIMB 64
|
|
|
|
+#define BYTES_PER_MP_LIMB 8
|
|
|
|
+#define BITS_PER_LONGINT 64
|
|
|
|
+#define BITS_PER_INT 32
|
|
|
|
+#define BITS_PER_SHORTINT 16
|
|
|
|
+#define BITS_PER_CHAR 8
|