Fix omp target issue with Fortran optional arguments
authorTobias Burnus <tobias@codesourcery.com>
Wed, 2 Oct 2019 10:33:42 +0000 (10:33 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 2 Oct 2019 10:33:42 +0000 (12:33 +0200)
commit67c259509c0ab6475a27e871afdf12434ac34d48
tree4059685457e50ba972a2fc329e18d9e2a647346d
parent73a28634098cb1aba4a1773e62b6387af120dd9e
Fix omp target issue with Fortran optional arguments

        gcc/
        * omp-low.c (lower_omp_target): Dereference optional argument
        to work with the right pointer.

        gcc/testsuite/
        * libgomp/testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: New.

From-SVN: r276445
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
libgomp/testsuite/libgomp.fortran/use_device_ptr-optional-1.f90 [new file with mode: 0644]