dwarf2out.c (compare_loc_operands): Fix address handling.

gcc/
	* dwarf2out.c (compare_loc_operands): Fix address handling.

From-SVN: r170675
This commit is contained in:
Richard Sandiford 2011-03-04 14:19:19 +00:00 committed by Richard Sandiford
parent 52517c8121
commit 087070764a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
* dwarf2out.c (compare_loc_operands): Fix address handling.
2011-03-04 Alan Modra <amodra@gmail.com>
* tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.

View File

@ -23178,7 +23178,7 @@ compare_loc_operands (dw_loc_descr_ref x, dw_loc_descr_ref y)
&& valx2->v.val_int == valy2->v.val_int;
case DW_OP_addr:
hash_addr:
return rtx_equal_p (valx1->v.val_addr, valx2->v.val_addr);
return rtx_equal_p (valx1->v.val_addr, valy1->v.val_addr);
case DW_OP_GNU_implicit_pointer:
return valx1->val_class == dw_val_class_die_ref
&& valx1->val_class == valy1->val_class