+2000-01-08 Jim Wilson <wilson@redhat.com>
+
+ * sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
+ 1 to unsigned HOST_WIDE_INT before left shift.
+
2001-01-08 Nick Clifton <nickc@redhat.com>
* config/arm/arm.c (arm_mark_machine_status): Check to see if
abort (); \
else \
set[index/HOST_BITS_PER_WIDE_INT] |= \
- 1 << (index % HOST_BITS_PER_WIDE_INT); \
+ ((unsigned HOST_WIDE_INT) 1) << (index % HOST_BITS_PER_WIDE_INT); \
}
/* Turn off the index'th bit in set. */
abort (); \
else \
set[index/HOST_BITS_PER_WIDE_INT] &= \
- ~(1 << (index%HOST_BITS_PER_WIDE_INT)); \
+ ~(((unsigned HOST_WIDE_INT) 1) << (index % HOST_BITS_PER_WIDE_INT)); \
}
/* Check if the index'th bit in bitset set is on. */
{
if (index >= HOST_BITS_PER_WIDE_INT * len)
abort ();
- return (set[index / HOST_BITS_PER_WIDE_INT] &
- 1 << (index % HOST_BITS_PER_WIDE_INT)) ? 1 : 0;
+ return ((set[index / HOST_BITS_PER_WIDE_INT] &
+ ((unsigned HOST_WIDE_INT) 1) << (index % HOST_BITS_PER_WIDE_INT))
+ ? 1 : 0);
}
/* Translate a bit-set SET to a list BL of the bit-set members. */