PATCH RFA: PR go/55201: Create libatomic convenience library
Richard Henderson
rth@redhat.com
Tue Dec 18 23:15:00 GMT 2012
On 12/18/2012 02:52 PM, Ian Lance Taylor wrote:
> Argh. But why? Wouldn't that only apply to cases where the lock was
> sometimes locked by one library and sometimes locked by a different
> one?
Or did you really mean
"... only apply to cases where the memory protected by the lock
was visible to more than one library."
Yes, if libgo is attempting atomic accesses to its own data structures,
which themselves are not exported from libgo, then a copy of libatomic
ought to work.
It would probably be better for the shared libgo to depend on the
shared libatomic though. That's simply more pedantically correct.
r~
More information about the Gcc-patches
mailing list