re PR middle-end/89412 (gcc ICE in simplify_subreg, at simplify-rtx.c:6273 on i686...
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Feb 2019 23:02:29 +0000 (00:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Feb 2019 23:02:29 +0000 (00:02 +0100)
commit37d7267f8093e6720b05fec5a8eac26ade0b55ad
tree800b38ba1aeb67ced6a80af833fb949859b4a090
parentcd56fb7957a9b2b685f7dec2db6307bde5a0d4f0
re PR middle-end/89412 (gcc ICE in simplify_subreg, at simplify-rtx.c:6273 on i686-linux-gnu)

PR middle-end/89412
* expr.c (expand_assignment): If result is a MEM, use change_address
instead of simplify_gen_subreg.

* gcc.c-torture/compile/pr89412.c: New test.

From-SVN: r269057
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr89412.c [new file with mode: 0644]