summaryrefslogtreecommitdiff
path: root/gas/config/tc-h8300.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-02-23 12:28:06 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-02-23 12:28:06 +0000
commit7e515a682ff011dab96f2e22be742de42fb39b61 (patch)
treedd53ffe959e1a678492b01d1cbbd16fb42049976 /gas/config/tc-h8300.c
parent5282db756ab462a019cec4c2db3f5a35cfee14eb (diff)
downloadbinutils-redhat-7e515a682ff011dab96f2e22be742de42fb39b61.tar.gz
* cgen.c: Warning fixes.
* config/tc-arc.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-avr.c: Likewise. * config/tc-d10v.c: Likewise. * config/tc-d30v.c: Likewise. * config/tc-frv.c: Likewise. * config/tc-frv.h: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8500.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-ip2k.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-maxq.c: Likewise. * config/tc-mcore.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-msp430.c: Likewise. * config/tc-pj.c: Likewise. * config/tc-ppc.c: Likewise. * config/tc-ppc.h: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sh64.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic80.c: Likewise. * config/tc-v850.c: Likewise. * config/tc-vax.c: Likewise. * config/tc-w65.c: Likewise. * config/tc-xstormy16.c: Likewise. * config/tc-z8k.c: Likewise.
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r--gas/config/tc-h8300.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index 8879402a37..103e605858 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -1,6 +1,6 @@
/* tc-h8300.c -- Assemble code for the Renesas H8/300
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000,
- 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -978,7 +978,8 @@ get_mova_operands (char *op_end, struct h8_op *operand)
static void
get_rtsl_operands (char *ptr, struct h8_op *operand)
{
- int mode, num, num2, len, type = 0;
+ int mode, len, type = 0;
+ unsigned int num, num2;
ptr++;
if (*ptr == '(')
@@ -1004,7 +1005,7 @@ get_rtsl_operands (char *ptr, struct h8_op *operand)
ptr += len;
/* CONST_xxx are used as placeholders in the opcode table. */
num = num2 - num;
- if (num < 0 || num > 3)
+ if (num > 3)
{
as_bad (_("invalid register list"));
return;