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

Joseph Myers josmyers@redhat.com
Thu Jan 2 17:19:58 GMT 2025


On Sun, 22 Dec 2024, H.J. Lu wrote:

> > >  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

That's specifically about _FloatN / _FloatNx support (which I suppose does 
cover adding that support to <tgmath.h> once Clang has the language 
support).

There's also the question of all the new macros added to <tgmath.h> in 
C23, for new C23 functions (from a quick look, Clang doesn't have those in 
its <tgmath.h> either).  I think those need a separate bug filed and 
referenced in the comment.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list