From 0ebfd2c928fda823acdd4b5b073a84e5ce92ba39 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Wed, 16 Mar 2005 02:20:05 +0000 Subject: re PR tree-optimization/17454 (ICE with --enable-checking=fold) PR tree-optimization/17454 * tree.c (tree_size): Add case for TREE_BINFO. * fold-const.c (fold_checksum_tree): Only clear the overloaded field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set. From-SVN: r96548 --- gcc/tree.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index 0a99598..b1c2458 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -243,6 +243,10 @@ tree_size (tree node) return (sizeof (struct tree_phi_node) + (PHI_ARG_CAPACITY (node) - 1) * sizeof (struct phi_arg_d)); + case TREE_BINFO: + return (offsetof (struct tree_binfo, base_binfos) + + VEC_embedded_size (tree, BINFO_N_BASE_BINFOS (node))); + case TREE_VEC: return (sizeof (struct tree_vec) + (TREE_VEC_LENGTH (node) - 1) * sizeof(char *)); -- cgit v1.1