summaryrefslogtreecommitdiffstats
path: root/gcc/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 324a427f687..81cac760cd3 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1945,9 +1945,12 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, int ssize)
{
temp = simplify_gen_subreg (outer, tmps[start],
inner, bytepos);
- emit_move_insn (dst, temp);
- done = true;
- start++;
+ if (temp)
+ {
+ emit_move_insn (dst, temp);
+ done = true;
+ start++;
+ }
}
}
@@ -1961,9 +1964,12 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, int ssize)
{
temp = simplify_gen_subreg (outer, tmps[finish - 1],
inner, bytepos);
- emit_move_insn (dst, temp);
- done = true;
- finish--;
+ if (temp)
+ {
+ emit_move_insn (dst, temp);
+ done = true;
+ finish--;
+ }
}
}
OpenPOWER on IntegriCloud