[flang-commits] [flang] a2e1257 - [flang] Added missing _Complex for COMPLEX(10) C reduction API.

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Mon Apr 17 18:02:16 PDT 2023


Author: Slava Zakharin
Date: 2023-04-17T18:02:03-07:00
New Revision: a2e1257589bccbd9ec65a5c9e4245e31058647d4

URL: https://github.com/llvm/llvm-project/commit/a2e1257589bccbd9ec65a5c9e4245e31058647d4
DIFF: https://github.com/llvm/llvm-project/commit/a2e1257589bccbd9ec65a5c9e4245e31058647d4.diff

LOG: [flang] Added missing _Complex for COMPLEX(10) C reduction API.

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

Added: 
    

Modified: 
    flang/runtime/complex-reduction.h

Removed: 
    


################################################################################
diff  --git a/flang/runtime/complex-reduction.h b/flang/runtime/complex-reduction.h
index 8e57f7c9149d2..5c4f1f5126e39 100644
--- a/flang/runtime/complex-reduction.h
+++ b/flang/runtime/complex-reduction.h
@@ -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 \


        


More information about the flang-commits mailing list