lto-wrapper.c (ltrans_priorities): New static var.
authorJan Hubicka <jh@suse.cz>
Mon, 30 Apr 2018 14:40:10 +0000 (16:40 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 30 Apr 2018 14:40:10 +0000 (14:40 +0000)
commitb6e33d73d8aa1b7965d6b2bf08b5bbd673e63284
treec0fe97d393dbf048a5c52b48b8a109e50d80dc35
parentfee69672c29005d68d5cddff587c535b6a8c4982
lto-wrapper.c (ltrans_priorities): New static var.

* lto-wrapper.c (ltrans_priorities): New static var.
(cmp_priority): New.
(run_gcc): Read priorities and if doing parallel build order
the Makefile by them.

* lto.c (cmp_partitions_size): Remove.
(lto_wpa_write_files): Also output priorities; do not sort partitions.
(cmp_partition_order): Move to ...
* lto-partition.c (cmp_partition_order): ...
(lto_1_to_1_map): Sort partitions.

From-SVN: r259767
gcc/ChangeLog
gcc/lto-wrapper.c
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/lto/lto.c