diff options
Diffstat (limited to 'gcc/df-core.c')
-rw-r--r-- | gcc/df-core.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/df-core.c b/gcc/df-core.c index 8d2d7a13a75..72a5eb59920 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -682,10 +682,8 @@ df_finish_pass (bool verify ATTRIBUTE_UNUSED) #endif #endif -#ifdef ENABLE_CHECKING - if (verify) + if (flag_checking && verify) df->changeable_flags |= DF_VERIFY_SCHEDULED; -#endif } @@ -1273,12 +1271,14 @@ df_analyze (void) for (i = 0; i < df->n_blocks; i++) bitmap_set_bit (current_all_blocks, df->postorder[i]); -#ifdef ENABLE_CHECKING - /* Verify that POSTORDER_INVERTED only contains blocks reachable from - the ENTRY block. */ - for (i = 0; i < df->n_blocks_inverted; i++) - gcc_assert (bitmap_bit_p (current_all_blocks, df->postorder_inverted[i])); -#endif + if (flag_checking) + { + /* Verify that POSTORDER_INVERTED only contains blocks reachable from + the ENTRY block. */ + for (i = 0; i < df->n_blocks_inverted; i++) + gcc_assert (bitmap_bit_p (current_all_blocks, + df->postorder_inverted[i])); + } /* Make sure that we have pruned any unreachable blocks from these sets. */ |