[PATCH] D102946: [MinGW] Mark a number of library functions unavailable for mingw targets

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 14:31:17 PDT 2021


mstorsjo created this revision.
mstorsjo added reviewers: rnk, mati865.
Herald added a subscriber: hiraditya.
mstorsjo requested review of this revision.
Herald added a project: LLVM.

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 <https://reviews.llvm.org/rG6dbf0cfcf789365493f70ae69df8a7a59be41c75> (in
some cases).

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102946

Files:
  llvm/lib/Analysis/TargetLibraryInfo.cpp
  llvm/test/Transforms/InstCombine/sprintf-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102946.347128.patch
Type: text/x-patch
Size: 4411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210521/98aad542/attachment.bin>


More information about the llvm-commits mailing list