From: Jan Hubicka Date: Fri, 26 Nov 2021 12:36:35 +0000 (+0100) Subject: Fix handling of in_flags in update_escape_summary_1 X-Git-Tag: releases/gcc-11.3.0~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0c601ed0080ab9ebe2bc0c23d41471531e2af02;p=thirdparty%2Fgcc.git Fix handling of in_flags in update_escape_summary_1 update_escape_summary_1 has thinko where it compues proper min_flags but then stores original value (ignoring the fact whether there was a dereference in the escape point). PR ipa/103432 * ipa-modref.c (update_escape_summary_1): Fix handling of min_flags. (cherry picked from commit a70faf6e4df7481c2c9a08a06657c20beb3043de) --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 0fe168e04f18..030de86e5c7a 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -3032,7 +3032,7 @@ update_escape_summary_1 (cgraph_edge *e, if (ee->direct && !em->direct) min_flags = deref_flags (min_flags, ignore_stores); struct escape_entry entry = {em->parm_index, ee->arg, - ee->min_flags, + min_flags, ee->direct & em->direct}; sum->esc.safe_push (entry); }