Re: [committed] openmp: Add support for OpenMP 5.1 atomics for C++

2021-10-02 Thread H.J. Lu via Gcc-patches
On Fri, Sep 17, 2021 at 2:34 AM Jakub Jelinek via Gcc-patches wrote: > > Hi! > > Besides the C++ FE changes, I've noticed that the C FE didn't reject > #pragma omp atomic capture compare > { v = x; x = y; } > and other forms of atomic swap, this patch fixes that too. And the > c-family/ routi

[committed] openmp: Add support for OpenMP 5.1 atomics for C++

2021-09-17 Thread Jakub Jelinek via Gcc-patches
Hi! Besides the C++ FE changes, I've noticed that the C FE didn't reject #pragma omp atomic capture compare { v = x; x = y; } and other forms of atomic swap, this patch fixes that too. And the c-family/ routine needed quite a few changes so that the new code in it works fine with both FEs. B