* c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
From-SVN: r271549
This commit is contained in:
parent
832ece86e5
commit
2b8235ea99
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
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
|
||||
|
|
|
@ -679,8 +679,10 @@ compare_node (const void *lp, const void *rp)
|
|||
{
|
||||
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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue