Commit 4d9af632 by Jason Merrill Committed by Jason Merrill

* stmt.c (expand_decl): Expand upper bound of a dynamic array.

From-SVN: r30962
parent 8890f3d8
1999-12-15 Jason Merrill <jason@casey.cygnus.com>
* stmt.c (expand_decl): Expand upper bound of a dynamic array.
1999-12-15 Jakub Jelinek <jakub@redhat.com>
* expr.c (emit_group_load): Use dst mode if src is VOIDmode.
......
......@@ -3817,6 +3817,12 @@ expand_decl (decl)
stack_block_stack = thisblock;
}
/* In function-at-a-time mode, variable_size doesn't expand this,
so do it now. */
if (TREE_CODE (type) == ARRAY_TYPE && TYPE_DOMAIN (type))
expand_expr (TYPE_MAX_VALUE (TYPE_DOMAIN (type)),
const0_rtx, VOIDmode, 0);
/* Compute the variable's size, in bytes. */
size = expand_expr (size_binop (CEIL_DIV_EXPR,
DECL_SIZE (decl),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment