This is the mail archive of the glibc-bugs@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]

[Bug libc/17404] New: atomic_exchange_rel lacking a barrier on MIPS16, GCC before 4.7?


https://sourceware.org/bugzilla/show_bug.cgi?id=17404

            Bug ID: 17404
           Summary: atomic_exchange_rel lacking a barrier on MIPS16, GCC
                    before 4.7?
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: triegel at redhat dot com
                CC: drepper.fsp at gmail dot com

MIPS16 on GCC before 4.7 implements atomic_exchange_acq using
__sync_lock_test_and_set (which has only acquire semantics) yet does not define
atomic_exchange_rel.  This will lead to atomic_exchange_rel having only acquire
semantics and not release semantics.

__sync_lock_test_and_set might be stronger on MIPS16, but Joseph reports that
he did not see anything special there to give a stronger barrier.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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