re PR middle-end/46388 (ICE in int_mode_for_mode, at stor-layout.c:493)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Nov 2010 15:48:39 +0000 (16:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Nov 2010 15:48:39 +0000 (16:48 +0100)
commit1004f0c5c83b9cffe17adbaabf935db8ab290911
tree07c7168ba1f0b818b361c11b91ce9c3c290414d3
parent86de8875db3ff4e3f1ae43f164e026cea6094444
re PR middle-end/46388 (ICE in int_mode_for_mode, at stor-layout.c:493)

PR middle-end/46388
* expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
BLKmode mode for it.
(expand_expr_real_1): Similarly for op0.

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

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