[PATCH] D151718: Remove HAVE_STRERROR

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 08:26:45 PDT 2023


MaskRay created this revision.
MaskRay added a reviewer: serge-sans-paille.
Herald added a subscriber: hiraditya.
Herald added projects: Flang, All.
MaskRay requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

Most systems support strerror_r. For the remaining systems strerror_s and
strerror can be used as fallbacks. We don't have a supported operating
system/compiler that doesn't provide `strerror`.

Close https://github.com/llvm/llvm-project/issues/62804

https://github.com/flang-compiler/f18/pull/1068 added a fallback
when strerror is unavailable, but I think the code path is dead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151718

Files:
  flang/runtime/CMakeLists.txt
  flang/runtime/io-error.cpp
  llvm/cmake/config-ix.cmake
  llvm/include/llvm/Config/config.h.cmake
  llvm/lib/Support/Errno.cpp
  llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
  utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
  utils/bazel/llvm_configs/config.h.cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151718.526635.patch
Type: text/x-patch
Size: 4983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230530/b60648a5/attachment.bin>


More information about the llvm-commits mailing list