Commit 5480a90c by Richard Kenner

(expand_builtin...

(expand_builtin, case BUILT_IN_MEMCPY): Strip off all NOP_EXPRs from
the source and destination nodes, then set MEM_IN_STRUCT_P.

From-SVN: r10397
parent a0d074e1
......@@ -7784,9 +7784,8 @@ expand_builtin (exp, target, subtarget, mode, ignore)
dest_mem = gen_rtx (MEM, BLKmode,
memory_address (BLKmode, dest_rtx));
/* There could be a void* cast on top of the object. */
if (TREE_CODE (dest) == NOP_EXPR)
type = TREE_TYPE (TREE_TYPE (TREE_OPERAND (dest, 0)));
else
while (TREE_CODE (dest) == NOP_EXPR)
dest = TREE_OPERAND (dest, 0);
type = TREE_TYPE (TREE_TYPE (dest));
MEM_IN_STRUCT_P (dest_mem) = AGGREGATE_TYPE_P (type);
src_mem = gen_rtx (MEM, BLKmode,
......@@ -7795,9 +7794,8 @@ expand_builtin (exp, target, subtarget, mode, ignore)
ptr_mode,
EXPAND_SUM)));
/* There could be a void* cast on top of the object. */
if (TREE_CODE (src) == NOP_EXPR)
type = TREE_TYPE (TREE_TYPE (TREE_OPERAND (src, 0)));
else
while (TREE_CODE (src) == NOP_EXPR)
src = TREE_OPERAND (src, 0);
type = TREE_TYPE (TREE_TYPE (src));
MEM_IN_STRUCT_P (src_mem) = AGGREGATE_TYPE_P (type);
......
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