sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential of sequence point problems.

* sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
	of sequence point problems.

From-SVN: r33064
This commit is contained in:
Richard Kenner 2000-04-10 19:35:13 +00:00 committed by Richard Kenner
parent 96e1d96c91
commit a4ff8d98ba
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
of sequence point problems.
2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
* rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):

View File

@ -265,9 +265,8 @@ sbitmap_a_subset_b_p (a, b)
unsigned int i;
sbitmap_ptr ap, bp;
for (ap = a->elms, bp = b->elms, i = 0; i < a->size; i++)
if ((*ap++ | *bp++) != *bp)
for (ap = a->elms, bp = b->elms, i = 0; i < a->size; i++, ap++, bp++)
if ((*ap | *bp) != *bp)
return 0;
return 1;