This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Add STATIC_GETENV macro.


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


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