From 2a92c071f8d1295f3672a0683f1f2cc917ddeb40 Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Fri, 9 Oct 1998 09:08:51 -0700 Subject: flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use. Fri Oct 9 16:03:19 1998 Graham * flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use. * gcc.c (add_preprocessor_option): Correct typo when allocating memory, sizeof() argument had one too many `*'. (add_assembler_option): Likewise. (add_linker_option): Likewise. * gcov.c (output_data): Likewise. * local-alloc.c (memref_used_between_p): Likewise. (update_equiv_regs): Likewise. * loop.c (strength_reduce): Likewise. * reg-stack.c (record_asm_reg_life): Likewise. (subst_asm_stack_reg): Likewise. * reorg.c (dbr_schedule): Likewise. From-SVN: r22964 --- gcc/gcc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gcc/gcc.c') diff --git a/gcc/gcc.c b/gcc/gcc.c index 64fa16d..3dc6518 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2522,11 +2522,11 @@ add_preprocessor_option (option, len) if (! preprocessor_options) preprocessor_options - = (char **) xmalloc (n_preprocessor_options * sizeof (char **)); + = (char **) xmalloc (n_preprocessor_options * sizeof (char *)); else preprocessor_options = (char **) xrealloc (preprocessor_options, - n_preprocessor_options * sizeof (char **)); + n_preprocessor_options * sizeof (char *)); preprocessor_options [n_preprocessor_options - 1] = save_string (option, len); } @@ -2540,11 +2540,11 @@ add_assembler_option (option, len) if (! assembler_options) assembler_options - = (char **) xmalloc (n_assembler_options * sizeof (char **)); + = (char **) xmalloc (n_assembler_options * sizeof (char *)); else assembler_options = (char **) xrealloc (assembler_options, - n_assembler_options * sizeof (char **)); + n_assembler_options * sizeof (char *)); assembler_options [n_assembler_options - 1] = save_string (option, len); } @@ -2558,11 +2558,11 @@ add_linker_option (option, len) if (! linker_options) linker_options - = (char **) xmalloc (n_linker_options * sizeof (char **)); + = (char **) xmalloc (n_linker_options * sizeof (char *)); else linker_options = (char **) xrealloc (linker_options, - n_linker_options * sizeof (char **)); + n_linker_options * sizeof (char *)); linker_options [n_linker_options - 1] = save_string (option, len); } -- cgit v1.1