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]

Fix problem compiling crtstuff.c on x86


Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
	BLKmode.

*** expr.c	2001/11/16 04:40:11	1.378
--- expr.c	2001/11/16 12:05:22
*************** expand_expr (exp, target, tmode, modifie
*** 8653,8657 ****
  	     we need to make a temporary, copy OP0 to it, and take the
  	     address of the temporary.  */
! 	  if (expr_align (TREE_OPERAND (exp, 0)) > MEM_ALIGN (op0))
  	    {
  	      tree inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));
--- 8653,8658 ----
  	     we need to make a temporary, copy OP0 to it, and take the
  	     address of the temporary.  */
! 	  if (GET_MODE (op0) == BLKmode
! 	      && expr_align (TREE_OPERAND (exp, 0)) > MEM_ALIGN (op0))
  	    {
  	      tree inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));


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