+2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
+
+ * cfg.c (unchecked_make_edge, redirect_edge_succ,
+ redirect_edge_pred): Use VEC_safe_push instead of
+ VEC_safe_insert.
+ * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
+
2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
* cfgloopmanip.c (loopify): Take two more arguments true_edge
e = ggc_alloc_cleared (sizeof (*e));
n_edges++;
- VEC_safe_insert (edge, src->succs, 0, e);
- VEC_safe_insert (edge, dst->preds, 0, e);
+ VEC_safe_push (edge, src->succs, e);
+ VEC_safe_push (edge, dst->preds, e);
e->src = src;
e->dest = dst;
gcc_assert (found);
/* Reconnect the edge to the new successor block. */
- VEC_safe_insert (edge, new_succ->preds, 0, e);
+ VEC_safe_push (edge, new_succ->preds, e);
e->dest = new_succ;
}
gcc_assert (found);
/* Reconnect the edge to the new predecessor block. */
- VEC_safe_insert (edge, new_pred->succs, 0, e);
+ VEC_safe_push (edge, new_pred->succs, e);
e->src = new_pred;
}
gcc_assert (found);
- VEC_safe_insert (edge, bb->succs, 0, e);
+ VEC_safe_push (edge, bb->succs, e);
make_single_succ_edge (ENTRY_BLOCK_PTR, bb, EDGE_FALLTHRU);
}
}