musl does not set errno in math functions: https://wiki.musl-libc.org/mathematical-library.html, https://git.musl-libc.org/cgit/musl/tree/include/math.h?id=cfdfd5ea3ce14c6abf7fb22a531f3d99518b5a1b#n26.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Looks great!
Thanks for telling me that GCC overloads -fno-math-errno to mean that malloc does not set errno (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576). This looks really scary. Clang doesn't have the problem:)
Comment Actions
@alxu Just realized you don't have commit access. Do you want one of us to merge this?
Comment Actions
I am testing check-clang-driver and will cherry pick this into release/14.x.
Since the diff was not created with arc diff, the author name/email information isn't available, but I get the information offline.