Minimize clone counter memory usage in LTO.
authorMichael Ploujnikov <michael.ploujnikov@oracle.com>
Fri, 30 Nov 2018 22:31:02 +0000 (22:31 +0000)
committerMichael Ploujnikov <plouj@gcc.gnu.org>
Fri, 30 Nov 2018 22:31:02 +0000 (22:31 +0000)
commited1b53a0abc298f13a89e2bb69cbedfb5c4dd6f9
tree222600136b4207ba97103ad844539d07b6e32260
parent53aedcce09b10467e60b9717223191f28e0360a3
Minimize clone counter memory usage in LTO.

gcc/lto:

* lto-partition.c (privatize_symbol_name_1): Keep track of
non-unique symbol counters in the lto_clone_numbers hash
map.
(lto_promote_cross_file_statics): Allocate and free the
lto_clone_numbers hash map.
(lto_promote_statics_nonwpa): Free the lto_clone_numbers hash
map.

From-SVN: r266693
gcc/lto/ChangeLog
gcc/lto/lto-partition.c