* expr.c (expand_expr): A RESULT_DECL is part of a call.

From-SVN: r52102
This commit is contained in:
Andrew MacLeod 2002-04-10 00:37:02 +00:00 committed by Kaveh Ghazi
parent 95e726f37e
commit 87e4376701
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-04-09 Andrew MacLeod <amacleod@redhat.com>
* expr.c (expand_expr): A RESULT_DECL is part of a call.
2002-04-09 Richard Henderson <rth@redhat.com>
* cfg.c (expunge_block): Decrement num_elements here ...

View File

@ -6305,7 +6305,8 @@ expand_expr (exp, target, tmode, modifier)
/* Get the signedness used for this variable. Ensure we get the
same mode we got when the variable was declared. */
if (GET_MODE (DECL_RTL (exp))
!= promote_mode (type, DECL_MODE (exp), &unsignedp, 0))
!= promote_mode (type, DECL_MODE (exp), &unsignedp,
(TREE_CODE (exp) == RESULT_DECL ? 1 : 0)))
abort ();
temp = gen_lowpart_SUBREG (mode, DECL_RTL (exp));