On Tue, 3 Sept 2024 at 10:10, Evgeny Karpov wrote:
>
> This patch resolves the GCC compilation issue for the C++ language
> targeting aarch64-w64-mingw32.
>
> The change in fast_float has been upstreamed.
> https://github.com/fastfloat/fast_float/pull/269

Thanks for doing this upstream first.

I'll push this to trunk and update src/c++17/fast_float/LOCAL_PATCHES
to track it.

>
> libstdc++-v3/ChangeLog:
>
>         * src/c++17/fast_float/fast_float.h (full_multiplication):
>         Support aarch64-w64-mingw32 target.
> ---
>  libstdc++-v3/src/c++17/fast_float/fast_float.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/libstdc++-v3/src/c++17/fast_float/fast_float.h 
> b/libstdc++-v3/src/c++17/fast_float/fast_float.h
> index 7551c4f89ef..3da58f2850c 100644
> --- a/libstdc++-v3/src/c++17/fast_float/fast_float.h
> +++ b/libstdc++-v3/src/c++17/fast_float/fast_float.h
> @@ -275,7 +275,8 @@ fastfloat_really_inline value128 
> full_multiplication(uint64_t a,
>    // But MinGW on ARM64 doesn't have native support for 64-bit 
> multiplications
>    answer.high = __umulh(a, b);
>    answer.low = a * b;
> -#elif defined(FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__))
> +#elif defined(FASTFLOAT_32BIT) ||                                            
>   \
> +    (defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64))
>    answer.low = _umul128(a, b, &answer.high); // _umul128 not available on 
> ARM64
>  #elif defined(FASTFLOAT_64BIT)
>    __uint128_t r = ((__uint128_t)a) * b;
> --
> 2.34.1
>
>

Reply via email to