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
This commit is contained in:
Greg McGary 2000-08-25 19:08:47 +00:00 committed by Greg McGary
parent b5232c64e7
commit 9a56f4f680
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-08-25 Greg McGary <greg@mcgary.org>
* flow.c (dump_edge_info): Use ARRAY_SIZE.
* config/alpha/alpha.c (alpha_expand_block_move): Likewise.
2000-08-25 Richard Earnshaw <rearnsha@arm.com>
* arm.h (STRUCT_VALUE): Define to 0, not NULL.

View File

@ -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. */

View File

@ -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);