re PR rtl-optimization/70703 (Regression in register usage on x86)
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 7 Apr 2017 16:06:28 +0000 (16:06 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Fri, 7 Apr 2017 16:06:28 +0000 (16:06 +0000)
2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>

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
gcc/ira-color.c

index 437c99dea471f6853104e54744425df730a9f03b..5f3c5fc95773664d326a8c6180136c4cb0c3b3f8 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
+
+       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  <vmakarov@redhat.com>
 
        PR rtl-optimization/70478
index e21c321782445d2f10b7443bb3fd250d7237536a..698458eb63851c8eba712fe51c49a20035f23258 100644 (file)
@@ -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;