aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-07-04 10:46:35 +0000
committerNick Clifton <nickc@redhat.com>2003-07-04 10:46:35 +0000
commit0cea619061225ccddefb40dba9b13ae99d3c096d (patch)
treebe4a65c342278adb8c9f53e5a9fed1fd18e3c387 /gas
parent96c223ce90d6bbaed5faac223eb8c494dc43b5a3 (diff)
downloadgdb-0cea619061225ccddefb40dba9b13ae99d3c096d.zip
gdb-0cea619061225ccddefb40dba9b13ae99d3c096d.tar.gz
gdb-0cea619061225ccddefb40dba9b13ae99d3c096d.tar.bz2
* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
macro to compute size of selected register name array.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e425bd4..2d11c7d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 22db238..da747e3 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -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++)