commit fcb644db593ee78855a0fac1a76f11478a359d1d Author: Aldy Hernandez Date: Wed Dec 5 12:06:01 2012 -0600 PR rtl-optimization/55604 * lra-lives.c (remove_some_program_points_and_update_live_ranges): Avoiding division by zero when dumping live range compression. diff --git a/gcc/lra-lives.c b/gcc/lra-lives.c index c79b95b..46146ca 100644 --- a/gcc/lra-lives.c +++ b/gcc/lra-lives.c @@ -811,7 +811,7 @@ remove_some_program_points_and_update_live_ranges (void) sbitmap_free (born); sbitmap_free (dead); n++; - if (lra_dump_file != NULL) + if (lra_dump_file != NULL && lra_live_max_point) fprintf (lra_dump_file, "Compressing live ranges: from %d to %d - %d%%\n", lra_live_max_point, n, 100 * n / lra_live_max_point); if (n < lra_live_max_point)