This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Default to -fno-math-errno for musl too
ClosedPublic

Authored by alxu on Jan 6 2022, 8:54 AM.

Diff Detail

Event Timeline

alxu requested review of this revision.Jan 6 2022, 8:54 AM
alxu created this revision.
alxu edited the summary of this revision. (Show Details)Jan 6 2022, 11:53 AM

Hi, can someone take a look at this? @MaskRay, @pirama, @srhines? Thanks!

srhines accepted this revision.Jan 26 2022, 9:38 AM

Verified with the docs from musl.

This revision is now accepted and ready to land.Jan 26 2022, 9:38 AM
MaskRay accepted this revision.EditedJan 26 2022, 11:32 AM

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:)

MaskRay retitled this revision from Default to -fno-math-errno for musl too to [Driver] Default to -fno-math-errno for musl too.Jan 26 2022, 11:33 AM
pirama added a comment.Feb 4 2022, 3:58 PM

@alxu Just realized you don't have commit access. Do you want one of us to merge this?

alxu added a comment.Feb 4 2022, 6:47 PM

@alxu Just realized you don't have commit access. Do you want one of us to merge this?

Yes, I forgot about this patch. Thanks.

MaskRay added a comment.EditedFeb 4 2022, 7:15 PM

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.

This revision was automatically updated to reflect the committed changes.