aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-section-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-section-out.c')
-rw-r--r--gcc/lto-section-out.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/lto-section-out.c b/gcc/lto-section-out.c
index d68c76169fe..d6ddcadb48a 100644
--- a/gcc/lto-section-out.c
+++ b/gcc/lto-section-out.c
@@ -59,7 +59,12 @@ hashval_t
lto_hash_decl_slot_node (const void *p)
{
const struct lto_decl_slot *ds = (const struct lto_decl_slot *) p;
- return (hashval_t) DECL_UID (ds->t);
+
+ /* ### */
+ /*
+ return (hashval_t) DECL_UID (ds->t);
+ */
+ return (hashval_t) TREE_HASH (ds->t);
}
@@ -73,7 +78,11 @@ lto_eq_decl_slot_node (const void *p1, const void *p2)
const struct lto_decl_slot *ds2 =
(const struct lto_decl_slot *) p2;
+ /* ### */
+ /*
return DECL_UID (ds1->t) == DECL_UID (ds2->t);
+ */
+ return ds1->t == ds2->t;
}