This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, libbacktrace] SPU does not support __sync or __atomic
- From: Ian Lance Taylor <iant at google dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Ian Lance Taylor <ian at airs dot com>
- Date: Fri, 28 Aug 2015 17:57:48 -0700
- Subject: Re: [PATCH, libbacktrace] SPU does not support __sync or __atomic
- Authentication-results: sourceware.org; auth=none
- References: <20150828165411 dot 941278775 at oc7340732750 dot ibm dot com>
On Fri, Aug 28, 2015 at 9:54 AM, Ulrich Weigand <uweigand@de.ibm.com> wrote:
>
> this is the (hopefully) last compatibility problem with libbacktrace on SPU:
> we do not have either the __sync or the __atomic routines (since the SPU
> is a fundamentally single-threaded target).
I guess I don't understand. These are GCC intrinsic functions that
ought to be supported on every target. There are many processors
other than the SPU that are fundamentally single-threaded. That
doesn't mean they can't support these functions; it just means that
their implementation is trivial.
When I look at the docs for the __sync and __atomic functions I don't
see anything saying "these functions are only available on some
targets."
Ian