mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Fix ABI issue: Longs really do need to be only 4 byte aligned on X86.
This bug caused miscompilation of programs using 'struct stat', but only if compiled with support for 64-bit filesystems. This could in theory effect other things, but only if the LLVM code shared data structures with native code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57e5a702d0
commit
7540565863
@ -39,7 +39,8 @@ X86TargetMachine::X86TargetMachine(unsigned Config)
|
||||
(Config & TM::EndianMask) == TM::LittleEndian,
|
||||
(Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4,
|
||||
(Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4,
|
||||
(Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4),
|
||||
(Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4,
|
||||
4, (Config & TM::PtrSizeMask) == TM::PtrSize64 ? 8 : 4),
|
||||
FrameInfo(TargetFrameInfo::StackGrowsDown, 8/*16 for SSE*/, 4) {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user