Re: [Patch] OpenMP: Add C++ support for 'omp allocate' with stack variables

2023-12-08 Thread Jakub Jelinek
On Fri, Oct 20, 2023 at 06:49:58PM +0200, Tobias Burnus wrote: > + if (!processing_template_decl) > + finish_omp_allocate (true, OMP_CLAUSE_LOCATION (nl), var); The above should be called even if processing_template_decl, see below. And pass DECL_ATTRIBUTES (var) to it (also see below).

*ping* / [Patch] OpenMP: Add C++ support for 'omp allocate' with stack variables

2023-11-07 Thread Tobias Burnus
As I know my lack of C++ FE knowledge, I would appreciate very much if someone could have a look to reduce the chance that I did something stupid or missed something obvious... https://gcc.gnu.org/pipermail/gcc-patches/2023-October/633782.html Tobias On 20.10.23 18:49, Tobias Burnus wrote: Thi

[Patch] OpenMP: Add C++ support for 'omp allocate' with stack variables

2023-10-20 Thread Tobias Burnus
This patch adds C++ support for OpenMP's 'omp allocate' for stack/automatic arrays. Comments and suggestions? — I bet there are given my little knowledge about the C++ FE... Tobias PS: I think I should write some additional C++-specific code, I bet some corner cases are missed. The question is