aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-01-10 22:43:53 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-01-10 22:43:53 +0000
commit216f63702fabd57ac570feebc56005b2a5cb3216 (patch)
treec70b876cc57e4768c26e3b722cef1ecc08eaaabe /lib/Target/X86/X86Subtarget.cpp
parent19d0bf3a9273d337b776ca33c284fd2b5da485ab (diff)
downloadexternal_llvm-216f63702fabd57ac570feebc56005b2a5cb3216.zip
external_llvm-216f63702fabd57ac570feebc56005b2a5cb3216.tar.gz
external_llvm-216f63702fabd57ac570feebc56005b2a5cb3216.tar.bz2
Default stack alignment for 32bit x86 should be 4 Bytes, not 8 Bytes.
Add a test that checks the stack alignment of a simple function for Darwin, Linux and NetBSD for 32bit and 64bit mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index d780032..f4a6261 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -333,7 +333,7 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
, IsUAMemFast(false)
, HasVectorUAMem(false)
, HasCmpxchg16b(false)
- , stackAlignment(8)
+ , stackAlignment(4)
// FIXME: this is a known good value for Yonah. How about others?
, MaxInlineSizeThreshold(128)
, TargetTriple(TT)