Page MenuHomeFreeBSD

fenv: Use slow path in C++
ClosedPublic

Authored by aokblast on Thu, Jun 4, 5:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 15, 5:33 PM
Unknown Object (File)
Mon, Jun 15, 4:35 PM
Unknown Object (File)
Mon, Jun 15, 3:00 PM
Unknown Object (File)
Mon, Jun 15, 2:59 PM
Unknown Object (File)
Mon, Jun 15, 9:47 AM
Unknown Object (File)
Sat, Jun 13, 11:15 AM
Unknown Object (File)
Thu, Jun 11, 8:08 PM
Unknown Object (File)
Thu, Jun 11, 2:55 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