aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-04-02 22:23:44 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-04-02 22:23:44 +0000
commit9fd20553b5cb65370d26ac9eff3c3fb3e6252e18 (patch)
tree28db543b5314234cbcb1619dd30be33259f8ff0f /gcc/expr.c
parent763ccd45373c3c60afee048d86ca073aa0e2e860 (diff)
downloadgcc-9fd20553b5cb65370d26ac9eff3c3fb3e6252e18.zip
gcc-9fd20553b5cb65370d26ac9eff3c3fb3e6252e18.tar.gz
gcc-9fd20553b5cb65370d26ac9eff3c3fb3e6252e18.tar.bz2
re PR middle-end/26977 (ICE in emit_move_insn)
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. From-SVN: r112626
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 324a427..81cac76 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--;
+ }
}
}