This is the mail archive of the gcc@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: Atomics in C++11


On Fri, Sep 20, 2019, 3:12 PM Nicholas Krause <xerofoify@gmail.com> wrote:

>
> On 9/20/19 4:09 PM, Jason Merrill wrote:
> > On Fri, Sep 20, 2019 at 8:32 AM Nicholas Krause <xerofoify@gmail.com>
> wrote:
> >> I was wondering if its possible to use the C11 atomics library for
> >> multithreading
> >>
> >> GCC. Not sure if its a good idea due to concerns about older plaforms
> >> not having a C11 supported libraries or compiler.
> > I've been wondering if it's time to move to C++11 in general, since
> > we've had compilers with C++11 support for more than 5 years at this
> > point.
> >
> > Jason
> >
> Jason,
>
> It's up to the community at large but both me and the other student who
> is CCed
>
> on this work would find it useful. He wants to use TLS for certain
> structures and
>
> functions to be doubled per thread for no locking e.t.c. and ease of
> programming.
>

When I reviewed TLS support for all RTEMS targets, it wasn't clear that TLS
ABI is defined for all supported GCC architectures or that it was
universally supported by the backends.

I'm not questioning the value of TLS. I'm just wanting to make sure all GCC
targets actually support TLS.

I may have missed a default generic implementation. It is really hard to
find ABI info for all pro processors.

I would be thrilled to learn I missed the default generic implementation.
This would make supporting it across the 18 architectures RTEMS supports
much easier. :)

>
>
> He can add his comments if need be,
>
> Nick
>
>


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