[llvm-commits] [llvm] r40796 - /llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Dale Johannesen
dalej at apple.com
Fri Aug 3 15:46:15 PDT 2007
Author: johannes
Date: Fri Aug 3 17:46:15 2007
New Revision: 40796
URL: http://llvm.org/viewvc/llvm-project?rev=40796&view=rev
Log:
Make x86 long double alignment 32 for everything but
Darwin (which makes size within a struct==96)
Modified:
llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?rev=40796&r1=40795&r2=40796&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp Fri Aug 3 17:46:15 2007
@@ -116,7 +116,9 @@
: Subtarget(M, FS, is64Bit),
DataLayout(Subtarget.is64Bit() ?
std::string("e-p:64:64-f64:32:64-i64:32:64-f80:128:128") :
- std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128")),
+ Subtarget.isTargetDarwin() ?
+ std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128") :
+ std::string("e-p:32:32-f64:32:64-i64:32:64-f80:32:32")),
FrameInfo(TargetFrameInfo::StackGrowsDown,
Subtarget.getStackAlignment(), Subtarget.is64Bit() ? -8 : -4),
InstrInfo(*this), JITInfo(*this), TLInfo(*this) {
More information about the llvm-commits
mailing list