summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-01-13 06:47:10 +0000
committerEric Christopher <echristo@apple.com>2011-01-13 06:47:10 +0000
commitda2d2f4d1f960f40f62fdbf011eae8fef8c83496 (patch)
tree51262df6513009e6274bb0e0c9721ed03b79fa53 /llvm/lib/Target/X86
parent9ebe8ce68cbfaf2b0b92603d50fa0682aee391f6 (diff)
downloadbcm5719-llvm-da2d2f4d1f960f40f62fdbf011eae8fef8c83496.tar.gz
bcm5719-llvm-da2d2f4d1f960f40f62fdbf011eae8fef8c83496.zip
Experiment with changing the default 32-bit linux stack alignment to
16 bytes for PR8969. Update all testcases accordingly. llvm-svn: 123367
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp
index b72cae6a6f6..de768561f11 100644
--- a/llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/llvm/lib/Target/X86/X86Subtarget.cpp
@@ -342,9 +342,9 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &FS,
assert((!Is64Bit || HasX86_64) &&
"64-bit code requested on a subtarget that doesn't support it!");
- // Stack alignment is 16 bytes on Darwin (both 32 and 64 bit) and for all 64
- // bit targets.
- if (isTargetDarwin() || Is64Bit)
+ // Stack alignment is 16 bytes on Darwin and Linux (both 32 and 64 bit) and
+ // for all 64-bit targets.
+ if (isTargetDarwin() || isTargetLinux() || Is64Bit)
stackAlignment = 16;
if (StackAlignment)
OpenPOWER on IntegriCloud