From c299efbf284fae92bb8d7d29110f76912f089daf Mon Sep 17 00:00:00 2001 From: Weining Lu Date: Tue, 25 Jul 2023 08:58:41 +0800 Subject: [Clang][LoongArch] Fix ABI handling of empty structs in C++ to match GCC behaviour GCC doesn't ignore non-zero-length array of empty structures in C++ while clang does. What this patch did is to match GCC's behaviour although this rule is not documented in psABI. Similar to D142327 for RISCV. Reviewed By: xry111, xen0n Differential Revision: https://reviews.llvm.org/D156116 --- clang/docs/ReleaseNotes.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/docs') diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 4f82edd..cd0d468 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -891,6 +891,8 @@ LoongArch Support on LoongArch. - Unaligned memory accesses can be toggled by ``-m[no-]unaligned-access`` or the aliases ``-m[no-]strict-align``. +- An ABI mismatch between GCC and Clang related to the handling of empty structs + in C++ parameter passing under ``lp64d`` ABI was fixed. RISC-V Support ^^^^^^^^^^^^^^ -- cgit v1.1