From 006299d30715eb4caacd7219a59234258a7a4171 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 5 Dec 2001 09:52:32 +0000 Subject: [PATCH] Corrected incorrect op->type selection due to missing 'else'. --- gas/ChangeLog | 5 +++++ gas/config/tc-sh.c | 13 +++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index c41372948e..0c19d23131 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-12-05 Arati Dikey + + * tc-sh.c (parse_at): Corrected incorrect op->type selection due + to missing 'else'. + 2001-12-04 Alexandre Oliva * config/tc-d10v.c (write_2_short): Don't skip dummy fixups, so diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 935a287604..a238019db2 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; } -- 2.34.1