]> gcc.gnu.org Git - gcc.git/commit
IPA: support -flto + -flive-patching=inline-clone marxin/heads/enable-live-patching-with-lto
authorMartin Liska <mliska@suse.cz>
Wed, 5 Oct 2022 09:15:36 +0000 (11:15 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 5 Oct 2022 09:20:42 +0000 (11:20 +0200)
commitaddbf5941e80d16a470dd8215fc5a4fdf0b98f6e
tree791f3db26d11ffcd14ab19864055fc5fd7b4ef63
parentb77bcdf445685f28dae9e42b69e006801d653001
IPA: support -flto + -flive-patching=inline-clone

There's no fundamental reason why -flive-patching=inline-clone can't
coexist with -flto. Yes, one can theoretically have many more clone
function that includes a live patch. It is pretty much the same
as in-module inlining.

gcc/ChangeLog:

* opts.cc (finish_options): Print sorry message only
for -flive-patching=inline-only-static.

gcc/testsuite/ChangeLog:

* gcc.dg/live-patching-2.c: Update scanned pattern.
* gcc.dg/live-patching-5.c: New test.
gcc/opts.cc
gcc/testsuite/gcc.dg/live-patching-2.c
gcc/testsuite/gcc.dg/live-patching-5.c [new file with mode: 0644]
This page took 0.068024 seconds and 6 git commands to generate.