Switch FreeBSD/i386 back to 4byte stack alignment. This partially

reverts r126226.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Roman Divacky 2012-11-09 20:10:44 +00:00
parent 722c9a7925
commit 64f03673d2

View File

@ -415,12 +415,12 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
assert((!In64BitMode || HasX86_64) && assert((!In64BitMode || HasX86_64) &&
"64-bit code requested on a subtarget that doesn't support it!"); "64-bit code requested on a subtarget that doesn't support it!");
// Stack alignment is 16 bytes on Darwin, FreeBSD, Linux and Solaris (both // Stack alignment is 16 bytes on Darwin, Linux and Solaris (both
// 32 and 64 bit) and for all 64-bit targets. // 32 and 64 bit) and for all 64-bit targets.
if (StackAlignOverride) if (StackAlignOverride)
stackAlignment = StackAlignOverride; stackAlignment = StackAlignOverride;
else if (isTargetDarwin() || isTargetFreeBSD() || isTargetLinux() || else if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() ||
isTargetSolaris() || In64BitMode) In64BitMode)
stackAlignment = 16; stackAlignment = 16;
} }