]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backport from mainline
authorTobias Burnus <tobias@codesourcery.com>
Fri, 20 Sep 2019 16:23:38 +0000 (18:23 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:51:25 +0000 (12:51 +0100)
commitbb911c6f61333cf8e1018f303a66c35add30011c
tree078aac60b3bb09c4600c0aee2688197174ca4dbf
parentff39b8b9248bcd24bc30d64fae8085322564d8ff
Backport from mainline

2019-09-20  Tobias Burnus  <tobias@codesourcery.com>

        * openmp.c (gfc_resolve_oacc_declare): Reject all
        non variables but accept function result variables.
        * trans-openmp.c (gfc_trans_omp_clauses): Handle
        function-result variables for remaing cases.

2019-09-20  Tobias Burnus  <tobias@codesourcery.com>

        * gfortran.dg/goacc/parameter.f95: Change
        dg-error as it is now detected earlier.
        * gfortran.dg/goacc/pr85701.f90: Modify to
        use a separate result variable.
        * gfortran.dg/goacc/pr78260.f90: New.
        * gfortran.dg/goacc/pr78260-2.f90: New.
        * gfortran.dg/gomp/pr78260.f90: New.
        * gfortran.dg/gomp/pr78260-2.f90: New.
        * gfortran.dg/gomp/pr78260-3.f90: New.

(cherry picked from openacc-gcc-9-branch commit
7d0d394c1c9bfb1b489c4ad3bd606d7a4765ae1d)
gcc/fortran/ChangeLog.omp
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/goacc/parameter.f95
gcc/testsuite/gfortran.dg/goacc/pr78260-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr78260.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr85701.f90
gcc/testsuite/gfortran.dg/gomp/pr78260-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr78260-3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr78260.f90 [new file with mode: 0644]