ancient ARM cpus

Niels Möller nisse at lysator.liu.se
Sun Nov 15 13:22:23 UTC 2015


Martin Husemann <martin at duskware.de> writes:

> If we can get at the gcc defines easily for the m4 stuff, it probably would
> be better to use
>
> __ARM_ARCH_ISA_THUMB
>
> which seems to be present if the target cpu supports thumb mode.

I should be fairly straightforward to have a configure test checking
that, something like,

AC_TRY_COMPILE([
#ifndef __ARM_ARCH_ISA_THUMB
#error Thumb not supported
#endif
    ], [], [
      GMP_ARM_HAS_THUMB=yes
    ], [
      GMP_ARM_HAS_THUMB=no
    ])

Or check $host_cpu directly; whatever seems best for portability.

And then define a suitable return macro in arm-defs.m4, for use in the
v4 assembly files.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list