svn commit: r243191 - stable/9/contrib/llvm/lib/Target/X86
Dimitry Andric
dim at FreeBSD.org
Sat Nov 17 22:50:51 UTC 2012
Author: dim
Date: Sat Nov 17 22:50:50 2012
New Revision: 243191
URL: http://svnweb.freebsd.org/changeset/base/243191
Log:
MFC r242835:
Reduce LLVM's default stack alignment for i386 from 16 to 4 bytes, as
the FreeBSD ABI requires. This is essentially a revert of upstream llvm
commit r126226, and it will be reverted by upstream too.
Modified:
stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp
Directory Properties:
stable/9/contrib/llvm/ (props changed)
Modified: stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp
==============================================================================
--- stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp Sat Nov 17 22:40:18 2012 (r243190)
+++ stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp Sat Nov 17 22:50:50 2012 (r243191)
@@ -411,12 +411,12 @@ X86Subtarget::X86Subtarget(const std::st
assert((!In64BitMode || HasX86_64) &&
"64-bit code requested on a subtarget that doesn't support it!");
- // Stack alignment is 16 bytes on Darwin, FreeBSD, Linux and Solaris (both
- // 32 and 64 bit) and for all 64-bit targets.
+ // Stack alignment is 16 bytes on Darwin, Linux and Solaris (both 32 and 64
+ // bit) and for all 64-bit targets.
if (StackAlignOverride)
stackAlignment = StackAlignOverride;
- else if (isTargetDarwin() || isTargetFreeBSD() || isTargetLinux() ||
- isTargetSolaris() || In64BitMode)
+ else if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() ||
+ In64BitMode)
stackAlignment = 16;
}
More information about the svn-src-stable-9
mailing list