PR target/86547
* lra-lives.c (remove_some_program_points_and_update_live_ranges):
Check whether lra_live_max_point is 0 before dividing.
From-SVN: r263548
+2018-08-14 Ilya Leoshkevich <iii@linux.ibm.com>
+
+ PR target/86547
+ * lra-lives.c (remove_some_program_points_and_update_live_ranges):
+ Check whether lra_live_max_point is 0 before dividing.
+
2018-08-14 Martin Sebor <msebor@redhat.com>
PR tree-optimization/86650
n++;
if (lra_dump_file != NULL)
fprintf (lra_dump_file, "Compressing live ranges: from %d to %d - %d%%\n",
- lra_live_max_point, n, 100 * n / lra_live_max_point);
+ lra_live_max_point, n,
+ lra_live_max_point ? 100 * n / lra_live_max_point : 100);
if (n < lra_live_max_point)
{
lra_live_max_point = n;