aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-08-23 09:28:26 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2005-08-23 09:28:26 +0200
commit73ed17ff80da57d02cdb33b0035d5e718ed39fa2 (patch)
treef384afa06e592a553c6af6af04e511b95114c8d8 /gcc/tree.h
parent18b10a7276e8d33f3f77ff80225adc4df16619d9 (diff)
downloadgcc-73ed17ff80da57d02cdb33b0035d5e718ed39fa2.zip
gcc-73ed17ff80da57d02cdb33b0035d5e718ed39fa2.tar.gz
gcc-73ed17ff80da57d02cdb33b0035d5e718ed39fa2.tar.bz2
re PR middle-end/22043 (Fields not initialized for automatic structs with flexible array members)
PR tree-optimization/22043 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument. * expr.c (count_type_elements): Add ALLOW_FLEXARR argument. If ALLOW_FLEXARR, handle types ending with flexible array member. Pass false as second argument to recursive count_type_elements calls. (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second argument to count_type_elements call. * tree-sra.c (decide_block_copy): Likewise. * gimplify.c (gimplify_init_constructor): If num_type_elements < 0 for a constant-sized object, set cleared as well. Pass true as second argument to count_type_elements call. * gcc.c-torture/execute/20050613-1.c: New test. From-SVN: r103389
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 91b3827..dba6ed5 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3555,7 +3555,7 @@ extern bool initializer_zerop (tree);
extern void categorize_ctor_elements (tree, HOST_WIDE_INT *, HOST_WIDE_INT *,
HOST_WIDE_INT *, bool *);
-extern HOST_WIDE_INT count_type_elements (tree);
+extern HOST_WIDE_INT count_type_elements (tree, bool);
/* add_var_to_bind_expr (bind_expr, var) binds var to bind_expr. */