Skip to content

Commit db53dfc

Browse files
[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
1 parent 9f94e36 commit db53dfc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

flang/module/iso_c_binding.f90

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ module iso_c_binding
4747
c_long_long = c_int64_t, &
4848
c_signed_char = c_int8_t, &
4949
c_size_t = kind(c_sizeof(1)), &
50-
#if __powerpc__
50+
! Currently both gcc and clang define intmax_t to be 64 bit.
5151
c_intmax_t = c_int64_t, &
52-
#else
53-
c_intmax_t = c_int128_t, &
54-
#endif
5552
c_intptr_t = c_size_t, &
5653
c_ptrdiff_t = c_size_t
5754
integer, parameter, public :: &

0 commit comments

Comments
 (0)