[PATCH v3] math: Exclude tgmath3-macro-tests for Clang

H.J. Lu hjl.tools@gmail.com
Sat Dec 21 21:30:13 GMT 2024


On Fri, Dec 20, 2024 at 11:19 AM Sam James <sam@gentoo.org> wrote:
>
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
> > tgmath3-macro-tests won't compile with Clang's <tgmath.h>.  Disable them
> > for now when Clang is used for testing so that "make check" can finish.
> >
> > Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> > ---
> >  math/Makefile | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/math/Makefile b/math/Makefile
> > index 93fa147033..7ef2e6637b 100644
> > --- a/math/Makefile
> > +++ b/math/Makefile
> > @@ -1038,7 +1038,10 @@ tgmath3-macros = \
> >    ufromfpx \
> >    # tgmath3-macros
> >  tgmath3-macro-tests = $(addprefix test-tgmath3-,$(tgmath3-macros))
> > +ifneq ($(have-test-clang),yes)
> > +# NB: tgmath3-macro-tests won't compile with Clang's <tgmath.h>.
> >  tests-tgmath += $(tgmath3-macro-tests)
> > +endif
> >  tests += $(tests-tgmath)
> >
> >  generated += $(addsuffix .c,$(tgmath3-macro-tests))
>
> OK with a bug reference / quote of error message in the commit message.

The llvm bug is

https://github.com/llvm/llvm-project/issues/97335

I am checking this in.

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

Disable them for now when Clang is used for testing so that "make check"
can finish.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-math-Exclude-tgmath3-macro-tests-for-Clang.patch
Type: text/x-patch
Size: 1159 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20241222/d5eba6b4/attachment.bin>


More information about the Libc-alpha mailing list