This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Implement C11 _Atomic
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andrew MacLeod <amacleod at redhat dot com>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 Nov 2013 16:32:14 +0000
- Subject: Re: Implement C11 _Atomic
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1311052316480 dot 30260 at digraph dot polyomino dot org dot uk> <alpine dot BSF dot 2 dot 02 dot 1311210545480 dot 43309 at arjuna dot pair dot com> <528E1C0A dot 7020907 at redhat dot com> <alpine dot BSF dot 2 dot 02 dot 1311211010210 dot 53151 at arjuna dot pair dot com> <528E2CB6 dot 7020104 at redhat dot com>
On Thu, 21 Nov 2013, Andrew MacLeod wrote:
> > I'm trying to avoid ABI breakage of course. I'd rather not have
> > to ask people not to use _Atomic with 4.9 for CRIS ports using
> > official releases or have ABI breakage with the next release.
> > Maybe there's one other port in the same situation...
>
> None I am aware of, but that doesn't mean much :-)
It has been suggested that hppa may have interesting issues for atomics -
but I'd think atomics support for it in GCC would mainly be for GNU/Linux,
where you have kernel helpers that may avoid the issues with the
underlying architecture.
Note that if you want libstdc++ atomics to be ABI compatible with C
atomics then there may be more work to do on that side (again, there are
pieces on the branch).
--
Joseph S. Myers
joseph@codesourcery.com