summaryrefslogtreecommitdiff
path: root/gcc/sbitmap.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-10 19:35:13 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-10 19:35:13 +0000
commitaf122f0a2b36bef94b8fcf35fd41847751205d4b (patch)
treec47eb72bec9e1782d25595328b3e628141694001 /gcc/sbitmap.c
parentcda3065616ea668523ac22e67b5c98c5f554667d (diff)
downloadgcc-af122f0a2b36bef94b8fcf35fd41847751205d4b.tar.gz
* sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
of sequence point problems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sbitmap.c')
-rw-r--r--gcc/sbitmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c
index da27c3212b3..a6f710e0cc2 100644
--- a/gcc/sbitmap.c
+++ b/gcc/sbitmap.c
@@ -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;