[PATCH] D47002: [Analysis] Only use _unlocked stdio functions on linux

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 01:38:13 PDT 2018


mstorsjo added a comment.

In https://reviews.llvm.org/D47002#1102688, @mstorsjo wrote:

> In https://reviews.llvm.org/D47002#1102687, @xbolva00 wrote:
>
> > Just for info.. Windows has also some kind of unlocked stdio via _nolock functions :)
>
>
> Yes, I saw that as well :-) However it doesn't seem to be available in the system DLL "msvcrt.dll" which mingw targets by default. (Nowadays one can target the more modern ucrtbase.dll by default as well, and there they'd be available.)


... except that shouldn't be an issue; if we'd would want to use them, mingw-w64 could just provide wrappers that map down back to the normal locked ones, for msvcrt.dll. So nevermind about that.

So yes, one could take advantage of that if one would have extra effort to spend on it :-)


Repository:
  rL LLVM

https://reviews.llvm.org/D47002





More information about the llvm-commits mailing list