LTO: get_section: add new argument
authorMartin Liska <mliska@suse.cz>
Wed, 21 Oct 2020 09:11:03 +0000 (11:11 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 29 Oct 2020 13:32:48 +0000 (14:32 +0100)
commit568de14d2e74cfdd600b8995ff6ac08c98ddef48
treee0fdddfddfbe226f14a78169dbb67153b8c32c1e
parent64817472be2ab6c89bd5448c242a191a38041bb9
LTO: get_section: add new argument

gcc/ChangeLog:

PR lto/97508
* langhooks.c (lhd_begin_section): Call get_section with
not_existing = true.
* output.h (get_section): Add new argument.
* varasm.c (get_section): Fail when NOT_EXISTING is true
and a section already exists.
* ipa-cp.c (ipcp_write_summary): Remove.
(ipcp_read_summary): Likewise.
* ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
functions summary.
(ipa_fn_summary_write): Always stream it.
gcc/ipa-cp.c
gcc/ipa-fnsummary.c
gcc/langhooks.c
gcc/output.h
gcc/varasm.c