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] Remove incorrect default implementation of atomics.


On Mon, Dec 08, 2014 at 06:26:52PM +0100, Torvald Riegel wrote:
> There's a default implementation of atomic operations that just uses
> sequential code.  This is incorrect because it at least would need
> proper compiler barriers, unless the arch using this somehow (can)
> make(s) assumptions about the compiler's optimizations too.
> 
> I don't think it's useful to keep this.  Every arch should have a
> correct implementation of atomics; having an incorrect default
> implementation is just error-prone.
>
Its dead header, As every supported gcc has __sync builin one could also
use it instead of this.
> 
> 2014-12-09  Torvald Riegel  <triegel@redhat.com>
> 
> 	* bits/atomic.h: Remove file.


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