Page MenuHomeFreeBSD

fenv: Use slow path in C++
ClosedPublic

Authored by aokblast on Thu, Jun 4, 5:48 PM.
Tags
None
Referenced Files
F159109899: D57450.diff
Wed, Jun 10, 5:55 AM
F159076961: D57450.diff
Tue, Jun 9, 8:38 PM
Unknown Object (File)
Tue, Jun 9, 7:37 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 Not Applicable
Unit
Tests Not Applicable