re PR middle-end/48335 (ICE in convert_move)
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Apr 2011 21:13:29 +0000 (23:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Apr 2011 21:13:29 +0000 (23:13 +0200)
commit19228b93eacef5d8661c5d5a82272d42a82e0e26
treefeaee55ecf6450268c89a7644e7055c18ceee503
parent88cb339e2fc095381098658177b8600ee151c58f
re PR middle-end/48335 (ICE in convert_move)

PR middle-end/48335
* expr.c (expand_assignment): Handle all possibilities
if TO_RTX is CONCAT.
* expmed.c (store_bit_field_1): Avoid trying to create
invalid SUBREGs.
(store_split_bit_field): If SUBREG_REG (op0) or
op0 itself has smaller mode than word, return it
for offset 0 and const0_rtx for out-of-bounds stores.
If word is const0_rtx, skip it.

* gcc.c-torture/compile/pr48335-1.c: New test.
* gcc.dg/pr48335-1.c: New test.
* gcc.dg/pr48335-2.c: New test.
* gcc.dg/pr48335-3.c: New test.
* gcc.dg/pr48335-4.c: New test.
* gcc.dg/pr48335-5.c: New test.
* gcc.dg/pr48335-6.c: New test.
* gcc.dg/pr48335-7.c: New test.
* gcc.dg/pr48335-8.c: New test.
* gcc.target/i386/pr48335-1.c: New test.

From-SVN: r171855
14 files changed:
gcc/ChangeLog
gcc/expmed.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr48335-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48335-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr48335-1.c [new file with mode: 0644]