[flang] Added missing _Complex for COMPLEX(10) C reduction API.
authorSlava Zakharin <szakharin@nvidia.com>
Sun, 16 Apr 2023 20:21:25 +0000 (13:21 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Tue, 18 Apr 2023 01:02:03 +0000 (18:02 -0700)
I noticed _Complex was missing for the long double case.
I might be missing something, but it looks like the compiler
does not call the C wrappers directly. Do we need to keep
the complex-reduction.[ch] at all?

Differential Revision: https://reviews.llvm.org/D148479

flang/runtime/complex-reduction.h

index 8e57f7c..5c4f1f5 100644 (file)
@@ -27,7 +27,7 @@ typedef _Lcomplex long_double_Complex_t;
 #else
 typedef float _Complex float_Complex_t;
 typedef double _Complex double_Complex_t;
-typedef long double long_double_Complex_t;
+typedef long double _Complex long_double_Complex_t;
 #endif
 
 #define REDUCTION_ARGS \