diff options
author | Jan Hubicka <jh@suse.cz> | 2022-12-21 12:41:25 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2022-12-21 12:41:25 +0100 |
commit | 39ebd3a9f5cb8555bcb0422086e646ce833028a4 (patch) | |
tree | 18b06befdc9a62afaaddc00c2daefc21c71a58d3 /libffi/src | |
parent | 88709c4a1e6f8b69a33897a1ab46b8d66c4569c4 (diff) | |
download | gcc-39ebd3a9f5cb8555bcb0422086e646ce833028a4.zip gcc-39ebd3a9f5cb8555bcb0422086e646ce833028a4.tar.gz gcc-39ebd3a9f5cb8555bcb0422086e646ce833028a4.tar.bz2 |
Make -fwhole-program to work with incremental LTO linking
Update documentation of -fwhole-program which was wrongly
claiming that it is useless with LTO whole it is useful for LTO without plugin
and extends -fwhole-program to also work with incremental linking.
This is useful when building kernel where the incremental link is de-facto fina
binary and only some explicitly marked symbols needs to remain.
Bootstrapped/regtested x86_64-linux, comitted.
gcc/ChangeLog:
2022-12-21 Jan Hubicka <hubicka@ucw.cz>
* doc/invoke.texi: Fix documentation of -fwhole-program with LTO
and document behaviour for incremental linking.
gcc/lto/ChangeLog:
2022-12-21 Jan Hubicka <hubicka@ucw.cz>
* lto-common.cc (lto_resolution_read): With incremental linking
and whole program ignore turn LDPR_PREVAILING_DEF_IRONLY to
LDPR_PREVAILING_DEF_IRONLY_EXP
* lto-lang.cc (lto_post_options): Do not clear flag_whole_program
for incremental link
Diffstat (limited to 'libffi/src')
0 files changed, 0 insertions, 0 deletions