aboutsummaryrefslogtreecommitdiff
path: root/gcc/sbitmap.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-06-07 14:30:25 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-06-07 14:30:25 +0000
commitb6e7e9af0465df9134110217990127a47bc5f5c5 (patch)
tree562f4507f40d0b9cd1ffaff1ad4960266f21f391 /gcc/sbitmap.c
parentac1826887e12c3e8ea95414455f882838a518d11 (diff)
downloadgcc-b6e7e9af0465df9134110217990127a47bc5f5c5.zip
gcc-b6e7e9af0465df9134110217990127a47bc5f5c5.tar.gz
gcc-b6e7e9af0465df9134110217990127a47bc5f5c5.tar.bz2
sbitmap.h (sbitmap_iterator, [...]): New.
* sbitmap.h (sbitmap_iterator, sbitmap_iter_init, sbitmap_iter_cond, sbitmap_iter_next): New. * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c, modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c, tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update uses of EXECUTE_IF_SET_IN_SBITMAP to the new style. From-SVN: r100709
Diffstat (limited to 'gcc/sbitmap.c')
-rw-r--r--gcc/sbitmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c
index 7c912a9..cbc5775 100644
--- a/gcc/sbitmap.c
+++ b/gcc/sbitmap.c
@@ -691,8 +691,10 @@ int
sbitmap_first_set_bit (sbitmap bmap)
{
unsigned int n;
+ sbitmap_iterator sbi;
- EXECUTE_IF_SET_IN_SBITMAP (bmap, 0, n, { return n; });
+ EXECUTE_IF_SET_IN_SBITMAP (bmap, 0, n, sbi)
+ return n;
return -1;
}