Commit e6130412 by Matthew Malcomson Committed by Matthew Malcomson

[mid-end] [obvious] Cast to avoid -Wsign-compare warning from r279124


The previous revision adds a comparison that triggers a warning.
Here we simply cast the unsigned integer to a signed one before the
comparison.

gcc/ChangeLog:

2019-12-09  Matthew Malcomson  <matthew.malcomson@arm.com>

	* regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
	avoid a warning.

From-SVN: r279126
parent 21a098f4
2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com> 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
* regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
avoid a warning.
2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
PR middle-end/92410 PR middle-end/92410
* bb-reorder.c (pass_reorder_blocks::execute): Recompute * bb-reorder.c (pass_reorder_blocks::execute): Recompute
dataflow luids once basic blocks have been reordered. dataflow luids once basic blocks have been reordered.
...@@ -324,7 +324,7 @@ regstat_bb_compute_calls_crossed (unsigned int bb_index, bitmap live) ...@@ -324,7 +324,7 @@ regstat_bb_compute_calls_crossed (unsigned int bb_index, bitmap live)
FOR_BB_INSNS_REVERSE (bb, insn) FOR_BB_INSNS_REVERSE (bb, insn)
{ {
gcc_assert (INSN_UID (insn) < DF_INSN_SIZE ()); gcc_assert (INSN_UID (insn) < (int) DF_INSN_SIZE ());
struct df_insn_info *insn_info = DF_INSN_INFO_GET (insn); struct df_insn_info *insn_info = DF_INSN_INFO_GET (insn);
unsigned int regno; unsigned int regno;
......
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