https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97210

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>:

https://gcc.gnu.org/g:621fe931be1e0220854e4d3c49cf2ce05cf735f7

commit r16-76-g621fe931be1e0220854e4d3c49cf2ce05cf735f7
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Mon Apr 7 15:12:09 2025 +0200

    Fortran: Update get_team, team_number and image_status to F2018 [PR88154,
PR88960, PR97210, PR103001]

    Add functions get_team() and team_number() to comply with F2018
    standard.

    Update image_status() to comply with F2018 standard.

            PR fortran/88154
            PR fortran/88960
            PR fortran/97210
            PR fortran/103001

    gcc/fortran/ChangeLog:

            * check.cc (team_type_check): Check a type for being team_type
            from the iso_fortran_env module.
            (gfc_check_image_status): Use team_type check.
            (gfc_check_get_team): Check for level argument.
            (gfc_check_team_number): Use team_type check.
            * expr.cc (gfc_check_assign): Add treatment for returning
            team_type in caf-single mode.
            * gfortran.texi: Add/Update documentation for get_team and
            team_number API functions.
            * intrinsic.cc (add_functions): Update get_team signature.
            * intrinsic.h (gfc_resolve_get_team): Add prototype.
            * intrinsic.texi: Add/Update documentation for get_team and
            team_number Fortran functions.
            * iresolve.cc (gfc_resolve_get_team): Resolve return type to be
            of type team_type.
            * iso-fortran-env.def: Update STAT_LOCK constants.  They have
            nothing to do with files.  Add level constants for get_team.
            * libgfortran.h: Add level and unlock_stat constants.
            * simplify.cc (gfc_simplify_get_team): Simply to correct return
            type team_type.
            * trans-decl.cc (gfc_build_builtin_function_decls): Update
            get_team and image_status API prototypes to correct signatures.
            * trans-intrinsic.cc (conv_intrinsic_image_status): Translate
            second parameter correctly.
            (conv_intrinsic_team_number): Translate optional single team
            argument correctly.
            (gfc_conv_intrinsic_function): Add translation of get_team.

    libgfortran/ChangeLog:

            * caf/libcaf.h: Add constants for get_team's level argument and
            update stat values for failed images.
            (_gfortran_caf_team_number): Add prototype.
            (_gfortran_caf_get_team): Same.
            * caf/single.c (_gfortran_caf_team_number): Get the given team's
            team number.
            (_gfortran_caf_get_team): Get the current team or the team given
            by level when the argument is present.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray/image_status_1.f08: Correct check for
            team_type.
            * gfortran.dg/pr102458.f90: Adapt to multiple errors.
            * gfortran.dg/coarray/get_team_1.f90: New test.
            * gfortran.dg/team_get_1.f90: New test.
            * gfortran.dg/team_number_1.f90: Correct Fortran syntax.

Reply via email to