Re: [Patch] OpenMP: Fix 'omp declare target' handling for vars [PR99509]

2021-03-15 Thread Jakub Jelinek via Gcc-patches
On Mon, Mar 15, 2021 at 09:17:47AM +0100, Tobias Burnus wrote: > gcc/c/ChangeLog: > > PR c++/99509 > * c-decl.c (finish_decl): For 'omp declare target implicit' vars, > ensure that the varpool node is marked as offloadable. > > gcc/cp/ChangeLog: > > PR c++/99509 > *

Re: [Patch] OpenMP: Fix 'omp declare target' handling for vars [PR99509]

2021-03-15 Thread Tobias Burnus
On 12.03.21 13:20, Jakub Jelinek wrote: On Wed, Mar 10, 2021 at 03:20:42PM +0100, Tobias Burnus wrote: The C/C++ FE sets for an 'omp declare target' ... 'omp end declare target' the attribute 'omp declare target implicit'. That's later processed (for C++) in decl.c - which remove that attribute

Re: [Patch] OpenMP: Fix 'omp declare target' handling for vars [PR99509]

2021-03-12 Thread Jakub Jelinek via Gcc-patches
On Wed, Mar 10, 2021 at 03:20:42PM +0100, Tobias Burnus wrote: > The C/C++ FE sets for an 'omp declare target' ... 'omp end declare target' > the attribute 'omp declare target implicit'. > > That's later processed (for C++) in decl.c - which remove that attribute > and either keeps and explicit 'o

[Patch] OpenMP: Fix 'omp declare target' handling for vars [PR99509]

2021-03-10 Thread Tobias Burnus
The C/C++ FE sets for an 'omp declare target' ... 'omp end declare target' the attribute 'omp declare target implicit'. That's later processed (for C++) in decl.c - which remove that attribute and either keeps and explicit 'omp declare target' or 'omp declare target link' attribute. Unfortunatel