Current WebAssembly implementations use musl libc, which writes to
signgam in its lgamma functions. We want the rest of the builtins to be
const under -fno-math-errno, so overwrite lgamma's builtin definitions
to be never-const.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 3805 Build 3805: arc lint + arc unit
Event Timeline
Comment Actions
It doesn't make sense to do this in WebAssembly-specific code; every POSIX platform has a signgam which behaves the same way.
Comment Actions
https://clang.llvm.org/compatibility.html doesn't mention anything about POSIX, only C11 compliance, so I didn't think Clang in general cared about POSIX.
That being said I can definitely agree that Clang shouldn't preclude POSIX. I'll open a more-general diff.