flow.c (dump_edge_info): Use ARRAY_SIZE.
authorGreg McGary <greg@mcgary.org>
Fri, 25 Aug 2000 19:08:47 +0000 (19:08 +0000)
committerGreg McGary <gkm@gcc.gnu.org>
Fri, 25 Aug 2000 19:08:47 +0000 (19:08 +0000)
* flow.c (dump_edge_info): Use ARRAY_SIZE.
* config/alpha/alpha.c (alpha_expand_block_move): Likewise.

From-SVN: r35990

gcc/ChangeLog
gcc/config/alpha/alpha.c
gcc/flow.c

index 7b0d7fc9cf9ceb1e151f7c5f85f4d3dafb1524fc..fe5b369742aa24d68ae1c32462d07bc37051a456 100644 (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.
index ef6845b4f77d3b0e55d9dde787dc9919647c5021..97e56e4ef73340339a54306e9b209f2bdfc837e0 100644 (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.  */
index a3597a26724ad396a563778fcb4d6393e42ecedc..0afdc77eb020bce03df1430602b2d680328294e8 100644 (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);