]> git.ipfire.org Git - thirdparty/gcc.git/commit
fix LTO streaming order dependence on randomness
authorRichard Biener <rguenther@suse.de>
Mon, 6 Jul 2020 09:30:53 +0000 (11:30 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:16:26 +0000 (13:16 -0300)
commit20176c5d3ac2392781dfac62dc907d38fd0634dc
treea4d0ccca1a3ae812ddba110c38db55488bc20165
parentefd05cce23ec2c761b111f50098e9373e5ce31dc
fix LTO streaming order dependence on randomness

This fixes the sorting of to copy symbols in lto_output introduced
with GCC 10 to not depend on the actual values of the randomness
we append to LTO section names but instead on the order they appear
in the unsorted array.

This fixed observed debug info differences due to tree merging
prevailing different early debug pointers.

2020-07-06  Richard Biener  <rguenther@suse.de>

* lto-streamer-out.c (cmp_symbol_files): Use the computed
order map to sort symbols from the same sub-file together.
(lto_output): Compute a map of sub-file to an order number
it appears in the symbol output array.
gcc/lto-streamer-out.c