summaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-21 18:09:16 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-21 18:09:16 +0000
commitfd39b89692311ac0789aa370ba7dd6c1cd946993 (patch)
tree08d6d76d9352246d6085b8a60537eb40ffa44acb /gcc/fold-const.c
parent28738b204c02880440ddcb8dcdd9919163aee8dd (diff)
downloadgcc-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.c3
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;