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
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_
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