[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


================
@@ -1654,6 +1654,10 @@ void CompilerInvocationBase::GenerateCodeGenArgs(const CodeGenOptions &Opts,
     GenerateArg(Consumer, Opt);
   }
 
+  if (T.isPPC32() && Opts.ComplexInRegABI == CodeGenOptions::CMPLX_InGPR) {
+    GenerateArg(Consumer, OPT_fcomplex_ppc_gnu_abi);
+  }
+
----------------
AaronBallman wrote:

```suggestion
  if (T.isPPC32() && Opts.ComplexInRegABI == CodeGenOptions::CMPLX_InGPR)
    GenerateArg(Consumer, OPT_fcomplex_ppc_gnu_abi);

```

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


More information about the cfe-commits mailing list