diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-04-28 15:07:16 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-04-30 17:43:06 +0200 |
| commit | b06354707e33bbf24b04315a6909d257ad854007 (patch) | |
| tree | 0fbafea6437350d78f7f937467f6f3d278516ea3 | |
| parent | df8a5fa4dc6b604e457fe5e8bac82974d752036b (diff) | |
| download | sparse-dev-b06354707e33bbf24b04315a6909d257ad854007.tar.gz | |
fix alignment of 64 bit integers on LLP64
On LLP64 platforms, ointers & long long are 8 bytes width
*and* also aligned to 8 bytes.
However, the alignment was set to only 4 bytes.
Fix this by setting max_in_alignment to 8 for LLP64 too.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -455,7 +455,7 @@ static void handle_arch_m64_finalize(void) goto case_64bit_common; case ARCH_LLP64: bits_in_long = 32; - max_int_alignment = 4; + max_int_alignment = 8; size_t_ctype = &ullong_ctype; ssize_t_ctype = &llong_ctype; add_pre_buffer("#weak_define __LLP64__ 1\n"); |
