This is an archive of the discontinued LLVM Phabricator instance.

[MinGW] Mark a number of library functions unavailable for mingw targets
ClosedPublic

Authored by mstorsjo on May 21 2021, 2:31 PM.

Details

Summary

These functions were marked unavailable for MSVC targets before,
within an "T.isOSWindows() && !T.isOSCygMing()" block, but these ones
are unavailable on MinGW targets too.

This avoids generating calls to stpcpy for MinGW targets, which has
been happening since 6dbf0cfcf789365493f70ae69df8a7a59be41c75 (in
some cases).

This fixes https://github.com/mstorsjo/llvm-mingw/issues/201.

Diff Detail

Event Timeline

mstorsjo created this revision.May 21 2021, 2:31 PM
mstorsjo requested review of this revision.May 21 2021, 2:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2021, 2:31 PM
rnk accepted this revision.May 21 2021, 2:56 PM

lgtm

This revision is now accepted and ready to land.May 21 2021, 2:56 PM
mati865 accepted this revision.May 21 2021, 5:09 PM