expr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries created for a bitfield...

2012-04-23  Martin Jambor  <mjambor@suse.cz>

	* expr.c (expand_expr_real_1): Remove setting parent's alias set for
	temporaries created for a bitfield (reverting revision 122014).

From-SVN: r186718
This commit is contained in:
Martin Jambor 2012-04-23 19:17:48 +02:00 committed by Martin Jambor
parent 6eea77093d
commit e9d68de9c1
2 changed files with 8 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2012-04-23 Martin Jambor <mjambor@suse.cz>
* expr.c (expand_expr_real_1): Remove setting parent's alias set for
temporaries created for a bitfield (reverting revision 122014).
2012-04-23 Richard Guenther <rguenther@suse.de>
* tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify

View File

@ -9903,19 +9903,11 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
necessarily be constant. */
if (mode == BLKmode)
{
HOST_WIDE_INT size = GET_MODE_BITSIZE (ext_mode);
rtx new_rtx;
/* If the reference doesn't use the alias set of its type,
we cannot create the temporary using that type. */
if (component_uses_parent_alias_set (exp))
{
new_rtx = assign_stack_local (ext_mode, size, 0);
set_mem_alias_set (new_rtx, get_alias_set (exp));
}
else
new_rtx = assign_stack_temp_for_type (ext_mode, size, 0, type);
new_rtx = assign_stack_temp_for_type (ext_mode,
GET_MODE_BITSIZE (ext_mode),
0, type);
emit_move_insn (new_rtx, op0);
op0 = copy_rtx (new_rtx);
PUT_MODE (op0, BLKmode);