From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 46233386101C for ; Thu, 7 Jan 2021 23:08:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 46233386101C Received: by sf.home (Postfix, from userid 1000) id 6383B5A2208B; Thu, 7 Jan 2021 23:08:08 +0000 (GMT) From: Sergei Trofimovich To: gcc-patches@gcc.gnu.org Cc: Richard Biener , Jan Hubicka , Sergei Trofimovich Subject: [PATCH] ipa-modref: avoid linebreak split in debug print Date: Thu, 7 Jan 2021 23:07:58 +0000 Message-Id: <20210107230758.3110298-1-slyfox@gentoo.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2021 23:08:18 -0000 From: Sergei Trofimovich * ipa-modref.c (merge_call_side_effects): Fix linebreak split by reordering two print calls. --- gcc/ipa-modref.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index fcc676d25e4..04613201f1f 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -835,10 +835,6 @@ merge_call_side_effects (modref_summary *cur_summary, auto_vec parm_map; bool changed = false; - if (dump_file) - fprintf (dump_file, " - Merging side effects of %s with parm map:", - callee_node->dump_name ()); - /* We can not safely optimize based on summary of callee if it does not always bind to current def: it is possible that memory load was optimized out earlier which may not happen in the interposed @@ -850,6 +846,10 @@ merge_call_side_effects (modref_summary *cur_summary, cur_summary->loads->collapse (); } + if (dump_file) + fprintf (dump_file, " - Merging side effects of %s with parm map:", + callee_node->dump_name ()); + parm_map.safe_grow_cleared (gimple_call_num_args (stmt), true); for (unsigned i = 0; i < gimple_call_num_args (stmt); i++) { -- 2.30.0