fortran: caf_fail_image expects no argument
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 6 Sep 2020 16:24:50 +0000 (18:24 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 6 Sep 2020 16:29:09 +0000 (18:29 +0200)
gcc/fortran/ChangeLog

PR fortran/96947
* trans-stmt.c (gfc_trans_fail_image): caf_fail_image
expects no argument.

gcc/testsuite/ChangeLog

* gfortran.dg/coarray_fail_st.f90: Adjust test.

gcc/fortran/trans-stmt.c
gcc/testsuite/gfortran.dg/coarray_fail_st.f90

index 54b56c4f01d036b9f71bb2a0f3790c0594eabaae..1f183b9dcd03ecc042eca67845257577936ec32a 100644 (file)
@@ -689,8 +689,7 @@ gfc_trans_fail_image (gfc_code *code ATTRIBUTE_UNUSED)
 {
   if (flag_coarray == GFC_FCOARRAY_LIB)
     return build_call_expr_loc (input_location,
-                               gfor_fndecl_caf_fail_image, 1,
-                               build_int_cst (pchar_type_node, 0));
+                               gfor_fndecl_caf_fail_image, 0);
   else
     {
       const char *name = gfc_get_string (PREFIX ("exit_i%d"), 4);
index d4eb8e2c240be1aac5a52ac3727f22c792dadd96..8c86f55690b9364add552905553557323e539f38 100644 (file)
@@ -18,4 +18,4 @@ program fail_statement
 
 end program fail_statement
 
-! { dg-final { scan-tree-dump-times "_gfortran_caf_fail_image \\\(0B\\\);" 1 "original" } }
+! { dg-final { scan-tree-dump-times "_gfortran_caf_fail_image \\\(\\\);" 1 "original" } }