Description: Use integer overflow builtins on armhf.
 On armhf, compilation was failing due to "not enough registers" error.
 Per Albin Ahlbäck:  "We could use "builtin" integer overflow arithmetic, but the
 problem is that GCC is really bad at this and cannot do any sort of optimizations.
 ... But, on the other hand, when using ARMv[67], IMO you do not really care about
 performance, so we might as well use it here."
 So we use the clang header file, which uses the integer overflow builtins, on armhf.
Bug: https://github.com/flintlib/flint/issues/2131
Bug: https://github.com/flintlib/flint/issues/2461
Bug-Debian: https://bugs.debian.org/1091291
Author: Doug Torrance <dtorrance@debian.org>
Last-Update: 2025-11-25

--- a/src/longlong.h
+++ b/src/longlong.h
@@ -44,7 +44,7 @@
 # endif
 
 /* Addition, subtraction and multiplication */
-# if defined(__clang__)
+# if defined(__clang__) || (GMP_LIMB_BITS == 32 && defined(__arm__))
 #  include "longlong_asm_clang.h"
 # else
 #  include "longlong_asm_gcc.h"
