]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix can_be_discarded_p wrt partitioned functions.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 6 Nov 2021 22:36:08 +0000 (23:36 +0100)
committerJan Hubicka <hubicka@ucw.cz>
Sat, 6 Nov 2021 22:36:08 +0000 (23:36 +0100)
commit6078eb7452aa89cb9aeecac30932b58967389459
tree8b5eb1a8f0131a2b7af6ffd5c866bd7009a1b56c
parentdf2135e88a8f78c853b35246ad426b01b6d08378
Fix can_be_discarded_p wrt partitioned functions.

gcc/ChangeLog:

* cgraph.h (cgraph_node::can_be_discarded_p): Do not
return true on functions from other partition.

gcc/lto/ChangeLog:

PR ipa/103070
PR ipa/103058
* lto-partition.c (must_not_rename): Update comment.
(promote_symbol): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
gcc/cgraph.h
gcc/lto/lto-partition.c