From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692002149; h=from:from:reply-to:date:date:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=OQDBfDyjn27kSCvymMpeGWpWm5nEGKVQWqDA8J+7dh4=; b=JXoaChm+RZ4pULddbIj1maOERuXhwRKXpyE6T9dfhevbZDrQT/U793+hR7K1xw0fn677ox cDFEUoa5XRMUmYR6MgGOnd1TGG1yWgjRvwGggmBYleArFn+F1GtbqSEk0KZml1t6MWJcxm VXp5uyF8LvZECMsaXnPO/Xqp9SeeqcY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692002149; h=from:from:reply-to:date:date:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=OQDBfDyjn27kSCvymMpeGWpWm5nEGKVQWqDA8J+7dh4=; b=/OimVS7s92BVVYzgtu+Ef9b9qdbHTZSL4jodK7IutSShBHVdIY+Z70uM/W6iqzrD3owWb4 i1TvIZhpS1/i0lAw== 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) From: Richard Biener 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 Content-Type: text/plain; charset=US-ASCII 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 List-Id: Message-ID: <20230814083549.42w8P474soysGxt83-oEWJDnqmMcltVt0EXQjqG1M_0@z> 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); } } -- 2.35.3