diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-11-11 09:09:46 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-11-11 09:09:46 +0100 |
commit | dcc53f137c4136424445416601f9889d18b3344c (patch) | |
tree | 3709098b861234eee23d2fe4fd57fe909dc54226 /gcc/tree-ssa-loop-ivopts.c | |
parent | 9c8b521559a6574dfe1dc7280eff9b41af2b0d5b (diff) | |
download | gcc-dcc53f137c4136424445416601f9889d18b3344c.zip gcc-dcc53f137c4136424445416601f9889d18b3344c.tar.gz gcc-dcc53f137c4136424445416601f9889d18b3344c.tar.bz2 |
re PR debug/46150 (-fcompare-debug failure (length) with -fPIC -O2)
PR debug/46150
* tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
true if expr1->hash != expr2->hash.
From-SVN: r166595
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index ab2e67a..59e2fef 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -834,7 +834,8 @@ htab_inv_expr_eq (const void *ent1, const void *ent2) const struct iv_inv_expr_ent *expr2 = (const struct iv_inv_expr_ent *)ent2; - return operand_equal_p (expr1->expr, expr2->expr, 0); + return expr1->hash == expr2->hash + && operand_equal_p (expr1->expr, expr2->expr, 0); } /* Hash function for loop invariant expressions. */ |