[all-commits] [llvm/llvm-project] c5638a: [MinGW] Mark a number of library functions unavail...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Sat May 22 13:40:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5638a71d805330294e9b6e2c670e1ed7420b63a
      https://github.com/llvm/llvm-project/commit/c5638a71d805330294e9b6e2c670e1ed7420b63a
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-05-22 (Sat, 22 May 2021)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/test/Transforms/InstCombine/sprintf-1.ll

  Log Message:
  -----------
  [MinGW] Mark a number of library functions unavailable for mingw targets

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.

Differential Revision: https://reviews.llvm.org/D102946




More information about the All-commits mailing list