diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-17 21:36:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-17 21:36:54 +0000 |
commit | a5dd89e3c5d141c8641890b17912392ab8257f1b (patch) | |
tree | 7b5d3b8a60113503d9c3f1b9611d7abdbc3e7e68 /lib/Target/ARM | |
parent | 3179bf24b4b41c1a5e045a1f342f54a02d212406 (diff) | |
download | llvm-a5dd89e3c5d141c8641890b17912392ab8257f1b.tar.gz llvm-a5dd89e3c5d141c8641890b17912392ab8257f1b.tar.bz2 llvm-a5dd89e3c5d141c8641890b17912392ab8257f1b.tar.xz |
On APCS, only try to align aggregates to 32 bits instead of 64.
This matches clang's behavior and since it is only a preference, it is not
an ABI issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index 960f5ca5ed..b46ec1da0e 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -92,9 +92,9 @@ static std::string computeDataLayout(ARMSubtarget &ST) { else Ret += "-v128:64:128"; - // An aggregate of size 0 is ABI aligned to 0. - // FIXME: explain better what this means. - if (ST.isThumb()) + // On thumb and APCS, only try to align aggregates to 32 bits (the default is + // 64 bits). + if (ST.isThumb() || ST.isAPCS_ABI()) Ret += "-a:0:32"; // Integer registers are 32 bits. |