Skip to content

Commit f20ea05

Browse files
committed
[flang][runtime] Fixed aarach buildbots after #83169.
1 parent 8506a63 commit f20ea05

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

flang/include/flang/Common/float128.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#ifndef FORTRAN_COMMON_FLOAT128_H_
2121
#define FORTRAN_COMMON_FLOAT128_H_
2222

23+
#include <float.h>
24+
2325
#ifdef __cplusplus
2426
/*
2527
* libc++ does not fully support __float128 right now, e.g.

flang/runtime/complex-reduction.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ static long_double_Complex_t CMPLXL(long double r, long double i) {
7676
#endif
7777

7878
#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
79+
#ifndef CMPLXF128
7980
/*
8081
* GCC 7.4.0 (currently minimum GCC version for llvm builds)
8182
* supports __builtin_complex. For Clang, require >=12.0.
@@ -95,6 +96,7 @@ static CFloat128ComplexType CMPLXF128(CFloat128Type r, CFloat128Type i) {
9596
}
9697
#endif
9798
#endif
99+
#endif
98100

99101
/* RTNAME(SumComplex4) calls RTNAME(CppSumComplex4) with the same arguments
100102
* and converts the members of its C++ complex result to C _Complex.

0 commit comments

Comments
 (0)