aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-12-05 09:52:32 +0000
committerNick Clifton <nickc@redhat.com>2001-12-05 09:52:32 +0000
commit006299d30715eb4caacd7219a59234258a7a4171 (patch)
tree7390272233eeae563f1a2d96a208c002b236d376 /gas/config/tc-sh.c
parent50f6fb4b7ad4b5071f7cd1d3b8507e528ed278ab (diff)
downloadfsf-binutils-gdb-006299d30715eb4caacd7219a59234258a7a4171.zip
fsf-binutils-gdb-006299d30715eb4caacd7219a59234258a7a4171.tar.gz
fsf-binutils-gdb-006299d30715eb4caacd7219a59234258a7a4171.tar.bz2
Corrected incorrect op->type selection due to missing 'else'.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r--gas/config/tc-sh.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 935a287..a238019 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -989,9 +989,8 @@ parse_at (src, op)
{
src += parse_reg (src, &mode, &(op->reg));
if (mode != A_REG_N)
- {
- as_bad (_("illegal register after @"));
- }
+ as_bad (_("illegal register after @"));
+
if (src[0] == '+')
{
char l0, l1;
@@ -1006,8 +1005,8 @@ parse_at (src, op)
src += 2;
op->type = A_PMOD_N;
}
- if ((l0 == 'r' && l1 == '9')
- || (l0 == 'i' && l1 == 'y'))
+ else if ( (l0 == 'r' && l1 == '9')
+ || (l0 == 'i' && l1 == 'y'))
{
src += 2;
op->type = A_PMODY_N;
@@ -1016,9 +1015,7 @@ parse_at (src, op)
op->type = A_INC_N;
}
else
- {
- op->type = A_IND_N;
- }
+ op->type = A_IND_N;
}
return src;
}