gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2011 14:19:19 +0000 (14:19 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2011 14:19:19 +0000 (14:19 +0000)
* dwarf2out.c (compare_loc_operands): Fix address handling.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170675 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index a88d24c..838b8ce 100644 (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.
index 1450e80..dfe1086 100644 (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