+2010-02-03 Ivan Maidanski <ivmai@mail.ru>
+
+ * src/atomic_ops_stack.c (AO_stack_push_explicit_aux_release):
+ Define "i" variable only if used (to suppress a compiler warning).
+
2010-02-02 Ivan Maidanski <ivmai@mail.ru>
* src/atomic_ops/sysdeps/sunc/x86.h (AO_test_and_set_full): Fix
AO_stack_push_explicit_aux_release(volatile AO_t *list, AO_t *x,
AO_stack_aux *a)
{
- int i;
AO_t x_bits = (AO_t)x;
AO_t next;
AO_t entry2 = AO_load(a -> AO_stack_bl + 1);
if (entry1 == x_bits || entry2 == x_bits)
{
- /* Entry is currently being removed. Change it a little. */
+ /* Entry is currently being removed. Change it a little. */
++x_bits;
if ((x_bits & AO_BIT_MASK) == 0)
/* Version count overflowed; */
}
}
# else
+ {
+ int i;
for (i = 0; i < AO_BL_SIZE; ++i)
{
if (AO_load(a -> AO_stack_bl + i) == x_bits)
{
- /* Entry is currently being removed. Change it a little. */
+ /* Entry is currently being removed. Change it a little. */
++x_bits;
if ((x_bits & AO_BIT_MASK) == 0)
/* Version count overflowed; */
goto retry;
}
}
+ }
# endif
/* x_bits is not currently being deleted */
do