[clang] [PowerPC] make `_Complex` ABI GCC-compatible (PR #208917)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 12 15:57:46 PDT 2026


================
@@ -361,7 +361,18 @@ class PPC32_SVR4_ABIInfo : public DefaultABIInfo {
   bool IsSoftFloatABI;
   bool IsRetSmallStructInRegABI;
 
+  // Number of GPRs (r3..=r10) available for passing arguments, and their width.
+  static const int NumArgGPRs = 8;
+  static const unsigned GPRBits = 32;
+
+  bool isComplexGnuABI() const {
+    return !getTarget().getTriple().isOSDarwin() &&
----------------
hubert-reinterpretcast wrote:

@jrtc27, should the opt-out apply also to FreeBSD ppc32?

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


More information about the cfe-commits mailing list