This is an archive of the discontinued LLVM Phabricator instance.

Remove HAVE_STRERROR
ClosedPublic

Authored by MaskRay on May 30 2023, 8:26 AM.

Details

Summary

Most systems support strerror_r. For the remaining systems (e.g. MSVC) strerror_s and
strerror can be used as fallbacks. We don't have a supported operating
system/compiler that doesn't provide strerror.

Close https://github.com/llvm/llvm-project/issues/62804

https://github.com/flang-compiler/f18/pull/1068 added a fallback
when strerror is unavailable, but I think the code path is dead.

Diff Detail

Event Timeline

MaskRay created this revision.May 30 2023, 8:26 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 30 2023, 8:26 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
MaskRay requested review of this revision.May 30 2023, 8:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 8:26 AM

I like the radical approach. We'll revert if someone ever complains about this.

This revision is now accepted and ready to land.May 30 2023, 12:50 PM
vzakhari accepted this revision.May 30 2023, 12:55 PM
vzakhari added a subscriber: vzakhari.

Flang change LGTM. Thank you!

MaskRay edited the summary of this revision. (Show Details)May 30 2023, 2:07 PM
This revision was automatically updated to reflect the committed changes.