Commit 7c50e202 by Olivier Hainque Committed by Eric Botcazou

expr.c (store_constructor): Restore sanity check on the size of the type before clearing.

	* expr.c (store_constructor): Restore sanity check on
	the size of the type before clearing.

From-SVN: r82335
parent 18db8f19
2004-05-27 Olivier Hainque <hainque@act-europe.fr>
* expr.c (store_constructor): Restore sanity check on
the size of the type before clearing.
2004-05-27 Jan Hubicka <jh@suse.cz>
* cfgbuild.c (control_flow_insn_p): Notice noreturn call
......
......@@ -4673,8 +4673,9 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT size)
clear the whole structure first. Don't do this if TARGET is a
register whose mode size isn't equal to SIZE since clear_storage
can't handle this case. */
else if (((list_length (CONSTRUCTOR_ELTS (exp)) != fields_length (type))
|| mostly_zeros_p (exp))
else if (size > 0
&& ((list_length (CONSTRUCTOR_ELTS (exp)) != fields_length (type))
|| mostly_zeros_p (exp))
&& (GET_CODE (target) != REG
|| ((HOST_WIDE_INT) GET_MODE_SIZE (GET_MODE (target))
== size)))
......
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