diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-03-15 17:30:31 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-03-15 17:30:31 +0000 |
commit | c3fe08facbc8d8e8e0bdff27a01c0c77a03a5047 (patch) | |
tree | e452b44b07f1d8277eb0f51d1e53c87222e18515 /opcodes/i386-opc.c | |
parent | 4061927e10148290f821a3bce1b20870bf01534a (diff) | |
download | gdb-c3fe08facbc8d8e8e0bdff27a01c0c77a03a5047.zip gdb-c3fe08facbc8d8e8e0bdff27a01c0c77a03a5047.tar.gz gdb-c3fe08facbc8d8e8e0bdff27a01c0c77a03a5047.tar.bz2 |
gas/
2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_begin): Use i386_regtab_size to scan
i386_regtab.
(parse_register): Use i386_regtab_size instead of ARRAY_SIZE
on i386_regtab.
opcodes/
2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.c: Include "libiberty.h".
(i386_regtab): Remove the last entry.
(i386_regtab_size): New.
(i386_float_regtab_size): Likewise.
* i386-opc.h (i386_regtab_size): New.
(i386_float_regtab_size): Likewise.
Diffstat (limited to 'opcodes/i386-opc.c')
-rw-r--r-- | opcodes/i386-opc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/opcodes/i386-opc.c b/opcodes/i386-opc.c index 05de431..9c96113 100644 --- a/opcodes/i386-opc.c +++ b/opcodes/i386-opc.c @@ -19,6 +19,7 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #include "sysdep.h" +#include "libiberty.h" #include "i386-opc.h" const template i386_optab[] = @@ -1631,11 +1632,10 @@ const reg_entry i386_regtab[] = /* No type will make this register rejected for all purposes except for addressing. This saves creating one extra type for RIP. */ {"rip", BaseIndex, 0, 0}, - - /* sentinel */ - {NULL, 0, 0, 0} }; +const unsigned int i386_regtab_size = ARRAY_SIZE (i386_regtab); + const reg_entry i386_float_regtab[] = { {"st(0)", FloatReg|FloatAcc, 0, 0}, @@ -1648,6 +1648,8 @@ const reg_entry i386_float_regtab[] = {"st(7)", FloatReg, 0, 7} }; +const unsigned int i386_float_regtab_size = ARRAY_SIZE (i386_float_regtab); + /* Segment stuff. */ const seg_entry cs = { "cs", 0x2e }; const seg_entry ds = { "ds", 0x3e }; |