diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-21 18:09:16 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-21 18:09:16 +0000 |
commit | fd39b89692311ac0789aa370ba7dd6c1cd946993 (patch) | |
tree | 08d6d76d9352246d6085b8a60537eb40ffa44acb /gcc/fold-const.c | |
parent | 28738b204c02880440ddcb8dcdd9919163aee8dd (diff) | |
download | gcc-fd39b89692311ac0789aa370ba7dd6c1cd946993.tar.gz |
gcc/
* fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186653 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index fa75fdbec36..b4664b2da19 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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; |