From e6130412c18618b8c6cc0dbc63b27ff2b7d6f8ff Mon Sep 17 00:00:00 2001 From: Matthew Malcomson Date: Mon, 9 Dec 2019 13:16:07 +0000 Subject: [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 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to avoid a warning. From-SVN: r279126 --- gcc/regstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/regstat.c') diff --git a/gcc/regstat.c b/gcc/regstat.c index c6cefb11..bf95ecc 100644 --- a/gcc/regstat.c +++ b/gcc/regstat.c @@ -324,7 +324,7 @@ regstat_bb_compute_calls_crossed (unsigned int bb_index, bitmap live) 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); unsigned int regno; -- cgit v1.1