[PATCH] Remove incorrect default implementation of atomics.

Torvald Riegel triegel@redhat.com
Mon Dec 8 17:26:00 GMT 2014


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.


2014-12-09  Torvald Riegel  <triegel@redhat.com>

	* bits/atomic.h: Remove file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomics-incorrect-default.patch
Type: text/x-patch
Size: 2114 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20141208/a1bc98a8/attachment.bin>


More information about the Libc-alpha mailing list