https://godbolt.org/z/PYod6edac
Why does msvc decide to reserve 40 bytes on the stack for memcpy
in copy2
when the src pointer is restricted? That 40 bytes can't be shadow space because the shadow space is a 32-byte stack space like in the copy3
function. Clang and GCC generate the code fine.