aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2006-09-28 19:14:05 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-09-28 19:14:05 +0000
commit0461b801bf19aa735ecdd2d65e70ca253d5b6fbd (patch)
treee5a12015f5fb2fc6d895eb7184401578c20e3db6 /gcc/gimplify.c
parent8072ddb08815ed2133a4b84877695c80f4e50215 (diff)
downloadgcc-0461b801bf19aa735ecdd2d65e70ca253d5b6fbd.zip
gcc-0461b801bf19aa735ecdd2d65e70ca253d5b6fbd.tar.gz
gcc-0461b801bf19aa735ecdd2d65e70ca253d5b6fbd.tar.bz2
gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr on the element before gimplifying it...
* gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr on the element before gimplifying it, instead of punting if it is of variable size. From-SVN: r117288
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index a408c01..9db673a 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -2670,9 +2670,8 @@ gimplify_init_ctor_preeval (tree *expr_p, tree *pre_p, tree *post_p,
return;
}
- /* We can't preevaluate if the type contains a placeholder. */
- if (type_contains_placeholder_p (TREE_TYPE (*expr_p)))
- return;
+ /* If this is a variable sized type, we must remember the size. */
+ maybe_with_size_expr (expr_p);
/* Gimplify the constructor element to something appropriate for the rhs
of a MODIFY_EXPR. Given that we know the lhs is an aggregate, we know