r173056 - in /trunk/gcc: c-family/ChangeLog c-f...
jason@gcc.gnu.org
jason@gcc.gnu.org
Thu Apr 28 01:53:00 GMT 2011
Author: jason
Date: Thu Apr 28 01:53:34 2011
New Revision: 173056
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173056
Log:
PR c++/40975
* cp-tree.def (VEC_INIT_EXPR): Add third operand.
* cp-tree.h (VEC_INIT_EXPR_NELTS): New.
* cp-gimplify.c (cp_gimplify_expr) [VEC_INIT_EXPR]: Handle it.
* tree.c (build_vec_init_expr): Handle getting pointer/nelts.
(build_vec_init_elt): Don't expect an array type.
(build_array_copy): Adjust.
* init.c (perform_member_init): Adjust.
(build_new_1): Use build_vec_init_expr.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist49.C
trunk/gcc/testsuite/g++.dg/init/new30.C
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/c-family/c-common.h
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
trunk/gcc/cp/cp-tree.def
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/cp/method.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list