[Bug fortran/97655] gcc/fortran/openmp.c:4133: possible cut'n'paste error ?

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 31 16:56:06 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97655

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Guess the second condition should be !c->capture.
The spec says that atomic_default_mem_order(acq_rel) makes mem-order-clause
default to acquire for read, acq_rel for capture and release otherwise - write
or update or atomic-clause missing.
Now, something I have clearly missed in the review, why is capture not part of
atomic_op?  capture is atomic-clause like the others.  And I'd be afraid we'd
allow something like !$omp atomic capture update or !$omp atomic update capture
by making it separate.


More information about the Gcc-bugs mailing list