fix target/5672

Richard Henderson rth@redhat.com
Fri Mar 29 18:17:00 GMT 2002


We'll only see this on targets with PSImode.  I'm fairly sure there's
already a test case for this, but no one's regression testing mn10200.


r~


        * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.

Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.c,v
retrieving revision 1.423.2.9
diff -c -p -d -r1.423.2.9 expr.c
*** expr.c	2002/03/25 11:15:47	1.423.2.9
--- expr.c	2002/03/30 02:14:23
*************** expand_expr (exp, target, tmode, modifie
*** 7486,7492 ****
  	      rtx constant_part;
  
  	      op0 = expand_expr (TREE_OPERAND (exp, 0), subtarget, VOIDmode,
! 				 EXPAND_SUM);
  	      if (! CONSTANT_P (op0))
  		{
  		  op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX,
--- 7486,7493 ----
  	      rtx constant_part;
  
  	      op0 = expand_expr (TREE_OPERAND (exp, 0), subtarget, VOIDmode,
! 				 (modifier == EXPAND_INITIALIZER
! 				 ? EXPAND_INITIALIZER : EXPAND_SUM));
  	      if (! CONSTANT_P (op0))
  		{
  		  op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX,



More information about the Gcc-patches mailing list