Skip to content

Commit

Permalink
fortran: caf_fail_image expects no argument
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed Dec 21, 2020
1 parent 6040cb4 commit 7b4a256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gcc/fortran/trans-stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gfortran.dg/coarray_fail_st.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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" } }

0 comments on commit 7b4a256

Please sign in to comment.