This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/65467] [libgomp] sorry, unimplemented: '_Atomic' with OpenMP
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Mar 2015 23:33:50 +0000
- Subject: [Bug libgomp/65467] [libgomp] sorry, unimplemented: '_Atomic' with OpenMP
- Auto-submitted: auto-generated
- References: <bug-65467-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65467
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
The issue is that someone needs to go through all the parsing for OpenMP
constructs, and figure out exactly where to add calls to
convert_lvalue_to_rvalue (if an OpenMP construct reads the value of an
object, reading the value of an _Atomic object must be an atomic load) and
what other special handling might be needed (if an OpenMP construct writes
to an object, it must be an atomic store; if it both reads and writes,
some form of compare-and-exchange may be needed).