diff options
author | Richard Henderson <rth@redhat.com> | 2011-12-13 12:10:36 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-12-13 12:10:36 -0800 |
commit | 5d9d05d349e55217a11841377fda0646d86e17ba (patch) | |
tree | aa1ae8558fc24b547193b7ff868195bd8bd45526 /libitm | |
parent | b826bea7f3a828f9a8d23a0828572452101ced42 (diff) | |
download | gcc-5d9d05d349e55217a11841377fda0646d86e17ba.zip gcc-5d9d05d349e55217a11841377fda0646d86e17ba.tar.gz gcc-5d9d05d349e55217a11841377fda0646d86e17ba.tar.bz2 |
rwlock.cc (gtm_rwlock::write_lock_generic): Fix signed/unsigned comparison werror.
* config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
signed/unsigned comparison werror.
From-SVN: r182302
Diffstat (limited to 'libitm')
-rw-r--r-- | libitm/ChangeLog | 3 | ||||
-rw-r--r-- | libitm/config/posix/rwlock.cc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog index cfb959d..1b5966e 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,5 +1,8 @@ 2011-12-13 Richard Henderson <rth@redhat.com> + * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix + signed/unsigned comparison werror. + * local_atomic: New file. * libitm_i.h: Include it. (gtm_thread::shared_state): Use atomic template. diff --git a/libitm/config/posix/rwlock.cc b/libitm/config/posix/rwlock.cc index e1e3dcf..2464f04 100644 --- a/libitm/config/posix/rwlock.cc +++ b/libitm/config/posix/rwlock.cc @@ -193,7 +193,7 @@ gtm_rwlock::write_lock_generic (gtm_thread *tx) it = it->next_thread) { // Don't count ourself if this is an upgrade. - if (it->shared_state.load(memory_order_relaxed) != -1) + if (it->shared_state.load(memory_order_relaxed) != (gtm_word)-1) readers++; } |