[PATCH 09/11] Avoid warning from -Wbuiltin-declaration-mismatch

Joseph Myers josmyers@redhat.com
Thu Jan 23 16:16:43 GMT 2025


On Thu, 23 Jan 2025, Aleksandar Rakic wrote:

> Avoid GCC 11 warning from -Wbuiltin-declaration-mismatch for modfl and
> sincosl under MIPS o32 ABI.

This should not be needed.  math/Makefile has

CFLAGS-s_modf.c += -fno-builtin-modfl
CFLAGS-s_sincos.c += -fno-builtin-sincosl

which are supposed to avoid such warnings.  (It wouldn't surprise me if 
we're missing some such -fno-builtin-* for functions not currently 
supported as built-in functions in GCC, but if such built-in functions get 
added in future and result in glibc build failures, we can add the 
corresponding options that were previously missed - the options work fine 
even when there is no such built-in function.)

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list