Glibc issue: https://sourceware.org/bugzilla/show_bug.cgi?id=25399
The fix consist in considering the missing function as a builtin lowered to a nop.
See https://reviews.llvm.org/D71082 for the original discussion that led to that patch.
Differential D72869
Add __warn_memset_zero_len builtin as a workaround for glibc issue serge-sans-paille on Jan 16 2020, 12:58 PM. Authored by
Details Glibc issue: https://sourceware.org/bugzilla/show_bug.cgi?id=25399 The fix consist in considering the missing function as a builtin lowered to a nop. See https://reviews.llvm.org/D71082 for the original discussion that led to that patch.
Diff Detail
Event TimelineComment Actions @akhuang can you confirm this fixes your issue? I've tested locally and it works fine on my side. Comment Actions This is very hacky, but it might be the least-bad alternative. I mean, we could change D71082 so it doesn't allow system headers to define memset, but that seems worse. Please add a testcase. Comment Actions Unit tests: pass. 61933 tests passed, 0 failed and 783 were skipped. clang-tidy: unknown. clang-format: pass. Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml Comment Actions Yeah, I know...
Definitively
Done Comment Actions Unit tests: pass. 61934 tests passed, 0 failed and 783 were skipped. clang-tidy: unknown. clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch. Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml Comment Actions We currently don't have any mechanism for restricting builtins to specific operating systems. I guess we could add one, but this change doesn't seem like a compelling argument to add that capability. |
clang-format: please reformat the code