[flang-commits] [flang] f20ea05 - [flang][runtime] Fixed aarach buildbots after #83169.

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Feb 27 17:04:45 PST 2024


Author: Slava Zakharin
Date: 2024-02-27T17:03:48-08:00
New Revision: f20ea05f3b2218a7103612e5e367398b0b27bb27

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

LOG: [flang][runtime] Fixed aarach buildbots after #83169.

Added: 
    

Modified: 
    flang/include/flang/Common/float128.h
    flang/runtime/complex-reduction.c

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Common/float128.h b/flang/include/flang/Common/float128.h
index 6aa98df5529df2..61b3a77b867a93 100644
--- a/flang/include/flang/Common/float128.h
+++ b/flang/include/flang/Common/float128.h
@@ -20,6 +20,8 @@
 #ifndef FORTRAN_COMMON_FLOAT128_H_
 #define FORTRAN_COMMON_FLOAT128_H_
 
+#include <float.h>
+
 #ifdef __cplusplus
 /*
  * libc++ does not fully support __float128 right now, e.g.

diff  --git a/flang/runtime/complex-reduction.c b/flang/runtime/complex-reduction.c
index 06e4f15c7fa9b5..72c31ce08b875a 100644
--- a/flang/runtime/complex-reduction.c
+++ b/flang/runtime/complex-reduction.c
@@ -76,6 +76,7 @@ static long_double_Complex_t CMPLXL(long double r, long double i) {
 #endif
 
 #if LDBL_MANT_DIG == 113 || HAS_FLOAT128
+#ifndef CMPLXF128
 /*
  * GCC 7.4.0 (currently minimum GCC version for llvm builds)
  * supports __builtin_complex. For Clang, require >=12.0.
@@ -95,6 +96,7 @@ static CFloat128ComplexType CMPLXF128(CFloat128Type r, CFloat128Type i) {
 }
 #endif
 #endif
+#endif
 
 /* RTNAME(SumComplex4) calls RTNAME(CppSumComplex4) with the same arguments
  * and converts the members of its C++ complex result to C _Complex.


        


More information about the flang-commits mailing list