[PATCH] D24093: [PPC] Claim stack frame before storing into it, if no red zone is present
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 10:58:25 PDT 2016
kparzysz created this revision.
kparzysz added a reviewer: hfinkel.
kparzysz added a subscriber: llvm-commits.
kparzysz set the repository for this revision to rL LLVM.
Herald added a subscriber: nemanjai.
PPC32/SVRV4 does not have red zone. Despite that, the frame lowering code would first save all required registers, and then update the stack pointer at the end.
This is ok on PPC64, but on PPC32 in the absence of the red zone there is no guarantee that this part of the stack will not be modified by any interrupt. To avoid this, make sure to claim the stack frame first before storing into it.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10427 bytes
Desc: not available
More information about the llvm-commits