[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 5 04:46:58 PDT 2024


================
@@ -2028,6 +2032,10 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
     }
   }
 
+  if (Args.getLastArg(OPT_fcomplex_ppc_gnu_abi)) {
+    Opts.setComplexInRegABI(CodeGenOptions::CMPLX_InGPR);
+  }
----------------
AaronBallman wrote:

```suggestion
  if (Args.getLastArg(OPT_fcomplex_ppc_gnu_abi))
    Opts.setComplexInRegABI(CodeGenOptions::CMPLX_InGPR);
```

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


More information about the cfe-commits mailing list