Commit 1a14ac4b by Richard Sandiford Committed by Richard Sandiford

fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.

gcc/
	* fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.

From-SVN: r186653
parent ae52741c
2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
* fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org> 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 35441 PR 35441
......
...@@ -14391,7 +14391,8 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, htab_t ht) ...@@ -14391,7 +14391,8 @@ fold_checksum_tree (const_tree expr, struct md5_ctx *ctx, htab_t ht)
fold_checksum_tree (TREE_IMAGPART (expr), ctx, ht); fold_checksum_tree (TREE_IMAGPART (expr), ctx, ht);
break; break;
case VECTOR_CST: case VECTOR_CST:
fold_checksum_tree (TREE_VECTOR_CST_ELTS (expr), ctx, ht); for (i = 0; i < VECTOR_CST_NELTS (expr); ++i)
fold_checksum_tree (VECTOR_CST_ELT (expr, i), ctx, ht);
break; break;
default: default:
break; break;
......
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