From: Jan Hubicka Date: Mon, 23 Aug 2021 14:16:25 +0000 (+0200) Subject: Fix previous ipa-modref patch X-Git-Tag: basepoints/gcc-13~5230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd4ab91660c8f5534c46979d4846a4f1a0972b0;p=thirdparty%2Fgcc.git Fix previous ipa-modref patch gcc/ChangeLog: PR middle-end/101949 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of EAF_NOCLOBBER --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index cb0a314cbeb3..6ab687a7ba05 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -1707,7 +1707,7 @@ analyze_ssa_name_flags (tree name, vec &lattice, int depth, is on since that would allow propagation of this from -fno-ipa-pta to -fipa-pta functions. */ if (gimple_call_fn (use_stmt) == name) - lattice[index].merge (~EAF_NOCLOBBER); + lattice[index].merge (~(EAF_NOCLOBBER | EAF_UNUSED)); /* Recursion would require bit of propagation; give up for now. */ if (callee && !ipa && recursive_call_p (current_function_decl,