* config/tc-msp430.c (MAX_OP_LEN): Set to 256.

(msp430_operands): Remove redundant l2[16] within switch-case.
This commit is contained in:
Alan Modra
2003-09-17 11:27:39 +00:00
parent 4eaa9a3184
commit 8cd5b11339
2 changed files with 20 additions and 16 deletions

View File

@ -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*.

View File

@ -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);