PR other/59545
* ira-color.c (update_conflict_hard_regno_costs): Perform the
multiplication in unsigned type.
From-SVN: r208834
+2014-03-26 Marek Polacek <polacek@redhat.com>
+
+ PR other/59545
+ * ira-color.c (update_conflict_hard_regno_costs): Perform the
+ multiplication in unsigned type.
+
2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
* doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
index = ira_class_hard_reg_index[aclass][hard_regno];
if (index < 0)
continue;
- cost = conflict_costs [i] * mult / div;
+ cost = (int) ((unsigned) conflict_costs [i] * mult) / div;
if (cost == 0)
continue;
cont_p = true;