[flang-commits] [flang] [flang] Fix RecordType sizes, TRANSFER lowering, and BIND(C) ABI on SystemZ/PPC64le (PR #220377)
Daniel Chen via flang-commits
flang-commits at lists.llvm.org
Sun Sep 6 08:26:38 PDT 2026
================
@@ -31,6 +31,48 @@ page](https://llvm.org/releases/).
## Bug Fixes
+- Fixed `fir::getTypeSizeAndAlignment` returning the wrong allocation size for
+ **packed derived types** (`SEQUENCE` types compiled with `PACK` / LLVM
+ packed-struct layout). Fields in a packed struct are placed back-to-back
+ using each component's allocation size (`alignTo(storeSize, ABIalign)`), not
+ its raw store size, and the struct ABI alignment is 1. For example, a packed
+ `{f80, i8}` on x86-64 now correctly reports 17 bytes instead of 11.
----------------
DanielCChen wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/220377
More information about the flang-commits
mailing list