sched-rgn.c (BITSET_ADD, [...]): Cast 1 to unsigned HOST_WIDE_INT before left shift.

* sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
	1 to unsigned HOST_WIDE_INT before left shift.

From-SVN: r38813
This commit is contained in:
Jim Wilson 2001-01-09 02:40:18 +00:00 committed by Jeff Law
parent 18eb26d4fe
commit 9c8fad3381
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -519,7 +519,7 @@ do { register bitset tmpset = 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); \
}
/* Turn off the index'th bit in set. */
@ -529,7 +529,7 @@ do { register bitset tmpset = 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. */
@ -541,8 +541,9 @@ bitset_member (set, index, len)
{
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. */