Re: incorrect use of 'pure' attribute

Bruno Haible via Gnulib discussion list <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <18998275.5WZRyvrzyv@cagnes>
Hi Arsen,

Arsen Arsenović wrote:
> I don't see the point of avoiding atomics here.

The point is portability. _Atomic was introduced in ISO C11; however, Gnulib
assumes C99 only.

Atomic types can't be emulated in Gnulib, because it's the compiler which
decides which instruction sequences to use for loads and stores.

When I build packages that need the Boehm GC package, on some of my target
machines it still needs a prior installation of the 'libatomic' package,
because without it, the compiler's support for atomic types is insufficient.

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.