mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 23:57:03 +08:00
2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (output_insn): Use ARRAY_SIZE. (lex_got): Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* config/tc-i386.c (output_insn): Use ARRAY_SIZE.
|
||||||
|
(lex_got): Likewise.
|
||||||
|
|
||||||
2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
|
2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/tc-i386.c (output_insn): Use FRAG_APPEND_1_CHAR
|
* config/tc-i386.c (output_insn): Use FRAG_APPEND_1_CHAR
|
||||||
|
@ -4962,6 +4962,7 @@ output_insn (void)
|
|||||||
/* Output normal instructions here. */
|
/* Output normal instructions here. */
|
||||||
char *p;
|
char *p;
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
unsigned int j;
|
||||||
unsigned int prefix;
|
unsigned int prefix;
|
||||||
|
|
||||||
switch (i.tm.opcode_length)
|
switch (i.tm.opcode_length)
|
||||||
@ -4995,13 +4996,9 @@ check_prefix:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The prefix bytes. */
|
/* The prefix bytes. */
|
||||||
for (q = i.prefix;
|
for (j = ARRAY_SIZE (i.prefix), q = i.prefix; j > 0; j--, q++)
|
||||||
q < i.prefix + sizeof (i.prefix) / sizeof (i.prefix[0]);
|
|
||||||
q++)
|
|
||||||
{
|
|
||||||
if (*q)
|
if (*q)
|
||||||
FRAG_APPEND_1_CHAR (*q);
|
FRAG_APPEND_1_CHAR (*q);
|
||||||
}
|
|
||||||
|
|
||||||
/* Now the opcode; be careful about word order here! */
|
/* Now the opcode; be careful about word order here! */
|
||||||
if (i.tm.opcode_length == 1)
|
if (i.tm.opcode_length == 1)
|
||||||
@ -5451,7 +5448,7 @@ lex_got (enum bfd_reloc_code_real *reloc,
|
|||||||
if (is_end_of_line[(unsigned char) *cp] || *cp == ',')
|
if (is_end_of_line[(unsigned char) *cp] || *cp == ',')
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for (j = 0; j < sizeof (gotrel) / sizeof (gotrel[0]); j++)
|
for (j = 0; j < ARRAY_SIZE (gotrel); j++)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user