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

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

From-SVN: r186653
This commit is contained in:
Richard Sandiford 2012-04-21 18:09:16 +00:00 committed by Richard Sandiford
parent ae52741c5e
commit 1a14ac4baa
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>
PR 35441

View File

@ -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);
break;
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;
default:
break;