[PATCH v2] math: Exclude tgmath3-macro-tests for Clang
Joseph Myers
josmyers@redhat.com
Wed Dec 18 22:04:09 GMT 2024
On Wed, 18 Dec 2024, Joseph Myers wrote:
> 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)?
Alternatively, if it already has those macros but under conditions that
don't know about glibc's feature test macros, maybe we should have some
way to e.g. build these tests with -std=gnu23 / -std=gnu2x when the test
compiler is a version of Clang defaulting to an older C standard version.
--
Joseph S. Myers
josmyers@redhat.com
More information about the Libc-alpha
mailing list