diff options
author | Weining Lu <luweining@loongson.cn> | 2023-07-25 08:58:41 +0800 |
---|---|---|
committer | Weining Lu <luweining@loongson.cn> | 2023-07-25 08:59:40 +0800 |
commit | c299efbf284fae92bb8d7d29110f76912f089daf (patch) | |
tree | b50421b32c05803bfe20d358b638be18f15212e8 /clang/docs | |
parent | 669d2bbc837ee56d6bb05d5d55615246fc8b6b5c (diff) | |
download | llvm-c299efbf284fae92bb8d7d29110f76912f089daf.zip llvm-c299efbf284fae92bb8d7d29110f76912f089daf.tar.gz llvm-c299efbf284fae92bb8d7d29110f76912f089daf.tar.bz2 |
[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
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 2 |
1 files changed, 2 insertions, 0 deletions
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 ^^^^^^^^^^^^^^ |