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 expr.c bugfix


Sun Sep 24 09:15:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* expr.c (store_field): If BITSIZE is negative, use size of type.
	(expand_expr, case COMPONENT_EXPR): Likewise.

*** expr.c	2000/09/17 15:29:18	1.263
--- expr.c	2000/09/24 14:58:18
*************** store_field (target, bitsize, bitpos, mo
*** 4993,4998 ****
  
  	  emit_block_move (target, temp,
! 			   GEN_INT ((bitsize + BITS_PER_UNIT - 1)
! 				    / BITS_PER_UNIT),
  			   align);
  
--- 4993,4999 ----
  
  	  emit_block_move (target, temp,
! 			   bitsize == -1 ? expr_size (exp)
! 			   : GEN_INT ((bitsize + BITS_PER_UNIT - 1)
! 				      / BITS_PER_UNIT),
  			   align);
  
*************** expand_expr (exp, target, tmode, modifie
*** 6928,6933 ****
  
  		emit_block_move (target, op0,
! 				 GEN_INT ((bitsize + BITS_PER_UNIT - 1)
! 					  / BITS_PER_UNIT),
  				 BITS_PER_UNIT);
  
--- 6929,6935 ----
  
  		emit_block_move (target, op0,
! 				 bitsize == -1 ? expr_size  (exp)
! 				 : GEN_INT ((bitsize + BITS_PER_UNIT - 1)
! 					    / BITS_PER_UNIT),
  				 BITS_PER_UNIT);
  

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