diff options
author | Jason Merrill <jason@redhat.com> | 2010-11-06 20:46:45 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-11-06 20:46:45 -0400 |
commit | 4de2f020aaca3d0a8112acc6234a34bb5d578fa0 (patch) | |
tree | 45f9728915ac3c72a301c98db3b78300411445b1 /gcc/cp/cp-gimplify.c | |
parent | acd6cc816df8ceee71651b20fb028b00cb4a7e96 (diff) | |
download | gcc-4de2f020aaca3d0a8112acc6234a34bb5d578fa0.zip gcc-4de2f020aaca3d0a8112acc6234a34bb5d578fa0.tar.gz gcc-4de2f020aaca3d0a8112acc6234a34bb5d578fa0.tar.bz2 |
init.c (perform_member_init): Use build_vec_init_expr for value-init of arrays, too.
* init.c (perform_member_init): Use build_vec_init_expr for
value-init of arrays, too.
* cp-gimplify.c (cp_gimplify_expr): Use VEC_INIT_EXPR_VALUE_INIT.
* cp-tree.h (VEC_INIT_EXPR_IS_CONSTEXPR): New macro.
(VEC_INIT_EXPR_VALUE_INIT): New macro.
* semantics.c (potential_constant_expression): No longer static.
Check VEC_INIT_EXPR_IS_CONSTEXPR.
* tree.c (build_vec_init_expr): Handle value-init. Set
VEC_INIT_EXPR_IS_CONSTEXPR and VEC_INIT_EXPR_VALUE_INIT.
From-SVN: r166413
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r-- | gcc/cp/cp-gimplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index 705979d..557430d 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -535,7 +535,7 @@ cp_gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) gcc_assert (EXPR_HAS_LOCATION (*expr_p)); input_location = EXPR_LOCATION (*expr_p); *expr_p = build_vec_init (VEC_INIT_EXPR_SLOT (*expr_p), NULL_TREE, - init, /*explicit_value_init_p*/false, + init, VEC_INIT_EXPR_VALUE_INIT (*expr_p), from_array, tf_warning_or_error); ret = GS_OK; |