mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
PPC doesn't supported VLA with large alignment. This was
formerly rejected by the FE, so asserted in the BE; now the FE only warns, so we treat it as a legitimate fatal error in PPC BE. This means the test for the feature won't pass, so it's xfail'd. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e16829b401
commit
38cb1381b5
@ -449,8 +449,8 @@ void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II,
|
||||
// Get stack alignments.
|
||||
unsigned TargetAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
|
||||
unsigned MaxAlign = MFI->getMaxAlignment();
|
||||
assert(MaxAlign <= TargetAlign &&
|
||||
"Dynamic alloca with large aligns not supported");
|
||||
if (MaxAlign > TargetAlign)
|
||||
report_fatal_error("Dynamic alloca with large aligns not supported");
|
||||
|
||||
// Determine the previous frame's address. If FrameSize can't be
|
||||
// represented as 16 bits or we need special alignment, then we load the
|
||||
|
@ -1,4 +1,6 @@
|
||||
// RUN: %llvmgcc_only -std=gnu99 %s -S |& grep {warning: alignment for}
|
||||
// ppc does not support this feature, and gets a fatal error at runtime.
|
||||
// XFAIL: powerpc
|
||||
|
||||
int foo(int a)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user