]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto: Fix reversed sorting of node order.
authorMichal Jires <mjires@suse.cz>
Thu, 15 May 2025 14:37:12 +0000 (16:37 +0200)
committerMichal Jires <mjires@suse.cz>
Thu, 30 Oct 2025 15:49:33 +0000 (16:49 +0100)
commit11f37e99ef818b92f8a8ada5cfb42fecaeb9732c
tree08909c65f86829996abce31f5a51b8416b96144c
parent1c7b556b005ee31268408058b96f317bda7cb90d
lto: Fix reversed sorting of node order.

Sorting by node order in lto partitioning is incorrectly reversed.
For default balanced partitioning this caused all noreorder symbols
to be partitioned into a single partition where they were sorted again,
but correctly.

gcc/lto/ChangeLog:

* lto-partition.cc (cmp_partitions_order): Reverse sort.
(node_cmp): Reverse sort.
gcc/lto/lto-partition.cc