diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-04-02 22:23:44 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-04-02 22:23:44 +0000 |
commit | 9fd20553b5cb65370d26ac9eff3c3fb3e6252e18 (patch) | |
tree | 28db543b5314234cbcb1619dd30be33259f8ff0f /gcc/expr.c | |
parent | 763ccd45373c3c60afee048d86ca073aa0e2e860 (diff) | |
download | gcc-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.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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--; + } } } |