diff options
author | dim <dim@FreeBSD.org> | 2012-11-09 18:56:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-11-09 18:56:27 +0000 |
commit | b71b1dcf10941dcc438f95f3cd8e2e7f6acd5fb0 (patch) | |
tree | ddb36c95323e6e8413b365db23c7086a936b814d /contrib/llvm/lib/Target/X86/X86Subtarget.cpp | |
parent | b2297df0fcef2ec84a17000842363886ccff0e6c (diff) | |
download | FreeBSD-src-b71b1dcf10941dcc438f95f3cd8e2e7f6acd5fb0.zip FreeBSD-src-b71b1dcf10941dcc438f95f3cd8e2e7f6acd5fb0.tar.gz |
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.
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | contrib/llvm/lib/Target/X86/X86Subtarget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm/lib/Target/X86/X86Subtarget.cpp b/contrib/llvm/lib/Target/X86/X86Subtarget.cpp index 9087852..c2db11a 100644 --- a/contrib/llvm/lib/Target/X86/X86Subtarget.cpp +++ b/contrib/llvm/lib/Target/X86/X86Subtarget.cpp @@ -416,12 +416,12 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU, 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; } |