summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2016-10-25 22:13:28 +0000
committerJames Y Knight <jyknight@google.com>2016-10-25 22:13:28 +0000
commit2e64b8b79e635295ab1614088a49883063c4541b (patch)
tree3e5fe87a95d73a8c8d911c34e057b91511143359 /clang/lib/CodeGen/CGDebugInfo.cpp
parent26a87bd0306cd9ac6754bf6039f79bd9c777f842 (diff)
downloadbcm5719-llvm-2e64b8b79e635295ab1614088a49883063c4541b.tar.gz
bcm5719-llvm-2e64b8b79e635295ab1614088a49883063c4541b.zip
[Sparc] Don't overlap variable-sized allocas with other stack variables.
On SparcV8, it was previously the case that a variable-sized alloca might overlap by 4-bytes the last fixed stack variable, effectively because 92 (the number of bytes reserved for the register spill area) != 96 (the offset added to SP for where to start a DYNAMIC_STACKALLOC). It's not as simple as changing 96 to 92, because variables that should be 8-byte aligned would then be misaligned. For now, simply increase the allocation size by 8 bytes for each dynamic allocation -- wastes space, but at least doesn't overlap. As the large comment says, doing this more efficiently will require larger changes in llvm. Also adds some test cases showing that we continue to not support dynamic stack allocation and over-alignment in the same function. llvm-svn: 285131
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud