Commit 6686e0bc by Marek Polacek Committed by Marek Polacek

re PR other/59545 (Signed integer overflow issues)

	PR other/59545
	* ira-color.c (update_conflict_hard_regno_costs): Perform the
	multiplication in unsigned type.

From-SVN: r208834
parent d4fbc3ae
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> 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
* doc/install.texi: Document nds32le-*-elf and nds32be-*-elf. * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
......
...@@ -1505,7 +1505,7 @@ update_conflict_hard_regno_costs (int *costs, enum reg_class aclass, ...@@ -1505,7 +1505,7 @@ update_conflict_hard_regno_costs (int *costs, enum reg_class aclass,
index = ira_class_hard_reg_index[aclass][hard_regno]; index = ira_class_hard_reg_index[aclass][hard_regno];
if (index < 0) if (index < 0)
continue; continue;
cost = conflict_costs [i] * mult / div; cost = (int) ((unsigned) conflict_costs [i] * mult) / div;
if (cost == 0) if (cost == 0)
continue; continue;
cont_p = true; cont_p = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment