This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/68908] inefficient code for _Atomic operations


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]