> Symbol order corresponds to the order in source code. > For clones their order is currently arbitrarily chosen as max order++ > But it would be more consistent with original purpose to choose clones > order to be shared with the original node order. > This stabilizes clone order for Incremental LTO. > > Order is thus no longer unique, but this property is not used outside > of previous patch, where we can use uid. > If total order would be needed, sorting by order and then uid suffices. > > gcc/ChangeLog: > > * cgraph.h (symbol_table::register_symbol): > Order can be already set. > * cgraphclones.cc (cgraph_node::create_clone): > Reuse order for clones. OK, thanks! Honza