Android's libm does not set errno.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 21753 Build 21753: arc lint + arc unit
Paths
| Differential D51068
[Android] Default to -fno-math-errno ClosedPublic Authored by pirama on Aug 21 2018, 3:30 PM.
Details Summary Android's libm does not set errno.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Aug 21 2018, 5:28 PM Closed by commit rL340424: [Android] Default to -fno-math-errno (authored by pirama). · Explain WhyAug 22 2018, 10:43 AM This revision was automatically updated to reflect the committed changes. alxu mentioned this in D116755: Revert "[CodeGen] Mark fma as const for Android".Jan 6 2022, 9:14 AM
Revision Contents
Diff 161834 lib/Driver/ToolChains/Linux.h
lib/Driver/ToolChains/Linux.cpp
test/Driver/fast-math.c
|
I tried to be defensive here in case the default changes in the future. I can simplify to just return true here if that'd be simpler.