mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 01:59:01 +08:00
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:
parent
18eb26d4fe
commit
9c8fad3381
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user