mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
* config/tc-msp430.c (MAX_OP_LEN): Set to 256.
(msp430_operands): Remove redundant l2[16] within switch-case.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2003-09-17 Dmitry Diky <diwil@mail.ru>
|
||||
|
||||
* config/tc-msp430.c (MAX_OP_LEN): Set to 256.
|
||||
(msp430_operands): Remove redundant l2[16] within switch-case.
|
||||
|
||||
2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* configure.in: Handle arm-*-rtems* and thumb-*rtems*.
|
||||
|
@ -61,7 +61,7 @@ static void show_mcu_list
|
||||
static void del_spaces
|
||||
PARAMS ((char *));
|
||||
|
||||
#define MAX_OP_LEN 64
|
||||
#define MAX_OP_LEN 256
|
||||
|
||||
struct mcu_type_s
|
||||
{
|
||||
@ -560,11 +560,10 @@ msp430_operands (opcode, line)
|
||||
|
||||
case 2:
|
||||
{
|
||||
char l2[16];
|
||||
|
||||
/* Shift instruction. */
|
||||
line = extract_operand (line, l1, sizeof (l1));
|
||||
strncpy (l2, l1, 16);
|
||||
strncpy (l2, l1, sizeof (l2));
|
||||
l2[sizeof (l2) - 1] = '\0';
|
||||
res = msp430_srcoperand (&op1, l1, opcode->bin_opcode, &imm_op);
|
||||
res += msp430_dstoperand (&op2, l2, opcode->bin_opcode);
|
||||
|
||||
|
Reference in New Issue
Block a user