Skip to content

Commit 13e2200

Browse files
authored
[Flang] remove assert using femode_t from AIX (#74500)
AIX does not have `femode_t` in `<cfenv>` header, removing the assert to fix build failures --------- Co-authored-by: Mark Danial <[email protected]>
1 parent 7fc792c commit 13e2200

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

flang/runtime/exceptions.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,8 @@ std::int32_t RTNAME(MapException)(int32_t except) {
7777

7878
// Verify that the size of ieee_modes_type and ieee_status_type objects from
7979
// intrinsic module file __fortran_ieee_exceptions.f90 are large enough to
80-
// hold femode_t and fenv_t objects, respectively.
81-
#ifndef _WIN32
82-
static_assert(
83-
sizeof(femode_t) <= sizeof(int) * _FORTRAN_RUNTIME_IEEE_FEMODE_T_EXTENT,
84-
"increase ieee_modes_type size");
85-
#endif
80+
// hold fenv_t object.
81+
// TODO: consider femode_t object size comparison once its more mature.
8682
static_assert(
8783
sizeof(fenv_t) <= sizeof(int) * _FORTRAN_RUNTIME_IEEE_FENV_T_EXTENT,
8884
"increase ieee_status_type size");

0 commit comments

Comments
 (0)