]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Fix ICE when 'if' clause used with 'target parallel' (PR95869)
authorKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 25 Jun 2020 11:40:53 +0000 (04:40 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 26 Jun 2020 21:17:37 +0000 (14:17 -0700)
commite807c48c7ae4c258919cf260be6a1d69e3d28ce1
treeab72f4f8f6659f3c75602336ccb6f96932507448
parent19d918333745ca6f4fcd528e65786e0660fa8383
fortran: Fix ICE when 'if' clause used with 'target parallel' (PR95869)

This is a backport from master
(commit f530bac8a11da9c85bdd8e58d589747f9825e38d).

2020-06-25  Tobias Burnus  <tobias@codesourcery.com>
    Kwok Cheung Yeung  <kcy@codesourery.com>

gcc/fortran/

PR fortran/95869
* trans-openmp.c (gfc_trans_omp_target): Use correct scoping block.

gcc/testsuite/

PR fortran/95869
* gfortran.dg/gomp/combined-if.f90 (test_target_parallel): Re-enable.
* gfortran.dg/gomp/pr95869.f90: New.
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/gomp/combined-if.f90
gcc/testsuite/gfortran.dg/gomp/pr95869.f90 [new file with mode: 0644]