@@ -1219,7 +1219,7 @@ PREFIX (register) (size_t size, caf_register_t type, caf_token_t *token,
12191219 caf_runtime_error (msg );
12201220 }
12211221}
1222- #else // GCC_GE_7
1222+ #else // GCC_LT_7
12231223void *
12241224PREFIX (register) (size_t size , caf_register_t type , caf_token_t * token ,
12251225 int * stat , char * errmsg , charlen_t errmsg_len )
@@ -1309,7 +1309,7 @@ PREFIX (register) (size_t size, caf_register_t type, caf_token_t *token,
13091309 }
13101310 return NULL ;
13111311}
1312- #endif
1312+ #endif // GCC_GE_7
13131313
13141314
13151315#ifdef GCC_GE_7
@@ -1358,7 +1358,7 @@ PREFIX (deregister) (caf_token_t *token, int *stat, char *errmsg, charlen_t errm
13581358 PREFIX (sync_all ) (NULL , NULL , 0 );
13591359#endif
13601360 }
1361- #endif
1361+ #endif // GCC_GE_7
13621362
13631363 {
13641364 struct caf_allocated_tokens_t * cur = caf_allocated_tokens , * prev ,
@@ -1447,7 +1447,7 @@ PREFIX (deregister) (caf_token_t *token, int *stat, char *errmsg, charlen_t errm
14471447 cur_stok = prev_stok ;
14481448 }
14491449 }
1450- #endif
1450+ #endif // GCC_GE_7
14511451#ifdef EXTRA_DEBUG_OUTPUT
14521452 fprintf (stderr , "Fortran runtime warning on image %d: Could not find token to free %p" ,
14531453 caf_this_image , * token );
@@ -2277,7 +2277,7 @@ PREFIX (sendget) (caf_token_t token_s, size_t offset_s, int image_index_s,
22772277 MPI_Type_free (& dt_s );
22782278 MPI_Type_free (& dt_d );
22792279 }
2280- #endif
2280+ #endif // STRIDED
22812281 else
22822282 {
22832283 if ((free_dst_t_buff = ((dst_t_buff = alloca (dst_size * size )) == NULL )))
@@ -2603,7 +2603,7 @@ PREFIX (sendget) (caf_token_t token_s, size_t offset_s, int image_index_s,
26032603 MPI_Type_free (& dt_s );
26042604 MPI_Type_free (& dt_d );
26052605 }
2606- #endif
2606+ #endif // STRIDED
26072607 else
26082608 {
26092609 if (!dst_same_image )
@@ -3042,7 +3042,7 @@ PREFIX (send) (caf_token_t token, size_t offset, int image_index,
30423042 MPI_Type_free (& dt_s );
30433043 MPI_Type_free (& dt_d );
30443044 }
3045- #endif
3045+ #endif // STRIDED
30463046 else
30473047 {
30483048 if (same_image && mrt )
@@ -3587,7 +3587,7 @@ PREFIX (get) (caf_token_t token, size_t offset, int image_index,
35873587 MPI_Type_free (& dt_s );
35883588 MPI_Type_free (& dt_d );
35893589 }
3590- #endif
3590+ #endif // STRIDED
35913591 else
35923592 {
35933593 if (same_image && mrt )
@@ -4873,7 +4873,7 @@ PREFIX (get_by_ref) (caf_token_t token, int image_index,
48734873 1 , stat , remote_image , false, false,
48744874#ifdef GCC_GE_8
48754875 src_type
4876- #else
4876+ #else // GCC_GE_7
48774877 -1 // should src_type be calculated here? something similar to GFC_DESCRIPTOR_TYPE(mpi_token->desc)
48784878#endif
48794879 );
@@ -5841,7 +5841,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
58415841 1 , stat , remote_image , false, false,
58425842#ifdef GCC_GE_8
58435843 dst_type
5844- #else
5844+ #else // GCC_GE_7
58455845 -1 // should dst_type be calculated here? something similar to GFC_DESCRIPTOR_TYPE(mpi_token->desc)
58465846#endif
58475847 );
@@ -6165,7 +6165,7 @@ PREFIX (sendget_by_ref) (caf_token_t dst_token, int dst_image_index,
61656165 : (2 * dst_kind );
61666166 temp_src_desc .base .dtype .rank = 1 ;
61676167 temp_src_desc .base .dtype .type = dst_type ;
6168- #else
6168+ #else // GCC_GE_7
61696169 temp_src_desc .base .dtype = GFC_DTYPE_INTEGER_4 | 1 ;
61706170#endif
61716171 temp_src_desc .base .offset = 0 ;
@@ -6476,7 +6476,7 @@ PREFIX(is_present) (caf_token_t token, int image_index, caf_reference_t *refs)
64766476 caf_this_image , caf_num_images , __FUNCTION__ , remote_memptr );
64776477 return remote_memptr != NULL ;
64786478}
6479- #endif
6479+ #endif // GCC_GE_7
64806480
64816481
64826482/* SYNC IMAGES. Note: SYNC IMAGES(*) is passed as count == -1 while
@@ -6619,7 +6619,7 @@ sync_images_internal (int count, int images[], int *stat, char *errmsg,
66196619 }
66206620#else
66216621 break ;
6622- #endif
6622+ #endif // WITH_FAILED_IMAGES
66236623 }
66246624 }
66256625
@@ -7627,7 +7627,7 @@ PREFIX (image_status) (int image)
76277627 return image_stati [image - 1 ];
76287628#else
76297629 unsupported_fail_images_message ("IMAGE_STATUS()" );
7630- #endif
7630+ #endif // WITH_FAILED_IMAGES
76317631
76327632 return 0 ;
76337633}
@@ -7675,7 +7675,7 @@ PREFIX (failed_images) (gfc_descriptor_t *array, int team __attribute__ ((unused
76757675 unsupported_fail_images_message ("FAILED_IMAGES()" );
76767676 array -> dim [0 ]._ubound = -1 ;
76777677 array -> base_addr = NULL ;
7678- #endif
7678+ #endif // WITH_FAILED_IMAGES
76797679
76807680#ifdef GCC_GE_8
76817681 array -> dtype .type = BT_INTEGER ;
@@ -7732,7 +7732,7 @@ PREFIX (stopped_images) (gfc_descriptor_t *array, int team __attribute__ ((unuse
77327732 unsupported_fail_images_message ("STOPPED_IMAGES()" );
77337733 array -> dim [0 ]._ubound = -1 ;
77347734 array -> base_addr = NULL ;
7735- #endif
7735+ #endif // WITH_FAILED_IMAGES
77367736
77377737#ifdef GCC_GE_8
77387738 array -> dtype .type = BT_INTEGER ;
0 commit comments