[all-commits] [llvm/llvm-project] 623cf3: Mark getc_unlocked as unavailable by default

Ryan Prichard via All-commits all-commits at lists.llvm.org
Thu Aug 5 16:36:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 623cf3dfdf3e202b99e4d0529c37eb7ef2474860
      https://github.com/llvm/llvm-project/commit/623cf3dfdf3e202b99e4d0529c37eb7ef2474860
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll

  Log Message:
  -----------
  Mark getc_unlocked as unavailable by default

Before D45736, getc_unlocked was available by default, but turned off
for non-Cygwin/non-MinGW Windows. D45736 then added 9 more unlocked
functions, which were unavailable by default, but it also:
 * left getc_unlocked enabled by default,
 * removed the disabling line for Windows, and
 * added code to enable getc_unlocked for GNU, Android, and OSX.

For consistency, make getc_unlocked unavailable by default. Maybe this
was the intent of D45736 anyway.

Reviewed By: MaskRay, efriedma

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




More information about the All-commits mailing list