From patchwork Mon Aug 14 08:35:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 135221 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2602924vqi; Mon, 14 Aug 2023 01:37:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFkQHKqbWVW52oyyAuAT4KV+lc4SaJu1APoQp83yrxfm2hswqyHqty0PAmnwneJOXbHVkX X-Received: by 2002:ac2:4e0c:0:b0:4ff:7602:5879 with SMTP id e12-20020ac24e0c000000b004ff76025879mr1832562lfr.55.1692002226791; Mon, 14 Aug 2023 01:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692002226; cv=none; d=google.com; s=arc-20160816; b=VSnwhWl3e1cWs3htnaSQ4PoT3yk/+QV8gg6jI2vdGhLDGSaWYRdQo6oIR/bbNGID1+ 9H4/yKxq7Ylbia0YZ6lkYmUB0MJl+AhTU9YH8qFD4GupGw8RJIP1R3qbln/qvB+Boqo5 GG3buWc5FOqFx+1jrvoKtp7Trl2qgKmT+GAyKIEyTLcOfHdNDaHwj4r5bJRL7tK6uu0P VFTprqtGulPIJv/tQsYVo45MMWyUzagUxe/sE6BMd6hEjjGLMwMEHn9M2v3qeCHxHX8o F7M/jXMoAhz51ubKM9WchbGVAgp0qe14qfXVLHNiAeM1EAe2005VBJuKYfQlN90JTQMb ZDSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:sender:errors-to:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:user-agent:subject:cc:to:date:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=OQDBfDyjn27kSCvymMpeGWpWm5nEGKVQWqDA8J+7dh4=; fh=Q7VQrkpiznztM67wgOvKwv1UVHHTooRCLgPSeptf8cg=; b=SWEfSdn9XyilNGMSApbD4VsLPyOdFeSqgFNonK2KKy2o51T0wa5fJqYDr7nY7ryd97 S+u13T0j3CiPtCluwoykvrlmQjSTlSvJmMt8x0L0VDus9FL2k2N8mEGtTHal3YMme0bA A2XBjb3SQEQ2hhBw6UY+AI+6NZ7GcQsE0CerqGFWLX1Sw1x+sKLJsw/p13sGkastJ81W 6mc73pomx3pWiOVuMzxq0vjw2nQLiFZWDzB2Y5YHDZHxm6tU0lRlygs4wzH1WWGJPJcr iCL1vo9KvaSIFGoZ8IGGH5jxR3deXSOz6JNjyG8tWVP0oHi6fWMexNS/iARKzDtfaaRt 2WrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=AF7DD4mN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i19-20020a056402055300b00523d0f76875si4978609edx.88.2023.08.14.01.37.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 01:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=AF7DD4mN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AA2713858C31 for ; Mon, 14 Aug 2023 08:37:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA2713858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692002225; bh=OQDBfDyjn27kSCvymMpeGWpWm5nEGKVQWqDA8J+7dh4=; h=Date:To:cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=AF7DD4mNyU0ICNF9JxQRpFaB71qb7joTEqx0s48T2OQ30g/SZBPGYQk4+HAKHANT+ lOeu64oSZD1T+0kCqiASUe9w7cMd0ZGCU9s0io54tOMV+4yAu8D8Nh/X/RaH6EH1UW vP4aLIApiG/o1L3lZyx0D9wtvBOin1p9jBPd4E5w= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 97B783858C33 for ; Mon, 14 Aug 2023 08:35:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97B783858C33 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A2BF31F383; Mon, 14 Aug 2023 08:35:49 +0000 (UTC) Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 909482C143; Mon, 14 Aug 2023 08:35:49 +0000 (UTC) Date: Mon, 14 Aug 2023 08:35:49 +0000 (UTC) To: gcc-patches@gcc.gnu.org cc: Jan Hubicka Subject: [PATCH] Fix print_loop_info ICE User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, MISSING_MID, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-Patchwork-Original-From: Richard Biener via Gcc-patches From: Richard Biener Reply-To: Richard Biener Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" Message-Id: <20230814083705.AA2713858C31@sourceware.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774192927321237687 X-GMAIL-MSGID: 1774192927321237687 It ICEs when invoked via debug_loops and dump_file clear. Pushed as obvious. * tree-cfg.cc (print_loop_info): Dump to 'file', not 'dump_file'. --- gcc/tree-cfg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc index ab1f8067c54..fae80bb5b91 100644 --- a/gcc/tree-cfg.cc +++ b/gcc/tree-cfg.cc @@ -8565,7 +8565,7 @@ print_loop_info (FILE *file, const class loop *loop, const char *prefix) fprintf (file, "\n%siterations by profile: %f (%s%s) entry count:", prefix, iterations.to_double (), reliable ? "reliable" : "unreliable", maybe_flat_loop_profile (loop) ? ", maybe flat" : ""); - loop_count_in (loop).dump (dump_file, cfun); + loop_count_in (loop).dump (file, cfun); } }