[PATCH 20/59] math: Suppress clang -Wincompatible-library-redeclaration on s_llround
Sam James
sam@gentoo.org
Mon Oct 20 20:13:25 GMT 2025
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> Clang issues:
>
> ../sysdeps/ieee754/dbl-64/s_llround.c:83:30: error: incompatible
> redeclaration of library function 'lround'
> [-Werror,-Wincompatible-library-redeclaration]
> libm_alias_double (__lround, lround)
> ^
> ../sysdeps/ieee754/dbl-64/s_llround.c:83:30: note: 'lround' is a builtin
> with type 'long (double)'
Reviewed-by: Sam James <sam@gentoo.org>
> ---
> sysdeps/ieee754/dbl-64/Makefile | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/sysdeps/ieee754/dbl-64/Makefile b/sysdeps/ieee754/dbl-64/Makefile
> index 766bef4a35..ac2e2ecc5e 100644
> --- a/sysdeps/ieee754/dbl-64/Makefile
> +++ b/sysdeps/ieee754/dbl-64/Makefile
> @@ -2,6 +2,9 @@ ifeq ($(subdir),math)
> # branred depends on precise IEEE double rounding
> CFLAGS-branred.c += $(config-cflags-nofma)
> CFLAGS-e_sqrt.c += $(config-cflags-nofma)
> +
> +# The symbols alias to lround
> +CFLAGS-s_llround.c += -fno-builtin-lround
> endif
>
> ifeq ($(subdir),stdio-common)
More information about the Libc-alpha
mailing list