[clang] [ARM] Empty structs are 1-byte for C++ ABI (PR #124762)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 29 11:17:24 PST 2025


================
@@ -1144,6 +1144,12 @@ Arm and AArch64 Support
 
   * FUJITSU-MONAKA (fujitsu-monaka)
 
+- The AArch64 calling convention for empty structs in C++ mode was changed to
+  pass them as if they have a size of 1 byte, matching the AAPCS64
+  specification and GCC's implementation. The previous behaviour of ignoring
+  the argument can be restored using the -fclang-abi-compat=20 (or earlier)
----------------
efriedma-quic wrote:

20?  You're not planning to cherry-pick this to the release branch?

https://github.com/llvm/llvm-project/pull/124762


More information about the cfe-commits mailing list