From 174b84e5c2bbbef10170f7192612c43198c1738a Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Sat, 24 Jan 2004 10:57:07 +0100 Subject: cse.c: (cse_cc_succs) Fix comparison warning. 2004-01-24 Andreas Tobler * cse.c: (cse_cc_succs) Fix comparison warning. From-SVN: r76487 --- gcc/ChangeLog | 4 ++++ gcc/cse.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 920959b..75da346 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-01-24 Andreas Tobler + + * cse.c: (cse_cc_succs) Fix comparison warning. + 2004-01-24 Kazu Hirata * config/h8300/h8300.md: Remove extraneous USE in expanders. diff --git a/gcc/cse.c b/gcc/cse.c index 1ec01f9..90c67c0 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -7806,7 +7806,7 @@ cse_cc_succs (basic_block bb, rtx cc_reg, rtx cc_src, bool can_change_mode) if (found) { found_equiv = true; - if (insn_count < sizeof insns / sizeof insn[0]) + if (insn_count < ARRAY_SIZE(insns)) { insns[insn_count] = insn; modes[insn_count] = set_mode; -- cgit v1.1