Do not store R31 into the caller's link area on PPC.
authorDale Johannesen <dalej@apple.com>
Tue, 24 Nov 2009 22:59:02 +0000 (22:59 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 24 Nov 2009 22:59:02 +0000 (22:59 +0000)
commitf7801b493ef94c3a7edf8d57cc564f08fce6e624
treeef8e87fb7dbdf9b3de6973e15678b2b9bd63f32a
parenteac79170d2c66f1d6a433b0cac2696926eeff783
Do not store R31 into the caller's link area on PPC.
This violates the ABI (that area is "reserved"), and
while it is safe if all code is generated with current
compilers, there is some very old code around that uses
that slot for something else, and breaks if it is stored
into.  Adjust testcases looking for current behavior.
I've verified that the stack frame size is right in all
testcases, whether it changed or not.  7311323.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89811 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFrameInfo.h
lib/Target/PowerPC/PPCRegisterInfo.cpp
test/CodeGen/PowerPC/Frames-alloca.ll
test/CodeGen/PowerPC/Frames-large.ll
test/CodeGen/PowerPC/Frames-small.ll
test/CodeGen/PowerPC/ppc-prologue.ll