summaryrefslogtreecommitdiffstats
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-02 22:23:44 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-02 22:23:44 +0000
commit4bd9981baa7dd6473b00cb5ad2db88b373a9b065 (patch)
tree28db543b5314234cbcb1619dd30be33259f8ff0f /gcc/expr.c
parentf135d1cec56629ddc6884406828638488c9add7e (diff)
downloadppe42-gcc-4bd9981baa7dd6473b00cb5ad2db88b373a9b065.tar.gz
ppe42-gcc-4bd9981baa7dd6473b00cb5ad2db88b373a9b065.zip
PR middle-end/26977
* expr.c (emit_group_store): Check whether simplify_gen_subreg returns NULL_RTX, indicating it couldn't create a valid paradoxical subreg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112626 138bc75d-0d04-0410-961f-82ee72b054a4
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