OpenMP: Add implicit declare target for nested procedures
authorTobias Burnus <tobias@codesourcery.com>
Wed, 30 Sep 2020 12:59:27 +0000 (14:59 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 30 Sep 2020 12:59:27 +0000 (14:59 +0200)
commit8b0a63e47cd83f4e8534d0d201739bdd10f321a2
tree9331e8dd74b5c1ff5758a9de0a08daa18cd3ad16
parentfcc4891d7f3bff1a3f7428f12830bc942989306c
OpenMP: Add implicit declare target for nested procedures

gcc/ChangeLog:

* omp-offload.c (omp_discover_implicit_declare_target): Also
handled nested functions.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/declare-target-3.f90: New test.
gcc/omp-offload.c
libgomp/testsuite/libgomp.fortran/declare-target-3.f90 [new file with mode: 0644]