From db53dfce415f47b964616e271350223e8a08f217 Mon Sep 17 00:00:00 2001 From: Eugene Epshteyn Date: Fri, 25 Apr 2025 10:25:14 -0400 Subject: [PATCH] [flang] Change c_intmax_t to 64 bit to correspond to intmax_t in C (#137208) gcc, clang, and other C compiles define intmax_t to be 64 bit. Change flang's definition of c_intmax_t to be compatible. Fixes #128609 --- flang/module/iso_c_binding.f90 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/flang/module/iso_c_binding.f90 b/flang/module/iso_c_binding.f90 index 73d712cf3e75..8e3f78cea51b 100644 --- a/flang/module/iso_c_binding.f90 +++ b/flang/module/iso_c_binding.f90 @@ -47,11 +47,8 @@ module iso_c_binding c_long_long = c_int64_t, & c_signed_char = c_int8_t, & c_size_t = kind(c_sizeof(1)), & -#if __powerpc__ + ! Currently both gcc and clang define intmax_t to be 64 bit. c_intmax_t = c_int64_t, & -#else - c_intmax_t = c_int128_t, & -#endif c_intptr_t = c_size_t, & c_ptrdiff_t = c_size_t integer, parameter, public :: &