From 11f2ce1f49f480c7ef0951bdee5c35bd7449f2bd Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Tue, 1 Oct 2019 19:25:31 +0000 Subject: [PATCH] re PR target/85401 (segfault building code for VAX) PR target/85401 * ira-color.c (allocno_copy_cost_saving): Call ira_init_register_move_cost_if_necessary. From-SVN: r276426 --- gcc/ChangeLog | 6 ++++++ gcc/ira-color.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0f96dde03c4..4ca92c2fd21 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-10-01 Maya Rashish + + PR target/85401 + * ira-color.c (allocno_copy_cost_saving): Call + ira_init_register_move_cost_if_necessary. + 2019-10-01 Maciej W. Rozycki * Makefile.in (gnat_install_lib): New variable. diff --git a/gcc/ira-color.c b/gcc/ira-color.c index 42309b99e69..ce5141bd48f 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -2817,6 +2817,7 @@ allocno_copy_cost_saving (ira_allocno_t allocno, int hard_regno) } else gcc_unreachable (); + ira_init_register_move_cost_if_necessary (allocno_mode); cost += cp->freq * ira_register_move_cost[allocno_mode][rclass][rclass]; } return cost; -- 2.30.2