* interface.c (pair_cmp): Fix gfc_symbol comparison. Adjust comment.
From-SVN: r250463
+2017-07-23 Alexander Monakov <amonakov@ispras.ru>
+
+ * interface.c (pair_cmp): Fix gfc_symbol comparison. Adjust comment.
+
2017-07-18 Nathan Sidwell <nathan@acm.org>
* trans.c (gfc_build_array_ref): Use TYPE_MAX_VALUE.
order:
- p->a->expr == NULL
- p->a->expr->expr_type != EXPR_VARIABLE
- - growing p->a->expr->symbol. */
+ - by gfc_symbol pointer value (larger first). */
static int
pair_cmp (const void *p1, const void *p2)
}
if (a2->expr->expr_type != EXPR_VARIABLE)
return 1;
+ if (a1->expr->symtree->n.sym > a2->expr->symtree->n.sym)
+ return -1;
return a1->expr->symtree->n.sym < a2->expr->symtree->n.sym;
}