[Gmp-commit] /home/hgfiles/gmp: (--enable_assembly): New option.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Dec 1 17:21:20 CET 2010
details: /home/hgfiles/gmp/rev/26b971d3c4d5
changeset: 13698:26b971d3c4d5
user: Torbjorn Granlund <tege at gmplib.org>
date: Wed Dec 01 17:21:16 2010 +0100
description:
(--enable_assembly): New option.
diffstat:
ChangeLog | 5 +++++
configure.in | 34 ++++++++++++++++++++++++----------
2 files changed, 29 insertions(+), 10 deletions(-)
diffs (77 lines):
diff -r 92083b7f4185 -r 26b971d3c4d5 ChangeLog
--- a/ChangeLog Mon Nov 29 22:06:47 2010 +0100
+++ b/ChangeLog Wed Dec 01 17:21:16 2010 +0100
@@ -1,3 +1,8 @@
+2010-12-01 Torbjorn Granlund <tege at gmplib.org>
+
+ * configure.in (--enable_assembly): New option.
+ (target none-*-*): Disable, give error.
+
2010-11-29 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86/x86-defs.m4 (LEA): Support non-PIC code.
diff -r 92083b7f4185 -r 26b971d3c4d5 configure.in
--- a/configure.in Mon Nov 29 22:06:47 2010 +0100
+++ b/configure.in Wed Dec 01 17:21:16 2010 +0100
@@ -122,6 +122,15 @@
[enable_cxx=no])
+AC_ARG_ENABLE(assembly,
+AC_HELP_STRING([--enable-assembly],[enable the use of asembly loops [[default=yes]]]),
+[case $enableval in
+yes|no) ;;
+*) AC_MSG_ERROR([bad value $enableval for --enable-assembly, need yes or no]) ;;
+esac],
+[enable_assembly=yes])
+
+
AC_ARG_ENABLE(fft,
AC_HELP_STRING([--enable-fft],[enable FFTs for multiplication [[default=yes]]]),
[case $enableval in
@@ -233,6 +242,10 @@
[enable_minithres=no])
+if test $enable_fat = yes && test $enable_assembly = no ; then
+ AC_MSG_ERROR([when doing a fat build, disabling assembly will not work])
+fi
+
tmp_host=`echo $host_cpu | sed 's/\./_/'`
AC_DEFINE_UNQUOTED(HAVE_HOST_CPU_$tmp_host)
@@ -1542,16 +1555,7 @@
# symbols like __alpha rather than the configured $host_cpu).
#
none-*-*)
- abilist="long longlong"
- cclist_long=$cclist
- gcc_long_cflags=$gcc_cflags
- gcc_long_cppflags="-DNO_ASM"
- cc_long_cflags=$cc_cflags
- cclist_longlong=$cclist
- gcc_longlong_cflags=$gcc_cflags
- gcc_longlong_cppflags="-DNO_ASM"
- cc_longlong_cflags=$cc_cflags
- limb_longlong=longlong
+ AC_MSG_ERROR([the \"none\" host is obsolete, use --disable-assembly])
;;
esac
@@ -2112,6 +2116,16 @@
esac
+if test "$enable_assembly" = "no"; then
+ path="generic"
+ CFLAGS="$CFLAGS -DNO_ASM"
+# for abi in $abilist; do
+# eval unset "path_\$abi"
+# eval gcc_${abi}_cflags=\"\$gcc_${abi}_cflags -DNO_ASM\"
+# done
+fi
+
+
cat >&AC_FD_CC <<EOF
Decided:
ABI=$ABI
More information about the gmp-commit
mailing list