This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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, arm, testsuite] fix regression in test di-longlong64-sync-withldrexd.c


On 01/26/2012 02:35 AM, Greta Yorsh wrote:
> Before the change, __sync_lock_release expanded into STRD, storing DI value 0.

The most important question is: Is STRD guaranteed to perform the store
atomically?  (And conversely, does LDRD perform the load atomically?)

If so (even for a subset of arch revisions going forward), then the
correct solution is to define atomic_{load,store}di patterns.

If not, then your patch is correct.


r~


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