This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r217909 - in /trunk/gcc: c-family/ChangeLog c-f...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 21 Nov 2014 09:25:52 -0000
- Subject: r217909 - in /trunk/gcc: c-family/ChangeLog c-f...
Author: jakub
Date: Fri Nov 21 09:25:51 2014
New Revision: 217909
URL: https://gcc.gnu.org/viewcvs?rev=217909&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/pr63764-1.c
trunk/gcc/testsuite/c-c++-common/pr63764-2.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/c-family/c-common.h
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog