@@ -10879,7 +10879,7 @@ callers are impacted, therefore need to be patched as well.
@gccoptlist{-fwhole-program -fipa-pta -fipa-reference -fipa-ra @gol
-fipa-icf -fipa-icf-functions -fipa-icf-variables @gol
-fipa-bit-cp -fipa-vrp -fipa-pure-const -fipa-reference-addressable @gol
--fipa-stack-alignment}
+-fipa-stack-alignment -fipa-modref}
@item inline-only-static
@@ -792,6 +792,13 @@ control_options_for_live_patching (struct gcc_options *opts,
else
opts->x_flag_ipa_pure_const = 0;
+ if (opts_set->x_flag_ipa_modref && opts->x_flag_ipa_modref)
+ error_at (loc,
+ "%<-fipa-modref%> is incompatible with "
+ "%<-flive-patching=inline-only-static|inline-clone%>");
+ else
+ opts->x_flag_ipa_modref = 0;
+
/* FIXME: disable unreachable code removal. */
/* discovery of functions/variables with no address taken. */