This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] gas/config/tc-msp430.c
- From: Dmitry <diwil at eis dot ru>
- To: binutils at sources dot redhat dot com
- Date: Thu, 23 Jan 2003 17:32:59 +0300
- Subject: [PATCH] gas/config/tc-msp430.c
- Organization: EIS
- Reply-to: diwil at eis dot ru
Hi Fellows,
The attached is a small clean-up for msp430 assembler.
Cheers,
Dmitry.
[2003-01-23] Dmitry Diky <diwil@mail.ru>
* config/tc-msp430.c: Substitute 'tolower()' with
'TOLOWER' defined in safe-ctype.h (libiberty)
Index: gas/config/tc-msp430.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-msp430.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 tc-msp430.c
*** gas/config/tc-msp430.c 30 Dec 2002 19:25:07 -0000 1.1
--- gas/config/tc-msp430.c 23 Jan 2003 14:28:27 -0000
*************** md_assemble (str)
*** 424,430 ****
while (cmd[i] && i < sizeof (cmd))
{
! char a = tolower (cmd[i]);
cmd[i] = a;
i++;
}
--- 424,430 ----
while (cmd[i] && i < sizeof (cmd))
{
! unsigned char a = TOLOWER (cmd[i]);
cmd[i] = a;
i++;
}
*************** msp430_operands (opcode, line)
*** 475,481 ****
.b @r2+, 5(R1). */
/* Check if byte or word operation. */
! if (*line == '.' && tolower (*(line + 1)) == 'b')
{
bin |= BYTE_OPERATION;
byte_op = 1;
--- 475,481 ----
.b @r2+, 5(R1). */
/* Check if byte or word operation. */
! if (*line == '.' && TOLOWER (*(line + 1)) == 'b')
{
bin |= BYTE_OPERATION;
byte_op = 1;