Skip to content

Commit 3e92b21

Browse files
authored
Merge pull request #250 from sourceryinstitute/wrong-preproc-sym-4-haveint-128
Fix int128t issue
2 parents 611ee79 + 153efbb commit 3e92b21

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/mpi/mpi_caf.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,8 +2183,8 @@ get_for_ref (caf_reference_t *ref, size_t *i, size_t dst_index,
21832183
KINDCASE (2, int16_t);
21842184
KINDCASE (4, int32_t);
21852185
KINDCASE (8, int64_t);
2186-
#ifdef HAVE_INT128_T
2187-
KINDCASE (16, int128_t);
2186+
#ifdef HAVE_GFC_INTEGER_16
2187+
KINDCASE (16, __int128);
21882188
#endif
21892189
default:
21902190
caf_runtime_error (unreachable);
@@ -2325,8 +2325,8 @@ get_for_ref (caf_reference_t *ref, size_t *i, size_t dst_index,
23252325
KINDCASE (2, int16_t);
23262326
KINDCASE (4, int32_t);
23272327
KINDCASE (8, int64_t);
2328-
#ifdef HAVE_INT128_T
2329-
KINDCASE (16, int128_t);
2328+
#ifdef HAVE_GFC_INTEGER_16
2329+
KINDCASE (16, __int128);
23302330
#endif
23312331
default:
23322332
caf_runtime_error (unreachable);
@@ -2484,8 +2484,8 @@ _gfortran_caf_get_by_ref (caf_token_t token, int image_index,
24842484
KINDCASE (2, int16_t);
24852485
KINDCASE (4, int32_t);
24862486
KINDCASE (8, int64_t);
2487-
#if HAVE_INT128_T
2488-
KINDCASE (16, int128_t);
2487+
#if HAVE_GFC_INTEGER_16
2488+
KINDCASE (16, __int128);
24892489
#endif
24902490
default:
24912491
caf_runtime_error (vecrefunknownkind, stat, NULL, 0);
@@ -2671,8 +2671,8 @@ _gfortran_caf_get_by_ref (caf_token_t token, int image_index,
26712671
KINDCASE (2, int16_t);
26722672
KINDCASE (4, int32_t);
26732673
KINDCASE (8, int64_t);
2674-
#if HAVE_INT128_T
2675-
KINDCASE (16, int128_t);
2674+
#if HAVE_GFC_INTEGER_16
2675+
KINDCASE (16, __int128);
26762676
#endif
26772677
default:
26782678
caf_runtime_error (vecrefunknownkind, stat, NULL, 0);

0 commit comments

Comments
 (0)