This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68908] inefficient code for _Atomic operations
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Dec 2015 16:32:56 +0000
- Subject: [Bug c/68908] inefficient code for _Atomic operations
- Auto-submitted: auto-generated
- References: <bug-68908-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68908
--- Comment #14 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #13)
> (In reply to Marek Polacek from comment #10)
>
> C doesn't allow the atomic_fetch_xxx operations to be used with the
> atomic_bool type (it says they're "not applicable" without spelling what
> that means, but that will be the subject of a future defect; IMO, it should
> be a constraint and require an error). If GCC accepts it, it should be
> changed to either reject it or at least issue a warning.
I see, thanks. We should have a PR then; I'll open one. Shouldn't be hard to
fix, one would think.