This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

rs6000.c cleanup


	This patch fixes the use of the wrong variable in the DImode case
for expand_block_move() and corrects the prototype of
toc_hash_mark_entry().

David


        * rs6000.c (expand_block_move): Fix typo in earlier change.
        (print_operand): Remove unused variables neg and op.
        (toc_hash_mark_entry): Fix prototype.

Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.128
diff -c -p -r1.128 rs6000.c
*** rs6000.c	2000/06/12 19:58:57	1.128
--- rs6000.c	2000/06/14 20:19:17
*************** static void rs6000_emit_allocate_stack P
*** 125,131 ****
  static unsigned rs6000_hash_constant PARAMS ((rtx));
  static unsigned toc_hash_function PARAMS ((const void *));
  static int toc_hash_eq PARAMS ((const void *, const void *));
! static int toc_hash_mark_entry PARAMS ((void *, void *));
  static void toc_hash_mark_table PARAMS ((void *));
  static int constant_pool_expr_1 PARAMS ((rtx, int *, int *));
  
--- 125,131 ----
  static unsigned rs6000_hash_constant PARAMS ((rtx));
  static unsigned toc_hash_function PARAMS ((const void *));
  static int toc_hash_eq PARAMS ((const void *, const void *));
! static int toc_hash_mark_entry PARAMS ((void **, void *));
  static void toc_hash_mark_table PARAMS ((void *));
  static int constant_pool_expr_1 PARAMS ((rtx, int *, int *));
  
*************** expand_block_move (operands)
*** 2419,2427 ****
  	      tmp_reg = gen_reg_rtx (DImode);
  	      emit_move_insn (tmp_reg,
  			      expand_block_move_mem (DImode,
! 						     src_addr, orig_src));
  	      emit_move_insn (expand_block_move_mem (DImode,
! 						     dest_addr, orig_dest),
  			      tmp_reg);
  	    }
  	  else if (bytes > 4)
--- 2419,2427 ----
  	      tmp_reg = gen_reg_rtx (DImode);
  	      emit_move_insn (tmp_reg,
  			      expand_block_move_mem (DImode,
! 						     src_reg, orig_src));
  	      emit_move_insn (expand_block_move_mem (DImode,
! 						     dest_reg, orig_dest),
  			      tmp_reg);
  	    }
  	  else if (bytes > 4)
*************** print_operand (file, x, code)
*** 3655,3661 ****
  	 expression.  The expression may have one or both operands
  	 negated (if one, only the first one).  */
        {
- 	int neg, op;
  	const char *const *t;
  	const char *s;
  	enum rtx_code code = GET_CODE (x);
--- 3655,3660 ----
*************** toc_hash_eq (h1, h2)
*** 6144,6150 ****
  
  static int
  toc_hash_mark_entry (hash_slot, unused)
!      void * hash_slot;
       void * unused ATTRIBUTE_UNUSED;
  {
    const struct toc_hash_struct * hash_entry = 
--- 6143,6149 ----
  
  static int
  toc_hash_mark_entry (hash_slot, unused)
!      void ** hash_slot;
       void * unused ATTRIBUTE_UNUSED;
  {
    const struct toc_hash_struct * hash_entry = 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]