aboutsummaryrefslogtreecommitdiff
path: root/libitm/config
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-12-13 12:10:36 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-12-13 12:10:36 -0800
commit5d9d05d349e55217a11841377fda0646d86e17ba (patch)
treeaa1ae8558fc24b547193b7ff868195bd8bd45526 /libitm/config
parentb826bea7f3a828f9a8d23a0828572452101ced42 (diff)
downloadgcc-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/config')
-rw-r--r--libitm/config/posix/rwlock.cc2
1 files changed, 1 insertions, 1 deletions
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++;
}