X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcfghooks.c;h=c6e4bc0331338d7fb2224184d8a7865b88076548;hb=268b04d89736a4fa8bf2669f181f5b0db4d4ba46;hp=2c65726fe1777e478faf595a5a8e3c472276cda5;hpb=2ea77971ee058ff5608c1f4dd45f410a87a5152c;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 2c65726fe17..c6e4bc03313 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see #include "basic-block.h" #include "tree-flow.h" #include "timevar.h" -#include "toplev.h" +#include "diagnostic-core.h" #include "cfgloop.h" /* A pointer to one of the hooks containers. */ @@ -88,7 +88,7 @@ current_ir_type (void) Currently it does following: checks edge and basic block list correctness and calls into IL dependent checking then. */ -void +DEBUG_FUNCTION void verify_flow_info (void) { size_t *edge_checksum; @@ -437,6 +437,7 @@ split_block (basic_block bb, void *i) new_bb->count = bb->count; new_bb->frequency = bb->frequency; new_bb->loop_depth = bb->loop_depth; + new_bb->discriminator = bb->discriminator; if (dom_info_available_p (CDI_DOMINATORS)) { @@ -769,7 +770,7 @@ make_forwarder_block (basic_block bb, bool (*redirect_edge_p) (edge), && dummy->loop_father->header == dummy && dummy->loop_father->latch == e_src) dummy->loop_father->latch = jump; - + if (new_bb_cbk != NULL) new_bb_cbk (jump); } @@ -905,9 +906,7 @@ duplicate_block (basic_block bb, edge e, basic_block after) if (bb->count < new_count) new_count = bb->count; -#ifdef ENABLE_CHECKING - gcc_assert (can_duplicate_block_p (bb)); -#endif + gcc_checking_assert (can_duplicate_block_p (bb)); new_bb = cfg_hooks->duplicate_block (bb); if (after)