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
This commit is contained in:
parent
c79e602b63
commit
0ebfd2c928
@ -1,3 +1,10 @@
|
||||
2005-03-15 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
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.
|
||||
|
||||
2005-03-15 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
|
||||
|
@ -10049,8 +10049,11 @@ fold_checksum_tree (tree expr, struct md5_ctx *ctx, htab_t ht)
|
||||
expr = (tree) buf;
|
||||
TYPE_POINTER_TO (expr) = NULL;
|
||||
TYPE_REFERENCE_TO (expr) = NULL;
|
||||
TYPE_CACHED_VALUES_P (expr) = 0;
|
||||
TYPE_CACHED_VALUES (expr) = NULL;
|
||||
if (TYPE_CACHED_VALUES_P (expr))
|
||||
{
|
||||
TYPE_CACHED_VALUES_P (expr) = 0;
|
||||
TYPE_CACHED_VALUES (expr) = NULL;
|
||||
}
|
||||
}
|
||||
md5_process_bytes (expr, tree_size (expr), ctx);
|
||||
fold_checksum_tree (TREE_TYPE (expr), ctx, ht);
|
||||
|
@ -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 *));
|
||||
|
Loading…
Reference in New Issue
Block a user