* expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.

From-SVN: r49805
This commit is contained in:
Richard Kenner 2002-02-16 18:44:14 +00:00 committed by Richard Kenner
parent 7f311f637f
commit 725e58b1b6
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (pool_stop_uid, other_chunk, far_away,

View File

@ -4617,7 +4617,12 @@ store_constructor (exp, target, cleared, size)
if (need_to_clear && size > 0)
{
if (! cleared)
clear_storage (target, GEN_INT (size));
{
if (REG_P (target))
emit_move_insn (target, CONST0_RTX (GET_MODE (target)));
else
clear_storage (target, GEN_INT (size));
}
cleared = 1;
}
else if (REG_P (target))