diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-09 16:08:51 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-09 16:08:51 +0000 |
commit | 7426c2df49b661a536d80182118d25b5e701eb30 (patch) | |
tree | e24dc2e8c37807b8a57f438eb8d0c3954a1a2ece | |
parent | cfc185a4caa36029674ec56b1fb00deecee1166e (diff) | |
download | gcc-7426c2df49b661a536d80182118d25b5e701eb30.tar.gz |
Fri Oct 9 16:03:19 1998 Graham <grahams@rcp.co.uk>
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22964 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 15 | ||||
-rw-r--r-- | gcc/flow.c | 3 | ||||
-rw-r--r-- | gcc/gcc.c | 12 | ||||
-rw-r--r-- | gcc/gcov.c | 4 | ||||
-rw-r--r-- | gcc/local-alloc.c | 8 | ||||
-rw-r--r-- | gcc/loop.c | 4 | ||||
-rw-r--r-- | gcc/reg-stack.c | 14 | ||||
-rw-r--r-- | gcc/reorg.c | 2 |
8 files changed, 39 insertions, 23 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49187ff1056..7f05ff0f154 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,18 @@ +Fri Oct 9 16:03:19 1998 Graham <grahams@rcp.co.uk> + + * 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. + Fri Oct 9 15:57:51 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE> * flow.c (life_analysis_1): Break out some functions. diff --git a/gcc/flow.c b/gcc/flow.c index ce476e21f9e..038c5d71882 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -3274,7 +3274,8 @@ print_rtl_with_bb (outf, rtx_first) int max_uid = get_max_uid (); int *start = (int *) alloca (max_uid * sizeof (int)); int *end = (int *) alloca (max_uid * sizeof (int)); - char *in_bb_p = (char *) alloca (max_uid * sizeof (enum bb_state)); + enum bb_state *in_bb_p = (enum bb_state *) + alloca (max_uid * sizeof (enum bb_state)); for (i = 0; i < max_uid; i++) { diff --git a/gcc/gcc.c b/gcc/gcc.c index 64fa16db3e5..3dc6518256d 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); } diff --git a/gcc/gcov.c b/gcc/gcov.c index eff68f1608a..501c81befb5 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -997,10 +997,10 @@ output_data () bzero (line_exists, s_ptr->maxlineno); if (output_branch_probs) { - branch_probs = (struct arcdata **) xmalloc (sizeof (struct arcdata **) + branch_probs = (struct arcdata **) xmalloc (sizeof (struct arcdata *) * s_ptr->maxlineno); bzero ((char *) branch_probs, - sizeof (struct arcdata **) * s_ptr->maxlineno); + sizeof (struct arcdata *) * s_ptr->maxlineno); } /* There will be a zero at the beginning of the bb info, before the diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 3bcd4f8e1b1..462755fda42 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -633,7 +633,7 @@ memref_used_between_p (memref, start, end) static void update_equiv_regs () { - rtx *reg_equiv_init_insn = (rtx *) alloca (max_regno * sizeof (rtx *)); + rtx *reg_equiv_init_insn = (rtx *) alloca (max_regno * sizeof (rtx)); /* Set when an attempt should be made to replace a register with the associated reg_equiv_replacement entry at the end of this function. */ char *reg_equiv_replace @@ -641,10 +641,10 @@ update_equiv_regs () rtx insn; int block, depth; - reg_equiv_replacement = (rtx *) alloca (max_regno * sizeof (rtx *)); + reg_equiv_replacement = (rtx *) alloca (max_regno * sizeof (rtx)); - bzero ((char *) reg_equiv_init_insn, max_regno * sizeof (rtx *)); - bzero ((char *) reg_equiv_replacement, max_regno * sizeof (rtx *)); + bzero ((char *) reg_equiv_init_insn, max_regno * sizeof (rtx)); + bzero ((char *) reg_equiv_replacement, max_regno * sizeof (rtx)); bzero ((char *) reg_equiv_replace, max_regno * sizeof *reg_equiv_replace); init_alias_analysis (); diff --git a/gcc/loop.c b/gcc/loop.c index 556877feff9..aa398eb8573 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -3573,8 +3573,8 @@ strength_reduce (scan_start, end, loop_top, insn_count, int loop_depth = 0; reg_iv_type = (enum iv_mode *) alloca (max_reg_before_loop - * sizeof (enum iv_mode *)); - bzero ((char *) reg_iv_type, max_reg_before_loop * sizeof (enum iv_mode *)); + * sizeof (enum iv_mode)); + bzero ((char *) reg_iv_type, max_reg_before_loop * sizeof (enum iv_mode)); reg_iv_info = (struct induction **) alloca (max_reg_before_loop * sizeof (struct induction *)); bzero ((char *) reg_iv_info, (max_reg_before_loop diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index a7a5fb7cd90..b8fc938f19f 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -921,10 +921,10 @@ record_asm_reg_life (insn, regstack, operands, constraints, int malformed_asm = 0; rtx body = PATTERN (insn); - int *operand_matches = (int *) alloca (n_operands * sizeof (int *)); + int *operand_matches = (int *) alloca (n_operands * sizeof (int)); enum reg_class *operand_class - = (enum reg_class *) alloca (n_operands * sizeof (enum reg_class *)); + = (enum reg_class *) alloca (n_operands * sizeof (enum reg_class)); int reg_used_as_output[FIRST_PSEUDO_REGISTER]; int implicitly_dies[FIRST_PSEUDO_REGISTER]; @@ -950,7 +950,7 @@ record_asm_reg_life (insn, regstack, operands, constraints, if (GET_CODE (body) == PARALLEL) { - clobber_reg = (rtx *) alloca (XVECLEN (body, 0) * sizeof (rtx *)); + clobber_reg = (rtx *) alloca (XVECLEN (body, 0) * sizeof (rtx)); for (i = 0; i < XVECLEN (body, 0); i++) if (GET_CODE (XVECEXP (body, 0, i)) == CLOBBER) @@ -2443,9 +2443,9 @@ subst_asm_stack_regs (insn, regstack, operands, operands_loc, constraints, int first_input = n_outputs; rtx body = PATTERN (insn); - int *operand_matches = (int *) alloca (n_operands * sizeof (int *)); + int *operand_matches = (int *) alloca (n_operands * sizeof (int)); enum reg_class *operand_class - = (enum reg_class *) alloca (n_operands * sizeof (enum reg_class *)); + = (enum reg_class *) alloca (n_operands * sizeof (enum reg_class)); rtx *note_reg; /* Array of note contents */ rtx **note_loc; /* Address of REG field of each note */ @@ -2517,8 +2517,8 @@ subst_asm_stack_regs (insn, regstack, operands, operands_loc, constraints, if (GET_CODE (body) == PARALLEL) { - clobber_reg = (rtx *) alloca (XVECLEN (body, 0) * sizeof (rtx *)); - clobber_loc = (rtx **) alloca (XVECLEN (body, 0) * sizeof (rtx **)); + clobber_reg = (rtx *) alloca (XVECLEN (body, 0) * sizeof (rtx)); + clobber_loc = (rtx **) alloca (XVECLEN (body, 0) * sizeof (rtx *)); for (i = 0; i < XVECLEN (body, 0); i++) if (GET_CODE (XVECEXP (body, 0, i)) == CLOBBER) diff --git a/gcc/reorg.c b/gcc/reorg.c index 71c1cf2c918..007d92eca3d 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -4547,7 +4547,7 @@ dbr_schedule (first, file) epilogue_insn = insn; } - uid_to_ruid = (int *) alloca ((max_uid + 1) * sizeof (int *)); + uid_to_ruid = (int *) alloca ((max_uid + 1) * sizeof (int)); for (i = 0, insn = first; insn; i++, insn = NEXT_INSN (insn)) uid_to_ruid[INSN_UID (insn)] = i; |