re PR target/63764 (ICE: in verify_ssa, at tree-ssa.c:939)
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Nov 2014 09:25:51 +0000 (10:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Nov 2014 09:25:51 +0000 (10:25 +0100)
commitaa7da51a8c95366b781d0ce5e6cb046ef0aa899f
treec648ac0560be23d2a39d095a04c8de340e96f4bc
parent0daaf8aa4d32fee71136021003bca60cc350a04e
re PR target/63764 (ICE: in verify_ssa, at tree-ssa.c:939)

PR target/63764
c-family/
* c-common.h (convert_vector_to_pointer_for_subscript): Change
return type to bool.
* c-common.c: Include gimple-expr.c.
(convert_vector_to_pointer_for_subscript): Change return type to
bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
and copy it into a TARGET_EXPR and use that instead of *vecp
directly.
c/
* c-typeck.c (build_array_ref): Adjust
convert_vector_to_pointer_for_subscript caller.  If it returns true,
call non_lvalue_loc on the result.
cp/
* typeck.c (cp_build_array_ref): Adjust
convert_vector_to_pointer_for_subscript caller.  If it returns true,
call non_lvalue_loc on the result.
testsuite/
* c-c++-common/pr63764-1.c: New test.
* c-c++-common/pr63764-2.c: New test.

From-SVN: r217909
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr63764-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr63764-2.c [new file with mode: 0644]