From: Jan Hubicka Date: Mon, 23 Aug 2021 14:16:25 +0000 (+0200) Subject: Fix previous ipa-modref patch X-Git-Tag: releases/gcc-11.3.0~994 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e527b92b183de8c887213ccf6b024ddb4e363865;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 (cherry picked from commit 5bd4ab91660c8f5534c46979d4846a4f1a0972b0) --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index dc5ee8cc2d0e..80f192d9025c 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -1628,7 +1628,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)); /* Return slot optimization would require bit of propagation; give up for now. */