diff options
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index e3b6e2007e3..f175208cfd3 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -560,9 +560,7 @@ single_pred_p (const_basic_block bb) static inline edge single_succ_edge (const_basic_block bb) { -#ifdef ENABLE_CHECKING - gcc_assert (single_succ_p (bb)); -#endif + gcc_checking_assert (single_succ_p (bb)); return EDGE_SUCC (bb, 0); } @@ -572,9 +570,7 @@ single_succ_edge (const_basic_block bb) static inline edge single_pred_edge (const_basic_block bb) { -#ifdef ENABLE_CHECKING - gcc_assert (single_pred_p (bb)); -#endif + gcc_checking_assert (single_pred_p (bb)); return EDGE_PRED (bb, 0); } @@ -606,9 +602,7 @@ typedef struct { static inline VEC(edge,gc) * ei_container (edge_iterator i) { -#ifdef ENABLE_CHECKING - gcc_assert (i.container); -#endif + gcc_checking_assert (i.container); return *i.container; } @@ -659,9 +653,7 @@ ei_one_before_end_p (edge_iterator i) static inline void ei_next (edge_iterator *i) { -#ifdef ENABLE_CHECKING - gcc_assert (i->index < EDGE_COUNT (ei_container (*i))); -#endif + gcc_checking_assert (i->index < EDGE_COUNT (ei_container (*i))); i->index++; } @@ -669,9 +661,7 @@ ei_next (edge_iterator *i) static inline void ei_prev (edge_iterator *i) { -#ifdef ENABLE_CHECKING - gcc_assert (i->index > 0); -#endif + gcc_checking_assert (i->index > 0); i->index--; } |