diff options
author | Richard Biener <rguenther@suse.de> | 2023-08-14 10:33:44 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-08-14 10:35:00 +0200 |
commit | 1ab7c8b9c6d8d65712763615ab009c806d19d716 (patch) | |
tree | aaa93fd1331f3a3cd3573497992bb1b2f5bb7d40 | |
parent | 9be93b80585fc875a2fc6b7d490b640b7fe04365 (diff) | |
download | gcc-1ab7c8b9c6d8d65712763615ab009c806d19d716.zip gcc-1ab7c8b9c6d8d65712763615ab009c806d19d716.tar.gz gcc-1ab7c8b9c6d8d65712763615ab009c806d19d716.tar.bz2 |
Fix print_loop_info ICE
It ICEs when invoked via debug_loops and dump_file clear.
* tree-cfg.cc (print_loop_info): Dump to 'file', not 'dump_file'.
-rw-r--r-- | gcc/tree-cfg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc index ab1f806..fae80bb 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); } } |