OSDN Git Service

Allow libcalls to be installed for legacy __sync optabs.
[pf3gnuchains/gcc-fork.git] / gcc / gimple-iterator.c
index 064b7fe..f5a1d26 100644 (file)
@@ -84,7 +84,7 @@ update_call_edge_frequencies (gimple_seq_node first, basic_block bb)
           to avoid calling them if we never see any calls.  */
        if (cfun_node == NULL)
          {
-           cfun_node = cgraph_node (current_function_decl);
+           cfun_node = cgraph_get_node (current_function_decl);
            bb_freq = (compute_call_stmt_bb_frequency
                       (current_function_decl, bb));
          }
@@ -597,9 +597,7 @@ void
 gsi_move_to_bb_end (gimple_stmt_iterator *from, basic_block bb)
 {
   gimple_stmt_iterator last = gsi_last_bb (bb);
-#ifdef ENABLE_CHECKING
-  gcc_assert (gsi_bb (last) == bb);
-#endif
+  gcc_checking_assert (gsi_bb (last) == bb);
 
   /* Have to check gsi_end_p because it could be an empty block.  */
   if (!gsi_end_p (last) && is_ctrl_stmt (gsi_stmt (last)))