flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use.
authorGraham Stott <grahams@rcp.co.uk>
Fri, 9 Oct 1998 16:08:51 +0000 (09:08 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 9 Oct 1998 16:08:51 +0000 (09:08 -0700)
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.

From-SVN: r22964

gcc/ChangeLog
gcc/flow.c
gcc/gcc.c
gcc/gcov.c
gcc/local-alloc.c
gcc/loop.c
gcc/reg-stack.c
gcc/reorg.c

index 49187ff1056baeb67b13227082d231842b149610..7f05ff0f154d5e60dff56408e25d58071388de7d 100644 (file)
@@ -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.
index ce476e21f9e691a8bba90626acc5f2e17d4e2b66..038c5d718825409d70ca2cede6e3845dad584b93 100644 (file)
@@ -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++)
        {
index 64fa16db3e50c8d51e73b04db862b6d698e8016e..3dc6518256d5780e4eaf58e9beff3ac80a77cf59 100644 (file)
--- 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);  
 }
index eff68f1608a3a2ab31044dc6aa5840cfb209b426..501c81befb5b65dc970a877ddb7c938d0ae4e464 100644 (file)
@@ -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
index 3bcd4f8e1b191ba2237a2c1c3607700807bf9961..462755fda42c130887eaab9e6e474a907a0d2678 100644 (file)
@@ -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 ();
index 556877feff9dfb5351a3f29219a03f97e2afb8d4..aa398eb8573ce1928475f394282f3200f1c4c264 100644 (file)
@@ -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
index a7a5fb7cd9022042df90ea8c6e26e6ee70987d70..b8fc938f19f3f6600fb7418a20ffb3f2aa093a33 100644 (file)
@@ -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)
index 71c1cf2c918b61a517f1fd70a5c65d0ab5a2725a..007d92eca3de48bd68a35b1d44dd3792ccdcfad4 100644 (file)
@@ -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;