On Mon, Apr 07, 2025 at 03:44:52PM +0800, Lulu Cheng wrote:
> In GCC14, LoongArch added __float128 as an alias for _Float128.
> In commit r15-8962, support for q/Q suffixes for 128-bit floating point
> numbers. This will cause the compiler to automatically link libquadmath
> when compiling Fortran programs. But on LoongArch `long double` is
> IEEE quad, so there is no need to implement libquadmath.
> This causes link failure.
>
> PR target/119408
>
> libgfortran/ChangeLog:
>
> * acinclude.m4: When checking for __float128 support, determine
> whether the current architecture is LoongArch. If so, return false.
> * configure: Regenerate.
>
> libquadmath/ChangeLog:
>
> * configure.ac: When checking for __float128 support, determine
> whether the current architecture is LoongArch. If so, return false.
> * configure: Regenerate.
>
> Sigend-off-by: Xi Ruoyao <[email protected]>
> Sigend-off-by: Jakub Jelinek <[email protected]>
>
> ---
> v1 -> v2:
> Corrected typos in commit information.
> v2 -> v3:
> Regenerate libgfortran/configure using gnu autoconf2.69.
LGTM.
Jakub