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
This commit is contained in:
Jakub Jelinek 2010-11-11 09:09:46 +01:00 committed by Jakub Jelinek
parent 9c8b521559
commit dcc53f137c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-11-11 Jakub Jelinek <jakub@redhat.com>
PR debug/46150
* tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
true if expr1->hash != expr2->hash.
2010-11-10 Joseph Myers <joseph@codesourcery.com>
* cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start

View File

@ -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. */