This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] add asserts to convert_move, allow store_expr to handle BLKmode
- From: Ian Lance Taylor <iant at google dot com>
- To: Eric Christopher <echristo at apple dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: 31 May 2007 16:00:21 -0700
- Subject: Re: [patch] add asserts to convert_move, allow store_expr to handle BLKmode
- References: <44AC3E2F-DC71-45B4-BBCC-E137270F8AA1@apple.com>
Eric Christopher <echristo@apple.com> writes:
> 2007-05-08 Eric Christopher <echristo@apple.com>
>
> * expr.c (convert_move): Assert that we don't have a BLKmode operand.
> (store_expr): Handle BLKmode moves by calling emit_block_move.
> @@ -4500,8 +4502,16 @@ store_expr (tree exp, rtx target, int ca
> emit_move_insn (target, temp);
> }
> else
> + {
> + if (GET_MODE (target) == BLKmode)
> + emit_block_move (target, temp, expr_size (exp),
> + (call_param_p
> + ? BLOCK_OP_CALL_PARM
> + : BLOCK_OP_NORMAL));
> + else
> convert_move (target, temp, unsignedp);
> }
> + }
Write this as
else if (GET_MODE (target) == BLKmode)
rather than introducing a new level of nesting.
OK with that change.
Thanks.
Ian