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]
Other format: [Raw text]

More Checker stuff


There was a typo in the ARGS_GROW_DOWNWARD case in function.c and I didn't
think of checking config files for references.  This fixes those problems:

Thu Dec  6 06:55:13 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* function.c (assing_parms): Fix typo in last change.
	* config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
	* config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
	* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
	* config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.

*** function.c	2001/12/06 02:44:57	1.333
--- function.c	2001/12/06 11:57:10
*************** assign_parms (fndecl)
*** 5046,5050 ****
         : expand_expr (size_diffop (stack_args_size.var,
  				   size_int (-stack_args_size.constant)),
! 		      NULL_RTX, VOIDmode, 0);
  #else
    current_function_arg_offset_rtx = ARGS_SIZE_RTX (stack_args_size);
--- 5046,5050 ----
         : expand_expr (size_diffop (stack_args_size.var,
  				   size_int (-stack_args_size.constant)),
! 		      NULL_RTX, VOIDmode, 0));
  #else
    current_function_arg_offset_rtx = ARGS_SIZE_RTX (stack_args_size);
*** config/clipper/clipper.c	2001/11/21 04:57:08	1.21
--- config/clipper/clipper.c	2001/12/06 11:57:13
*************** clipper_builtin_saveregs ()
*** 424,455 ****
    emit_move_insn (mem, gen_rtx_REG (DFmode, 17));
  
-   if (current_function_check_memory_usage)
-     {
-       emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
- 			 f0_addr, ptr_mode,
- 			 GEN_INT (GET_MODE_SIZE (DFmode)),
- 			 TYPE_MODE (sizetype),
- 			 GEN_INT (MEMORY_USE_RW),
- 			 TYPE_MODE (integer_type_node));
-       emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
- 			 f1_addr, ptr_mode,
- 			 GEN_INT (GET_MODE_SIZE (DFmode)),
- 			 TYPE_MODE (sizetype),
- 			 GEN_INT (MEMORY_USE_RW), 
- 			 TYPE_MODE (integer_type_node));
-       emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
- 			 r0_addr, ptr_mode,
- 			 GEN_INT (GET_MODE_SIZE (SImode)),
- 			 TYPE_MODE (sizetype),
- 			 GEN_INT (MEMORY_USE_RW),
- 			 TYPE_MODE (integer_type_node));
-       emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
- 			 r1_addr, ptr_mode,
- 			 GEN_INT (GET_MODE_SIZE (SImode)),
- 			 TYPE_MODE (sizetype),
- 			 GEN_INT (MEMORY_USE_RW),
- 			 TYPE_MODE (integer_type_node));
-     }
- 
    return addr;
  }
--- 424,427 ----
*** config/m88k/m88k.c	2001/12/06 11:49:32	1.52
--- config/m88k/m88k.c	2001/12/06 11:57:17
*************** struct rtx_def *
*** 2605,2609 ****
  m88k_builtin_saveregs ()
  {
!   rtx addr, dest;
    tree fntype = TREE_TYPE (current_function_decl);
    int argadj = ((!(TYPE_ARG_TYPES (fntype) != 0
--- 2605,2609 ----
  m88k_builtin_saveregs ()
  {
!   rtx addr;
    tree fntype = TREE_TYPE (current_function_decl);
    int argadj = ((!(TYPE_ARG_TYPES (fntype) != 0
*************** m88k_builtin_saveregs ()
*** 2628,2646 ****
    /* Now store the incoming registers.  */
    if (fixed < 8)
!     {
!       dest = adjust_address (addr, Pmode, fixed * UNITS_PER_WORD);
!       move_block_from_reg (2 + fixed, dest, 8 - fixed,
! 			   UNITS_PER_WORD * (8 - fixed));
! 
!       if (current_function_check_memory_usage)
! 	{
! 	  emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
! 			     dest, ptr_mode,
! 			     GEN_INT (UNITS_PER_WORD * (8 - fixed)),
! 			     TYPE_MODE (sizetype),
! 			     GEN_INT (MEMORY_USE_RW),
! 			     TYPE_MODE (integer_type_node));
! 	}
!     }
  
    /* Return the address of the save area, but don't put it in a
--- 2628,2635 ----
    /* Now store the incoming registers.  */
    if (fixed < 8)
!     move_block_from_reg (2 + fixed,
! 			 adjust_address (addr, Pmode, fixed * UNITS_PER_WORD),
! 			 8 - fixed,
! 			 UNITS_PER_WORD * (8 - fixed));
  
    /* Return the address of the save area, but don't put it in a
*** config/pa/pa.c	2001/12/03 19:13:35	1.140
--- config/pa/pa.c	2001/12/06 11:57:23
*************** hppa_builtin_saveregs ()
*** 4914,4924 ****
    emit_insn (gen_blockage ());
  
-   if (current_function_check_memory_usage)
-     emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
- 		       dest, ptr_mode,
- 		       GEN_INT (4 * UNITS_PER_WORD), TYPE_MODE (sizetype),
- 		       GEN_INT (MEMORY_USE_RW),
- 		       TYPE_MODE (integer_type_node));
- 
    return copy_to_reg (expand_binop (Pmode, add_optab,
  				    current_function_internal_arg_pointer,
--- 4914,4917 ----
*** config/sparc/sparc.c	2001/12/06 11:49:41	1.168
--- config/sparc/sparc.c	2001/12/06 11:57:29
*************** sparc_builtin_saveregs ()
*** 4829,4841 ****
  				   + UNITS_PER_WORD * first_reg));
  
-   if (current_function_check_memory_usage
-       && first_reg < NPARM_REGS (word_mode))
-     emit_library_call (chkr_set_right_libfunc, 1, VOIDmode, 3,
- 		       address, ptr_mode,
- 		       GEN_INT (UNITS_PER_WORD 
- 			 	* (NPARM_REGS (word_mode) - first_reg)),
- 		       TYPE_MODE (sizetype), GEN_INT (MEMORY_USE_RW),
- 		       TYPE_MODE (integer_type_node));
- 
    return address;
  }
--- 4829,4832 ----


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