From 5eb64744d006f7350e26470975eea5696e247b92 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 15 Jun 2004 19:53:10 +0000 Subject: [PATCH] Squash a warning from the Solaris assembler by aligning the stack on a double-word boundary instead of a single-word boundary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14177 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcRegisterInfo.cpp | 3 ++- lib/Target/SparcV8/SparcV8RegisterInfo.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/Sparc/SparcRegisterInfo.cpp b/lib/Target/Sparc/SparcRegisterInfo.cpp index 114e79569cc..c5034d57ad6 100644 --- a/lib/Target/Sparc/SparcRegisterInfo.cpp +++ b/lib/Target/Sparc/SparcRegisterInfo.cpp @@ -109,7 +109,8 @@ void SparcV8RegisterInfo::emitPrologue(MachineFunction &MF) const { // ---------- // 23 words * 4 bytes per word = 92 bytes NumBytes += 92; - NumBytes = (NumBytes + 3) & ~3; // Round up to next word boundary + NumBytes = (NumBytes + 7) & ~7; // Round up to next doubleword boundary + // (Technically, a word boundary should be sufficient, but SPARC as complains) BuildMI(MBB, MBB.begin(), V8::SAVEri, 2, V8::SP).addImm(-NumBytes).addReg(V8::SP); } diff --git a/lib/Target/SparcV8/SparcV8RegisterInfo.cpp b/lib/Target/SparcV8/SparcV8RegisterInfo.cpp index 114e79569cc..c5034d57ad6 100644 --- a/lib/Target/SparcV8/SparcV8RegisterInfo.cpp +++ b/lib/Target/SparcV8/SparcV8RegisterInfo.cpp @@ -109,7 +109,8 @@ void SparcV8RegisterInfo::emitPrologue(MachineFunction &MF) const { // ---------- // 23 words * 4 bytes per word = 92 bytes NumBytes += 92; - NumBytes = (NumBytes + 3) & ~3; // Round up to next word boundary + NumBytes = (NumBytes + 7) & ~7; // Round up to next doubleword boundary + // (Technically, a word boundary should be sufficient, but SPARC as complains) BuildMI(MBB, MBB.begin(), V8::SAVEri, 2, V8::SP).addImm(-NumBytes).addReg(V8::SP); } -- 2.34.1