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

PR rtl-optimization/70703
* ira-color.c (update_conflict_hard_regno_costs): Use
HOST_WIDE_INT instead of long.

From-SVN: r246711

gcc/ChangeLog
gcc/ira-color.c

index 0596b6d605386981e5057f5eb44c94f12ec30c26..566840dba132d129420d5d5364ad69e96e1316ed 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
+
+       PR rtl-optimization/70703
+       * ira-color.c (update_conflict_hard_regno_costs): Use
+       HOST_WIDE_INT instead of long.
+
 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/80298
index 7886db4ffff38cfb6e7d25635c82400d7ffa0b53..e21c321782445d2f10b7443bb3fd250d7237536a 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) (((long) conflict_costs [i] * mult) / div);
+               cost = (int) (((HOST_WIDE_INT) conflict_costs [i] * mult) / div);
                if (cost == 0)
                  continue;
                cont_p = true;