diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-06-25 16:02:04 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2014-06-25 16:02:04 +0000 |
commit | 86fcf7cebd484a1e4f595fa7951bf8ea17cf3566 (patch) | |
tree | e68fd6aca3c293cec2ed92a0c0af5e784a02e7b1 | |
parent | b36e833f1a28c18f801c299e8d103cf983b2932d (diff) | |
download | gcc-86fcf7cebd484a1e4f595fa7951bf8ea17cf3566.zip gcc-86fcf7cebd484a1e4f595fa7951bf8ea17cf3566.tar.gz gcc-86fcf7cebd484a1e4f595fa7951bf8ea17cf3566.tar.bz2 |
fix checking=fold
gcc/
PR bootstrap/61598
* fold-const.c (fold_checksum_tree): Use a hash_table of const
tree_node * instead of tree_node *.
(fold): Adjust.
(print_fold_checksum): Likewise.
(fold_check_failed): Likewise.
(debug_fold_checksum): Likewise.
(fold_build1_stat_loc): Likewise.
(fold_build2_stat_loc): Likewise.
(fold_build3_stat_loc): Likewise.
(fold_build_call_array_loc): Likewise.
From-SVN: r211985
-rw-r--r-- | gcc/ChangeLog | 14 | ||||
-rw-r--r-- | gcc/fold-const.c | 22 |
2 files changed, 25 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c518c0e..9eb0524 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2014-06-25 Trevor Saunders <tsaunders@mozilla.com> + + PR bootstrap/61598 + * fold-const.c (fold_checksum_tree): Use a hash_table of const + tree_node * instead of tree_node *. + (fold): Adjust. + (print_fold_checksum): Likewise. + (fold_check_failed): Likewise. + (debug_fold_checksum): Likewise. + (fold_build1_stat_loc): Likewise. + (fold_build2_stat_loc): Likewise. + (fold_build3_stat_loc): Likewise. + (fold_build_call_array_loc): Likewise. + 2014-06-25 David Edelsohn <dje.gcc@gmail.com> * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace diff --git a/gcc/fold-const.c b/gcc/fold-const.c index f6b72b7..d22eac1 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -14686,7 +14686,7 @@ fold (tree expr) #undef fold static void fold_checksum_tree (const_tree, struct md5_ctx *, - hash_table<pointer_hash<tree_node> > *); + hash_table<pointer_hash<const tree_node> > *); static void fold_check_failed (const_tree, const_tree); void print_fold_checksum (const_tree); @@ -14700,7 +14700,7 @@ fold (tree expr) tree ret; struct md5_ctx ctx; unsigned char checksum_before[16], checksum_after[16]; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); md5_init_ctx (&ctx); fold_checksum_tree (expr, &ctx, &ht); @@ -14724,7 +14724,7 @@ print_fold_checksum (const_tree expr) { struct md5_ctx ctx; unsigned char checksum[16], cnt; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); md5_init_ctx (&ctx); fold_checksum_tree (expr, &ctx, &ht); @@ -14742,9 +14742,9 @@ fold_check_failed (const_tree expr ATTRIBUTE_UNUSED, const_tree ret ATTRIBUTE_UN static void fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, - hash_table<pointer_hash <tree_node> > *ht) + hash_table<pointer_hash <const tree_node> > *ht) { - tree_node **slot; + const tree_node **slot; enum tree_code code; union tree_node buf; int i, len; @@ -14755,7 +14755,7 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, slot = ht->find_slot (expr, INSERT); if (*slot != NULL) return; - *slot = CONST_CAST_TREE (expr); + *slot = expr; code = TREE_CODE (expr); if (TREE_CODE_CLASS (code) == tcc_declaration && DECL_ASSEMBLER_NAME_SET_P (expr)) @@ -14899,7 +14899,7 @@ debug_fold_checksum (const_tree t) int i; unsigned char checksum[16]; struct md5_ctx ctx; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); md5_init_ctx (&ctx); fold_checksum_tree (t, &ctx, &ht); @@ -14927,7 +14927,7 @@ fold_build1_stat_loc (location_t loc, #ifdef ENABLE_FOLD_CHECKING unsigned char checksum_before[16], checksum_after[16]; struct md5_ctx ctx; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); md5_init_ctx (&ctx); fold_checksum_tree (op0, &ctx, &ht); @@ -14968,7 +14968,7 @@ fold_build2_stat_loc (location_t loc, checksum_after_op0[16], checksum_after_op1[16]; struct md5_ctx ctx; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); md5_init_ctx (&ctx); fold_checksum_tree (op0, &ctx, &ht); @@ -15022,7 +15022,7 @@ fold_build3_stat_loc (location_t loc, enum tree_code code, tree type, checksum_after_op1[16], checksum_after_op2[16]; struct md5_ctx ctx; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); md5_init_ctx (&ctx); fold_checksum_tree (op0, &ctx, &ht); @@ -15088,7 +15088,7 @@ fold_build_call_array_loc (location_t loc, tree type, tree fn, checksum_after_fn[16], checksum_after_arglist[16]; struct md5_ctx ctx; - hash_table<pointer_hash<tree_node> > ht (32); + hash_table<pointer_hash<const tree_node> > ht (32); int i; md5_init_ctx (&ctx); |