You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LLVM data layout for i128 doesn't match Clang's alignment of __int128_t on 64-bit PowerPC, 64-bit SPARC and 64-bit MIPSÂ #102783
On 64-bit PowerPC, 64-bit SPARC and 64-bit MIPS, Clang gives __int128_t an alignment of 16 whereas the LLVM data layout (implicitly) gives i128 an alignment of 8. This means that LLVM-based compilers that use the LLVM data layout alignment directly (such as rustc) are ABI incompatible with Clang itself. This is the same as a previous bug on x86-64 that was fixed in D86310, just on different targets. As Clang's behaviour matches GCC (and the PowerPC64 ABI specification) the LLVM data layout is what needs to be updated.
Details
On 64-bit PowerPC, 64-bit SPARC and 64-bit MIPS, Clang gives `__int128_t` an alignment of 16 whereas the LLVM data layout (implicitly) gives `i128` an alignment of 8. This means that LLVM-based compilers that use the LLVM data layout alignment directly (such as `rustc`) are ABI incompatible with Clang itself. This is the same as a previous bug on x86-64 that was fixed in [D86310](https://reviews.llvm.org/D86310), just on different targets. As Clang's behaviour matches GCC (and the PowerPC64 ABI specification) the LLVM data layout is what needs to be updated.
Details
On 64-bit PowerPC, 64-bit SPARC and 64-bit MIPS, Clang gives `__int128_t` an alignment of 16 whereas the LLVM data layout (implicitly) gives `i128` an alignment of 8. This means that LLVM-based compilers that use the LLVM data layout alignment directly (such as `rustc`) are ABI incompatible with Clang itself. This is the same as a previous bug on x86-64 that was fixed in [D86310](https://reviews.llvm.org/D86310), just on different targets. As Clang's behaviour matches GCC (and the PowerPC64 ABI specification) the LLVM data layout is what needs to be updated.
Activity
llvmbot commentedon Aug 11, 2024
@llvm/issue-subscribers-backend-powerpc
Author: None (beetrees)
Details
On 64-bit PowerPC, 64-bit SPARC and 64-bit MIPS, Clang gives `__int128_t` an alignment of 16 whereas the LLVM data layout (implicitly) gives `i128` an alignment of 8. This means that LLVM-based compilers that use the LLVM data layout alignment directly (such as `rustc`) are ABI incompatible with Clang itself. This is the same as a previous bug on x86-64 that was fixed in [D86310](https://reviews.llvm.org/D86310), just on different targets. As Clang's behaviour matches GCC (and the PowerPC64 ABI specification) the LLVM data layout is what needs to be updated.llvmbot commentedon Aug 11, 2024
@llvm/issue-subscribers-backend-mips
Author: None (beetrees)
Details
On 64-bit PowerPC, 64-bit SPARC and 64-bit MIPS, Clang gives `__int128_t` an alignment of 16 whereas the LLVM data layout (implicitly) gives `i128` an alignment of 8. This means that LLVM-based compilers that use the LLVM data layout alignment directly (such as `rustc`) are ABI incompatible with Clang itself. This is the same as a previous bug on x86-64 that was fixed in [D86310](https://reviews.llvm.org/D86310), just on different targets. As Clang's behaviour matches GCC (and the PowerPC64 ABI specification) the LLVM data layout is what needs to be updated.brad0 commentedon Sep 3, 2024
cc @wzssyqa
brad0 commentedon Sep 3, 2024
cc @chenzheng1030
[SPARC] Align i128 to 16 bytes in SPARC datalayouts (#106951)
[SPARC] Align i128 to 16 bytes in SPARC datalayouts (#106951)
[SPARC] Align i128 to 16 bytes in SPARC datalayouts (#106951)
16 remaining items
Remove `i128` and `u128` from `improper_ctypes_definitions`
Remove `i128` and `u128` from `improper_ctypes_definitions`
Remove `i128` and `u128` from `improper_ctypes_definitions`
Rollup merge of rust-lang#137306 - tgross35:remove-i128-u128-improper…
Unrolled build for #137306
Rollup merge of #137306 - tgross35:remove-i128-u128-improper-ctypes, …
Remove `i128` and `u128` from `improper_ctypes_definitions`
Remove `i128` and `u128` from `improper_ctypes_definitions`
Rollup merge of rust-lang#137306 - tgross35:remove-i128-u128-improper…
[SPARC] Align i128 to 16 bytes in SPARC datalayouts (#106951)
[PowerPC] Update data layout aligment of i128 to 16 (#118004)
[SPARC] Align i128 to 16 bytes in SPARC datalayouts (llvm#106951)
[MIPS] LLVM data layout give i128 an alignment of 16 for mips64 (llvm…
[PowerPC] Update data layout aligment of i128 to 16 (llvm#118004)