[clang] [Sparc][clang] make `_Complex` ABI GCC-compatible (PR #212340)

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 2 10:25:59 PDT 2026


s-barannikov wrote:

> > Also, are `_Complex types` passed in memory the same way? (when we'are out of argument registers)
> 
> the same way as what?

The same way as in registers. When, e.g., `_Complex char` is passed in a register, it is packed into the lowest 16 bits of the register. If the argument is forced to stack (because it's 10-th argument of a function or so), should it be packed in memory too? Or should it be passed like a struct of two fields in this case (one field per stack slot)?
I suspect there should be no difference, but wanted to confirm.


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


More information about the cfe-commits mailing list