Re: [patch] OpenMP: Fortran - support omp flush's memorder clauses

2020-10-23 Thread Bernhard Reutner-Fischer via Gcc-patches
On 22 October 2020 17:02:36 CEST, Jakub Jelinek via Gcc-patches wrote: >On Thu, Oct 22, 2020 at 04:52:10PM +0200, Tobias Burnus wrote: >> + else >> +{ >> + enum memmodel mo = MEMMODEL_LAST; >> + switch (code->ext.omp_clauses->memorder) >> +{ >> +case OMP_MEMORDER_ACQ_REL: m

Re: [patch] OpenMP: Fortran - support omp flush's memorder clauses

2020-10-22 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 22, 2020 at 04:52:10PM +0200, Tobias Burnus wrote: > + else > +{ > + enum memmodel mo = MEMMODEL_LAST; > + switch (code->ext.omp_clauses->memorder) > + { > + case OMP_MEMORDER_ACQ_REL: mo = MEMMODEL_ACQ_REL; break; > + case OMP_MEMORDER_RELEASE: mo = MEMMODEL_

[patch] OpenMP: Fortran - support omp flush's memorder clauses

2020-10-22 Thread Tobias Burnus
Add the memorder clause of OpenMP 5 which are already supported by C/C++. (I copied & adapted the two C/C++ testcases.) OK? Tobias PS: An alternative to creating an additional enum would be to include memmodel.h in gfortran.h - and use it directly. But at the end, I decided to copy to follow t