]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix print_loop_info ICE
authorRichard Biener <rguenther@suse.de>
Mon, 14 Aug 2023 08:33:44 +0000 (10:33 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 14 Aug 2023 08:35:00 +0000 (10:35 +0200)
It ICEs when invoked via debug_loops and dump_file clear.

* tree-cfg.cc (print_loop_info): Dump to 'file', not 'dump_file'.

gcc/tree-cfg.cc

index ab1f8067c545efd8cc3daafb82de5170ec4ab42d..fae80bb5b91eaebb2f0c89f66b709f93876eb829 100644 (file)
@@ -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);
     }
 
 }