]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix bootstrap comparison failure
authorGiuliano Belinassi <giuliano.belinassi@usp.br>
Fri, 7 Aug 2020 22:06:02 +0000 (19:06 -0300)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Fri, 7 Aug 2020 22:06:02 +0000 (19:06 -0300)
commit542730f087133690b47e036dfd43eb0db8a650ce
treec5e4ebdaf8e6d41a52206c713f031117dce4ab87
parentc3b38f65b51d043133e6e69a8ae3ae24534bcdfe
Fix bootstrap comparison failure

Previously, bootstrap comparison failed when promoting symbols to
global because:

1. Randomness was used for promotion.
2. Order matters when partial linking, and such order was also random.

This commit fixes those issues.

gcc/ChangeLog:
2020-08-07  Giuliano Belinasssi <giuliano.belinassi@usp.br>

* cgraphunit.c (childno): New variable.
(maybe_compile_in_parallel): Store current child number.
* gcc.c (sort_asm_files): New function.
* toplev.c (init_additional_asm_names_file): Output child number.
* toplev.h (init_additional_asm_names_file): Update interface.
* tree.c (get_file_function_name): Do not use randomness when
promoting names.
gcc/ChangeLog
gcc/cgraphunit.c
gcc/gcc.c
gcc/toplev.c
gcc/toplev.h
gcc/tree.c