Commit 337f4314 by Richard Kenner Committed by Richard Kenner

expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p before clearing.

	* expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
	before clearing.

From-SVN: r65890
parent 3819b963
2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
before clearing.
2003-04-21 Mark Mitchell <mark@codesourcery.com>
* config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
......
......@@ -4899,7 +4899,15 @@ store_constructor (exp, target, cleared, size)
|| ((HOST_WIDE_INT) GET_MODE_SIZE (GET_MODE (target))
== size)))
{
clear_storage (target, GEN_INT (size));
rtx xtarget = target;
if (readonly_fields_p (type))
{
xtarget = copy_rtx (xtarget);
RTX_UNCHANGING_P (xtarget) = 1;
}
clear_storage (xtarget, GEN_INT (size));
cleared = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment