[PATCH] Add STATIC_GETENV macro.
Joseph S. Myers
joseph@codesourcery.com
Mon Nov 11 17:42:00 GMT 2013
On Mon, 11 Nov 2013, Ondrej Bilka wrote:
> > The other issue is that we must support users compiling programs
> > with much older compilers than we support building glibc. When
> > were the __sync* builtins added? Can you always rely on them?
> > I thought they were being deprecated in favour of the atomic
> > builtins? I think you need several ifdefs there to account for
> > various ages of compilers.
> >
> This is bit unclear as they are mentioned in 4.1 documentation but they
> are earlier. I did not dig exact date, a first mention of
> compare_and_swap in git log is here so we could start from that.
That it's present on some architectures in a particular version doesn't
mean it's available (in that version, or at all) on all architectures
glibc supports; it's very architecture-specific.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list