diff options
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r-- | gcc/bitmap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 70e0a93d086..ebbb6ee805f 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -414,7 +414,9 @@ bitmap_first_set_bit (bitmap a) #else for (word_num = 0; word_num < BITMAP_ELEMENT_WORDS; ++word_num) if ((word = ptr->bits[word_num]) != 0) - break; + goto word_found; + abort (); + word_found: #endif /* Binary search for the first set bit. */ @@ -469,7 +471,9 @@ bitmap_last_set_bit (bitmap a) #else for (word_num = BITMAP_ELEMENT_WORDS; word_num-- > 0; ) if ((word = ptr->bits[word_num]) != 0) - break; + goto word_found; + abort (); + word_found: #endif /* Binary search for the last set bit. */ |