From 403022e0dca610b86b970c417d658939ef52eb29 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Tue, 23 May 2006 04:23:41 +0000 Subject: [PATCH] * config/bfin-defs.h (bfin_equals): Remove declaration. * config/bfin-parse.y (asm_1): Remove "expr ASSIGN expr". * config/tc-bfin.c (bfin_name_is_register): Remove. (bfin_equals): Remove. * config/tc-bfin.h (TC_EQUAL_IN_INSN): Redefine as 1. (bfin_name_is_register): Remove declaration. --- gas/ChangeLog | 9 +++++++++ gas/config/bfin-defs.h | 1 - gas/config/bfin-parse.y | 10 ---------- gas/config/tc-bfin.c | 36 ------------------------------------ 4 files changed, 9 insertions(+), 47 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 3b88064b63b..073a1283635 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2006-05-23 Jie Zhang + + * config/bfin-defs.h (bfin_equals): Remove declaration. + * config/bfin-parse.y (asm_1): Remove "expr ASSIGN expr". + * config/tc-bfin.c (bfin_name_is_register): Remove. + (bfin_equals): Remove. + * config/tc-bfin.h (TC_EQUAL_IN_INSN): Redefine as 1. + (bfin_name_is_register): Remove declaration. + 2006-05-19 Thiemo Seufer Nigel Stephens diff --git a/gas/config/bfin-defs.h b/gas/config/bfin-defs.h index 48bacb3ed7d..3c6b3b22729 100644 --- a/gas/config/bfin-defs.h +++ b/gas/config/bfin-defs.h @@ -374,7 +374,6 @@ void semantic_error_2 (char *syntax); EXPR_T mkexpr (int, SYMBOL_T); -extern void bfin_equals (Expr_Node *sym); /* Defined in bfin-lex.l. */ void set_start_state (void); diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index 917c2d27ba0..4d417019671 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -3223,16 +3223,6 @@ asm_1: } - -/* Expression Assignment. */ - - | expr ASSIGN expr - { - bfin_equals ($1); - $$ = 0; - } - - /* PushPopMultiple. */ | reg_with_predec ASSIGN LPAREN REG COLON expr COMMA REG COLON expr RPAREN { diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index dc5d6dee873..f70a94dc941 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -1968,42 +1968,6 @@ bfin_eol_in_insn (char *line) return FALSE; } -bfd_boolean -bfin_name_is_register (char *name) -{ - int i; - - if (*name == '[' || *name == '(') - return TRUE; - - if ((name[0] == 'W' || name[0] == 'w') && name[1] == '[') - return TRUE; - - if ((name[0] == 'B' || name[0] == 'b') && name[1] == '[') - return TRUE; - - for (i=0; bfin_reg_info[i].name != 0; i++) - { - if (!strcasecmp (bfin_reg_info[i].name, name)) - return TRUE; - } - return FALSE; -} - -void -bfin_equals (Expr_Node *sym) -{ - char *c; - - c = input_line_pointer; - while (*c != '=') - c--; - - input_line_pointer = c; - - equals ((char *) sym->value.s_value, 1); -} - bfd_boolean bfin_start_label (char *ptr) { -- 2.30.2