Bug 277958 - libc: invalid internal linkage on feclearexcept
Summary: libc: invalid internal linkage on feclearexcept
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-standards (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 19:29 UTC by Ed Maste
Modified: 2024-03-25 19:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2024-03-25 19:29:10 UTC
See https://github.com/llvm/llvm-project/pull/86320 for context

> It seems FreeBSD's libc is not standard compliant.
> /usr/include/fenv.h:266
>
> __fenv_static inline int
> feclearexcept(int __excepts)
>
> and __fenv_static is defined as static. This means feclearexcept has internal linkage.
> This is not allowed by the C standard and C++ modules can't export named declarations
> with internal linkage. So this is probably something to be fixed in FreeBSD.