OpenMP: detach - fix firstprivate handling
authorTobias Burnus <tobias@codesourcery.com>
Wed, 12 May 2021 22:12:31 +0000 (00:12 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 12 May 2021 22:14:34 +0000 (00:14 +0200)
commitd21963ce7a87db3d4a6921a0fa98b72ea6f4e7f5
treedb0aa327d96d9b4cd8630044235d7cc9c3cf669a
parentdb514f98a383b2ebdcfe74feb80f98f406cec174
OpenMP: detach - fix firstprivate handling

gcc/ChangeLog:

* omp-low.c (finish_taskreg_scan): Use the proper detach decl.

libgomp/ChangeLog:

* testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
* testsuite/libgomp.fortran/task-detach-12.f90: New test.
gcc/omp-low.c
libgomp/testsuite/libgomp.c-c++-common/task-detach-12.c [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/task-detach-12.f90 [new file with mode: 0644]