[PATCH v2] math: Exclude tgmath3-macro-tests for Clang
Joseph Myers
josmyers@redhat.com
Wed Dec 18 22:00:11 GMT 2024
On Thu, 19 Dec 2024, H.J. Lu wrote:
> error: redeclaration of 'var_float' with a different type: 'typeof
> (acospi(vol_var_float))' (aka 'double') vs 'float'
> 264 | extern typeof (acospi (vol_var_float)) var_float
> __attribute__ ((unused));
So this suggests Clang <tgmath.h> is missing acospi. Where's the upstream
issue (to reference in a comment) requesting that Clang <tgmath.h> adds
all the C23 (+ TS 18661) functions (not limited to those currently
implemented in glibc or any particular other C library implementation)?
(Almost everything in glibc <tgmath.h> is from C23. The exceptions are
scalb and (from TS 18661-1, not in C23) fmaxmag/fminmag. Also, glibc
<tgmath.h> supports log10 for complex types and fmax and fmin for _FloatN
/ _FloatNx, when C23 only has those macros for more limited sets of
types.)
--
Joseph S. Myers
josmyers@redhat.com
More information about the Libc-alpha
mailing list