]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
authorNick Clifton <nickc@redhat.com>
Fri, 4 Jul 2003 10:46:35 +0000 (10:46 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 4 Jul 2003 10:46:35 +0000 (10:46 +0000)
  macro to compute size of selected register name array.

gas/ChangeLog
gas/config/tc-i386.c

index e425bd43aaa050fe22c2a1058a550bbffb4b1160..2d11c7d792abcf3402869d7f9daf673bdfa47c4e 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-04  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
+       macro to compute size of selected register name array.
+
 2003-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 
        * config/tc-s390.c (md_parse_option): Add cpu type z990.
index 22db238649a3abca1571bd66fa64cfb20a6b5015..da747e3332f36d62c67c3639549dcc0d035bd228 100644 (file)
@@ -6366,12 +6366,12 @@ tc_x86_regname_to_dw2regnum (const char *regname)
   if (flag_code == CODE_64BIT)
     {
       regnames = regnames_64;
-      regnames_count = sizeof (regnames_64);
+      regnames_count = ARRAY_SIZE (regnames_64);
     }
   else
     {
       regnames = regnames_32;
-      regnames_count = sizeof (regnames_32);
+      regnames_count = ARRAY_SIZE (regnames_32);
     }
 
   for (regnum = 0; regnum < regnames_count; regnum++)