From 7879aabea75aaa447a6dddeb43cafb756a51388f Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Fri, 7 Apr 2017 16:06:28 +0000 Subject: [PATCH] re PR rtl-optimization/70703 (Regression in register usage on x86) 2017-04-07 Vladimir Makarov PR rtl-optimization/70703 * ira-color.c (update_conflict_hard_regno_costs): Use int64_t instead of HOST_WIDE_INT. From-SVN: r246765 --- gcc/ChangeLog | 6 ++++++ gcc/ira-color.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 437c99dea47..5f3c5fc9577 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-04-07 Vladimir Makarov + + PR rtl-optimization/70703 + * ira-color.c (update_conflict_hard_regno_costs): Use + int64_t instead of HOST_WIDE_INT. + 2017-04-07 Vladimir Makarov PR rtl-optimization/70478 diff --git a/gcc/ira-color.c b/gcc/ira-color.c index e21c3217824..698458eb638 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -1522,7 +1522,7 @@ update_conflict_hard_regno_costs (int *costs, enum reg_class aclass, index = ira_class_hard_reg_index[aclass][hard_regno]; if (index < 0) continue; - cost = (int) (((HOST_WIDE_INT) conflict_costs [i] * mult) / div); + cost = (int) (((int64_t) conflict_costs [i] * mult) / div); if (cost == 0) continue; cont_p = true; -- 2.30.2