CVSROOT: /cvs Module name: src Changes by: morti...@cvs.openbsd.org 2021/01/01 09:43:05
Modified files: gnu/llvm/llvm/lib/CodeGen: ReturnProtectorLowering.cpp Log message: Skip leaf function optimization under some circumstances. On architectures that do not always spill the return address to the stack, it is possible for local stack frame data corruption in leaf functions to span stack frames if the retguard cookie is not spilled in the function. In leaf functions on these architectures, now spill the retguard cookie if the function contains arrays or has variables which have their address taken.