This is the mail archive of the gcc-patches@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]

Re: [PATCH, libbacktrace] SPU does not support __sync or __atomic


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


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