diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 117fbb779b6..8d26a00c153 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-11-09 Kazu Hirata + + * tree-cfg.c (create_bb): Remove unnecessary memset. + 2004-11-09 Kazu Hirata * tree-ssa-threadupdate.c (copy_phis_to_block): Remove. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 8da78c8ff0d..8c1a06f621c 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -375,9 +375,10 @@ create_bb (void *h, void *e, basic_block after) gcc_assert (!e); - /* Create and initialize a new basic block. */ + /* Create and initialize a new basic block. Since alloc_block uses + ggc_alloc_cleared to allocate a basic block, we do not have to + clear the newly allocated basic block here. */ bb = alloc_block (); - memset (bb, 0, sizeof (*bb)); bb->index = last_basic_block; bb->flags = BB_NEW;