[PATCH] math: Add a reference to Clang's <tgmath.h> C23 issue

Sam James sam@gentoo.org
Fri Jan 3 13:07:00 GMT 2025


"H.J. Lu" <hjl.tools@gmail.com> writes:

> Clang's <tgmath.h> doesn't support all C23 functions in glibc's <tgmath.h>:
>
> https://github.com/llvm/llvm-project/issues/121536

Thanks for filing it.

Reviewed-by: Sam James <sam@gentoo.org>

>
> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> ---
>  math/Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/math/Makefile b/math/Makefile
> index 30225b4685..f24cee5c39 100644
> --- a/math/Makefile
> +++ b/math/Makefile
> @@ -1032,6 +1032,7 @@ ifneq ($(have-test-clang),yes)
>  # NB: tgmath3-macro-tests won't compile with <float.h> and <tgmath.h>
>  # from Clang due to missing C23 support:
>  # https://github.com/llvm/llvm-project/issues/97335
> +# https://github.com/llvm/llvm-project/issues/121536
>  tests-tgmath += $(tgmath3-macro-tests)
>  endif
>  tests += $(tests-tgmath)


More information about the Libc-alpha mailing list