Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call reorder_dups ASAP instead of ALAP
Currently, we call reorder_dups ALAP, just before copy_die_tree, and only for DIEs that will be copied. This approach causes a problem with reachable DIE propagation (which is done in partition_dups after phase 1): when a dup-chain that needs to be reordered (starts with ODR_DECL but also contains ODR_DEF) is marked as reachable during this propagation, propagation will stop at the ODR_DECL, while it should continue at the first ODR_DEF instead. Fix this by calling reorder_dups ASAP, just after computing the partitions. 2020-01-21 Tom de Vries <tdevries@suse.de> PR dwz/25424 * dwz.c (partition_dups_2): Move calling of reorder_dups ... (partition_dups): ... here.
- Loading branch information