projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bbbea5
)
Provide ABI-correct stack alignment
author
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 23 Apr 2008 18:16:16 +0000
(18:16 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Wed, 23 Apr 2008 18:16:16 +0000
(18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50154
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86Subtarget.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86Subtarget.cpp
b/lib/Target/X86/X86Subtarget.cpp
index 610bf1da432b2b16053368326fad2141b6783ba1..71b5cb31f575dd584c83f6bde285b1b0699efe09 100644
(file)
--- a/
lib/Target/X86/X86Subtarget.cpp
+++ b/
lib/Target/X86/X86Subtarget.cpp
@@
-315,11
+315,9
@@
X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
? X86Subtarget::Intel : X86Subtarget::ATT;
}
- if (TargetType == isDarwin ||
- TargetType == isCygwin ||
- TargetType == isMingw ||
- TargetType == isWindows ||
- (TargetType == isELF && Is64Bit))
+ // Stack alignment is 16 bytes on Darwin (both 32 and 64 bit) and for all 64
+ // bit targets.
+ if (TargetType == isDarwin || Is64Bit)
stackAlignment = 16;
if (StackAlignment)