about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-05 15:16:47 +0200
committerGitHub <noreply@github.com>2023-09-05 15:16:47 +0200
commitcbab5adf8ad87ede5b3160cf778107c51f5f07cf (patch)
tree82be6e9ef40f1d323de3a34ae312c08a2ec8ebae /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parenta23f2161361c0a57be53dee6d135dab22e0ceda2 (diff)
parentfb4ac63415fbf6635a59a39c078d766ba8fc4b5c (diff)
downloadrust-cbab5adf8ad87ede5b3160cf778107c51f5f07cf.tar.gz
rust-cbab5adf8ad87ede5b3160cf778107c51f5f07cf.zip
Rollup merge of #114412 - RalfJung:libc-symbols, r=pnkfelix
document our assumptions about symbols provided by the libc

LLVM makes assumptions about `memcmp`, `memmove`, and `memset` that go beyond what the C standard guarantees -- see https://reviews.llvm.org/D86993. Since we use LLVM, we are inheriting these assumptions.

With https://github.com/rust-lang/rust/pull/114382 we are also making a similar assumption about `memcmp`, so I added that to the list.

Fixes https://github.com/rust-lang/unsafe-code-guidelines/issues/426.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions