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

mercurial at gmplib.org mercurial at gmplib.org
Wed Nov 26 07:00:17 UTC 2014


details:   /var/hg/gmp/rev/88e5593f0983
changeset: 16526:88e5593f0983
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Wed Nov 26 08:00:01 2014 +0100
description:
(arm*-*-*): Optionally pass redundant fpu mode options in order to placate clang.

details:   /var/hg/gmp/rev/3bcd2ef1f502
changeset: 16527:3bcd2ef1f502
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Wed Nov 26 08:00:11 2014 +0100
description:
*** empty log message ***

diffstat:

 ChangeLog    |   7 +++++++
 configure.ac |  11 ++++++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 367c4b997cbe -r 3bcd2ef1f502 ChangeLog
--- a/ChangeLog	Wed Nov 26 03:32:33 2014 +0100
+++ b/ChangeLog	Wed Nov 26 08:00:11 2014 +0100
@@ -1,3 +1,10 @@
+2014-11-26  Torbjörn Granlund  <torbjorng at google.com>
+
+	* configure.ac (arm*-*-*): Optionally pass redundant fpu mode options
+	in order to placate clang.
+
+	* mpn/arm/neon/lshiftc.asm: Avoid insn form missing from clang.
+
 2014-11-24  Torbjörn Granlund  <torbjorng at google.com>
 
 	* configure.ac (mips*-*-*): Provide ABI synonyms (for clang pretending
diff -r 367c4b997cbe -r 3bcd2ef1f502 configure.ac
--- a/configure.ac	Wed Nov 26 03:32:33 2014 +0100
+++ b/configure.ac	Wed Nov 26 08:00:11 2014 +0100
@@ -607,12 +607,21 @@
 
   arm*-*-*)
     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
-    gcc_cflags_optlist="arch neon tune"
+    gcc_cflags_optlist="arch fpmode neon tune"
     gcc_cflags_maybe="-marm"
     gcc_testlist="gcc-arm-umodsi"
     GMP_INCLUDE_MPN(arm/arm-defs.m4)
     CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
 
+    # This is needed for clang, which is not content with flags like -mfpu=neon
+    # alone.
+    case $host in
+      *-*-*eabi)
+        gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
+      *-*-*eabihf)
+        gcc_cflags_fpmode="-mfloat-abi=hard" ;;
+    esac
+
     # FIXME: We make mandatory compiler options optional here.  We should
     # either enforce them, or organise to strip paths as the corresponding
     # options fail.


More information about the gmp-commit mailing list