Page MenuHomeFreeBSD

fenv: Use slow path in C++
ClosedPublic

Authored by aokblast on Jun 4 2026, 5:48 PM.
Tags
None
Referenced Files
F163142737: D57450.id179226.diff
Mon, Jul 20, 11:52 AM
Unknown Object (File)
Wed, Jul 15, 7:25 AM
Unknown Object (File)
Wed, Jul 15, 7:25 AM
Unknown Object (File)
Thu, Jul 9, 10:09 PM
Unknown Object (File)
Tue, Jul 7, 7:12 PM
Unknown Object (File)
Mon, Jul 6, 5:44 AM
Unknown Object (File)
Sun, Jul 5, 6:50 AM
Unknown Object (File)
Sun, Jul 5, 1:04 AM
Subscribers

Details

Summary

C++ exposes cfenv functions svia using ::func. Our name-mangling
mechanism rewrites all function calls causing symbols such as
std::feclearexcept to be transformed into std::__feclearexcept_int.
Since no such function exists, compilation fails.

The using ::feclearexpect declarations themselves are unaffected because
they are not function calls, which further exposes the mispatch

As a result, enable the fast path only for C and fall back to the slow
path in C++.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73676
Build 70559: arc lint + arc unit