diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67d479b522e..7b8107526fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-31 Graham Stott + + * gcse.c (gcse_main): Fix typos. + (alloc_gcse_mem): Likewise. + 2001-12-31 Graham Stott * function.h: Remove undefs for rtx and tree. diff --git a/gcc/gcse.c b/gcc/gcse.c index 71ee0c6bead..78b549a47cc 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -831,11 +831,11 @@ gcse_main (f, file) { free_modify_mem_tables (); modify_mem_list - = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx *)); + = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx)); canon_modify_mem_list - = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx *)); - memset ((char *) modify_mem_list, 0, n_basic_blocks * sizeof (rtx *)); - memset ((char *) canon_modify_mem_list, 0, n_basic_blocks * sizeof (rtx *)); + = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx)); + memset ((char *) modify_mem_list, 0, n_basic_blocks * sizeof (rtx)); + memset ((char *) canon_modify_mem_list, 0, n_basic_blocks * sizeof (rtx)); orig_bb_count = n_basic_blocks; } free_reg_set_mem (); @@ -1019,10 +1019,10 @@ alloc_gcse_mem (f) max_gcse_regno); /* Allocate array to keep a list of insns which modify memory in each basic block. */ - modify_mem_list = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx *)); - canon_modify_mem_list = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx *)); - memset ((char *) modify_mem_list, 0, n_basic_blocks * sizeof (rtx *)); - memset ((char *) canon_modify_mem_list, 0, n_basic_blocks * sizeof (rtx *)); + modify_mem_list = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx)); + canon_modify_mem_list = (rtx *) gmalloc (n_basic_blocks * sizeof (rtx)); + memset ((char *) modify_mem_list, 0, n_basic_blocks * sizeof (rtx)); + memset ((char *) canon_modify_mem_list, 0, n_basic_blocks * sizeof (rtx)); modify_mem_list_set = BITMAP_XMALLOC (); canon_modify_mem_list_set = BITMAP_XMALLOC (); }