diff options
| author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-12-30 23:03:49 +0100 |
|---|---|---|
| committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2020-01-03 12:26:54 -0800 |
| commit | c0f1eac008e61e8345e3f41347cfd191e4ecb215 (patch) | |
| tree | 1f6a20fddd3cc92be35b76b6aa7ca1c490ee08c4 /llvm/lib/Target/SystemZ | |
| parent | 089e1ee1723f693eca54074225d4867297b1f2a2 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } |

