Commit d6a88f01 authored by gkm's avatar gkm
Browse files

* flow.c (dump_edge_info): Use ARRAY_SIZE.

	* config/alpha/alpha.c (alpha_expand_block_move): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35990 138bc75d-0d04-0410-961f-82ee72b054a4
parent 04c2288a
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.
......
......@@ -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. */
......
......@@ -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);
......
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