]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/54713 (error: non-trivial conversion at assignment in gcc...
authorJakub Jelinek <jakub@redhat.com>
Fri, 28 Sep 2012 12:18:57 +0000 (14:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 28 Sep 2012 12:18:57 +0000 (14:18 +0200)
commit4a2c20ccfabd9bcfe0293c274312a424971d0bc0
treeed78d34a78eb25b4804dcb75880712505ce51a5f
parent1a910f8f264f9ab3cc05c2ad13158201fff8b948
re PR tree-optimization/54713 (error: non-trivial conversion at assignment in gcc.c-torture/compile/pr53410-2.c)

PR tree-optimization/54713
* fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
has vector elements.
(fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
* tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
indexes.  Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
(lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.

* gcc.c-torture/compile/pr54713-1.c: New test.
* gcc.c-torture/compile/pr54713-2.c: New test.
* gcc.c-torture/compile/pr54713-3.c: New test.

From-SVN: r191826
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr54713-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr54713-2.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr54713-3.c [new file with mode: 0644]
gcc/tree-vect-generic.c