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]

Minor change in function.c


Fri Oct 20 13:33:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.

*** function.c	2000/10/17 22:17:31	1.225
--- function.c	2000/10/20 15:03:02
*************** locate_and_pad_parm (passed_mode, type, 
*** 5132,5137 ****
      }
    if (where_pad != none
!       && (TREE_CODE (sizetree) != INTEGER_CST
! 	  || ((TREE_INT_CST_LOW (sizetree) * BITS_PER_UNIT) % PARM_BOUNDARY)))
      sizetree = round_up (sizetree, PARM_BOUNDARY / BITS_PER_UNIT);
    SUB_PARM_SIZE (*offset_ptr, sizetree);
--- 5132,5137 ----
      }
    if (where_pad != none
!       && (!host_integerp (sizetree, 1)
! 	  || (tree_low_cst (sizetree, 1) * BITS_PER_UNIT) % PARM_BOUNDARY))
      sizetree = round_up (sizetree, PARM_BOUNDARY / BITS_PER_UNIT);
    SUB_PARM_SIZE (*offset_ptr, sizetree);
*************** locate_and_pad_parm (passed_mode, type, 
*** 5172,5177 ****
  
    if (where_pad != none
!       && (TREE_CODE (sizetree) != INTEGER_CST
! 	  || ((TREE_INT_CST_LOW (sizetree) * BITS_PER_UNIT) % PARM_BOUNDARY)))
      sizetree = round_up (sizetree, PARM_BOUNDARY / BITS_PER_UNIT);
  
--- 5167,5172 ----
  
    if (where_pad != none
!       && (!host_integerp (sizetree, 1)
! 	  || (tree_low_cst (sizetree, 1) * BITS_PER_UNIT) % PARM_BOUNDARY))
      sizetree = round_up (sizetree, PARM_BOUNDARY / BITS_PER_UNIT);
  

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