+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.
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++)
{
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);
}
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);
}
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);
}
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
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
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 ();
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
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];
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)
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 */
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)
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;