Re: [gomp4] Implement OpenACC 2.5 reference counting, and finalize clause

2017-05-17 Thread Thomas Schwinge
Hi! On Tue, 16 May 2017 20:55:46 +0800, Chung-Lin Tang wrote: > finalize clause of the exit data directive, and the > corresponding API routines. > --- libgomp/oacc-parallel.c (revision 248095) > +++ libgomp/oacc-parallel.c (revision 248096) > @@ -355,7 +355,22 @@ > } > } >el

Re: [gomp4] Implement OpenACC 2.5 reference counting, and finalize clause

2017-05-17 Thread Thomas Schwinge
Hi! On Tue, 16 May 2017 20:55:46 +0800, Chung-Lin Tang wrote: > finalize clause of the exit data directive Thanks! > --- libgomp/oacc-parallel.c (revision 248095) > +++ libgomp/oacc-parallel.c (revision 248096) > void > GOACC_enter_exit_data (int device, size_t mapnum, >

Re: [gomp4] Implement OpenACC 2.5 reference counting, and finalize clause

2017-05-17 Thread Thomas Schwinge
Hi! On Tue, 16 May 2017 20:55:46 +0800, Chung-Lin Tang wrote: > finalize clause of the exit data directive This would run into ICEs in the C++ front end (template handling) as well as C and Fortran front ends (nested function handling), and didn't pretty-print the "finalize" clause. Also test

Re: [gomp4] Implement OpenACC 2.5 reference counting, and finalize clause

2017-05-17 Thread Thomas Schwinge
Hi! On Tue, 16 May 2017 20:55:46 +0800, Chung-Lin Tang wrote: > finalize clause of the exit data directive The OpenACC front end code currently maps the OpenACC delete clause to "OMP_CLAUSE_DELETE" -- however, without a finalize clause, this clause actually has "OMP_CLAUSE_RELEASE" semantics.