[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Jan 15 00:53:39 CET 2013


details:   /var/hg/gmp/rev/5f8a1e2eddce
changeset: 15274:5f8a1e2eddce
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 15 00:53:27 2013 +0100
description:
Add x32 ABI for x86_64.

details:   /var/hg/gmp/rev/9a20541945a3
changeset: 15275:9a20541945a3
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 15 00:53:34 2013 +0100
description:
ChangeLog

diffstat:

 ChangeLog    |   5 +++++
 configure.ac |  16 ++++++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 31aa081d3389 -r 9a20541945a3 ChangeLog
--- a/ChangeLog	Mon Jan 14 20:09:13 2013 +0100
+++ b/ChangeLog	Tue Jan 15 00:53:34 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-15  Torbjorn Granlund  <tege at gmplib.org>
+
+	From Mike Frysinger:
+	* configure.ac: Add x32 ABI for x86_64.
+
 2013-01-14  Niels Möller  <nisse at lysator.liu.se>
 
 	* mini-gmp/tests/t-str.c (main): Added tests for mpn_get_str and
diff -r 31aa081d3389 -r 9a20541945a3 configure.ac
--- a/configure.ac	Mon Jan 14 20:09:13 2013 +0100
+++ b/configure.ac	Tue Jan 15 00:53:34 2013 +0100
@@ -1668,9 +1668,21 @@
 	CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
 	SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
 	cyclecounter_size_64=2
-	abilist="64 32"
+
+	cclist_x32="gcc"
+	gcc_x32_cflags="$gcc_cflags -mx32"
+	gcc_x32_cflags_optlist="$gcc_64_cflags_optlist"
+	CALLING_CONVENTIONS_OBJS_x32="$CALLING_CONVENTIONS_OBJS_64"
+	SPEED_CYCLECOUNTER_OBJ_x32="$SPEED_CYCLECOUNTER_OBJ_64"
+	cyclecounter_size_x32="$cyclecounter_size_64"
+	path_x32="$path_64"
+	limb_x32=longlong
+	any_x32_testlist="sizeof-long-4"
+
+	abilist="64 x32 32"
 	if test "$enable_assembly" = "yes" ; then
 	    extra_functions_64="invert_limb_table"
+	    extra_functions_x32=$extra_functions_64
 	fi
 
 	case $host in
@@ -3427,7 +3439,7 @@
 	      GMP_INCLUDE_MPN(x86/darwin.m4) ;;
 	  esac
           ;;
-        64)
+        64|x32)
           GMP_INCLUDE_MPN(x86_64/x86_64-defs.m4)
           AC_DEFINE(HAVE_HOST_CPU_FAMILY_x86_64)
 	  case $host in


More information about the gmp-commit mailing list