+2019-05-23 Eric Botcazou <ebotcazou@adacore.com>
+
+ * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
+
2019-05-22 Martin Liska <mliska@suse.cz>
PR lto/90500
{
const_tree lhs = *((const tree *) lp);
const_tree rhs = *((const tree *) rp);
+ const int ret
+ = compare_location (decl_sloc (lhs, true), decl_sloc (rhs, true));
- return compare_location (decl_sloc (lhs, true), decl_sloc (rhs, true));
+ return ret ? ret : DECL_UID (lhs) - DECL_UID (rhs);
}
/* Compare two comments (LP and RP) by their source location. */