https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123007
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> Wait not 64bit long but
>
> (gdb) p outmode
> $2 = E_TImode
>
>
> Which does not exist for arm ...
Actually it does but not exactly; it is needed for divmod and more.
a68_type_for_mode needs a fix like was done in r0-80849-g5218394a4c5d2f (for
gfc_type_for_size).
gfc_type_for_size (which is called from gfc_type_for_mode) has the following:
/* Handle TImode as a special case because it is used by some backends
(e.g. ARM) even though it is not available for normal use. */
#if HOST_BITS_PER_WIDE_INT >= 64
if (bits == TYPE_PRECISION (intTI_type_node))
return intTI_type_node;
#endif