dwarf2out.c (compare_loc_operands): Fix address handling.
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 4 Mar 2011 14:19:19 +0000 (14:19 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 4 Mar 2011 14:19:19 +0000 (14:19 +0000)
gcc/
* dwarf2out.c (compare_loc_operands): Fix address handling.

From-SVN: r170675

gcc/ChangeLog
gcc/dwarf2out.c

index a88d24c452a17b899980d2a538dc6509010a6178..838b8cedf4c690d85c9bbc4705362c44bacaaf34 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.
 2011-03-04  Alan Modra  <amodra@gmail.com>
 
        * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
index 1450e806556c0e65ad5926bf2ca0ae1e886c2b20..dfe10865d8b795e75c7d2821c81fbcc94cc2a7ed 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:
             && 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
     case DW_OP_GNU_implicit_pointer:
       return valx1->val_class == dw_val_class_die_ref
             && valx1->val_class == valy1->val_class