summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2019-12-30 23:03:49 +0100
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2020-01-03 12:26:54 -0800
commitc0f1eac008e61e8345e3f41347cfd191e4ecb215 (patch)
tree1f6a20fddd3cc92be35b76b6aa7ca1c490ee08c4 /llvm/lib/Target/SystemZ
parent089e1ee1723f693eca54074225d4867297b1f2a2 (diff)
downloadbcm5719-llvm-c0f1eac008e61e8345e3f41347cfd191e4ecb215.tar.gz
bcm5719-llvm-c0f1eac008e61e8345e3f41347cfd191e4ecb215.zip
[SystemZ] Don't allow CL option -mpacked-stack with -mbackchain.
-mpacked-stack is currently not supported with -mbackchain, so this should result in a compilation error message instead of being silently ignored. Review: Ulrich Weigand
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp b/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
index 3e2b376d3be..3cdf6bf98ee 100644
--- a/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
@@ -68,6 +68,8 @@ static bool usePackedStack(MachineFunction &MF) {
bool CallConv = MF.getFunction().getCallingConv() != CallingConv::GHC;
bool BackChain = MF.getFunction().hasFnAttribute("backchain");
bool FramAddressTaken = MF.getFrameInfo().isFrameAddressTaken();
+ if (HasPackedStackAttr && BackChain)
+ report_fatal_error("packed-stack with backchain is currently unsupported.");
return HasPackedStackAttr && !IsVarArg && CallConv && !BackChain &&
!FramAddressTaken;
}
OpenPOWER on IntegriCloud