signed/unsigned comparison werror.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182302
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
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++;
}