gmp-6.0.0 does not completly honor -DNO_ASM

Zach Metzinger zmetzing at pobox.com
Thu May 14 21:07:57 UTC 2015


Hello,

I noticed that --disable-assembly (which effects -DNO_ASM) is not honored
in the files mpn/generic/div_qr_1n_pi1.c and mpn/generic/mod_1_1.c. 

I'm working on the Cortex-M platform, so the ARM assembly in that file is 
not appropriate for this target. Patches attached.

--- Zach
-------------- next part --------------
--- mod_1_1.c+	2015-05-14 15:29:57.000000000 -0500
+++ mod_1_1.c	2015-05-14 15:31:08.000000000 -0500
@@ -48,7 +48,7 @@
  * add_mssaaaa is like longlong.h's add_ssaaaa, but also generates
  * carry out, in the form of a mask. */
 
-#if defined (__GNUC__)
+#if defined (__GNUC__) && !defined(NO_ASM)
 
 #if HAVE_HOST_CPU_FAMILY_x86 && W_TYPE_SIZE == 32
 #define add_mssaaaa(m, s1, s0, a1, a0, b1, b0)				\
--- div_qr_1n_pi1.c+	2015-05-14 15:28:20.000000000 -0500
+++ div_qr_1n_pi1.c	2015-05-14 15:30:47.000000000 -0500
@@ -49,7 +49,7 @@
 
 /* FIXME: Duplicated in mod_1_1.c. Move to gmp-impl.h */
 
-#if defined (__GNUC__)
+#if defined (__GNUC__) && !defined(NO_ASM)
 
 #if HAVE_HOST_CPU_FAMILY_x86 && W_TYPE_SIZE == 32
 #define add_mssaaaa(m, s1, s0, a1, a0, b1, b0)				\


More information about the gmp-bugs mailing list