From: Greg McGary Date: Fri, 25 Aug 2000 19:08:47 +0000 (+0000) Subject: flow.c (dump_edge_info): Use ARRAY_SIZE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a56f4f680d108a598a092a361e10efcfe2f55c4;p=gcc.git flow.c (dump_edge_info): Use ARRAY_SIZE. * flow.c (dump_edge_info): Use ARRAY_SIZE. * config/alpha/alpha.c (alpha_expand_block_move): Likewise. From-SVN: r35990 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b0d7fc9cf9..fe5b369742a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-25 Greg McGary + + * flow.c (dump_edge_info): Use ARRAY_SIZE. + * config/alpha/alpha.c (alpha_expand_block_move): Likewise. + 2000-08-25 Richard Earnshaw * arm.h (STRUCT_VALUE): Define to 0, not NULL. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index ef6845b4f77..97e56e4ef73 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2820,7 +2820,7 @@ alpha_expand_block_move (operands) src_done: - if (nregs > sizeof data_regs / sizeof *data_regs) + if (nregs > ARRAY_SIZE (data_regs)) abort (); /* Now save it back out again. */ diff --git a/gcc/flow.c b/gcc/flow.c index a3597a26724..0afdc77eb02 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -5909,7 +5909,7 @@ dump_edge_info (file, e, do_succ) if (comma) fputc (',', file); - if (i < (int) (sizeof (bitnames) / sizeof (*bitnames))) + if (i < (int) ARRAY_SIZE (bitnames)) fputs (bitnames[i], file); else fprintf (file, "%d", i);