From 717acf4b26d931f952cbe49fd428807d6599c73e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 12 Dec 2002 22:05:00 +0000 Subject: [PATCH] * config/tc-openrisc.c (ignore_pseudo): Prototype. (md_atof): Remove declaration of atof_ieee. * config/tc-or32.c (parse_operand): Prototype non-BFD too. (md_apply_fix3): Fix bogus >>='s. (md_undefined_symbol): Delete unused var. --- gas/ChangeLog | 5 +++++ gas/config/tc-openrisc.c | 3 ++- gas/config/tc-or32.c | 12 ++++-------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 7cddfbb..c8361ff 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2002-12-13 Alan Modra + * config/tc-openrisc.c (ignore_pseudo): Prototype. + (md_atof): Remove declaration of atof_ieee. + * config/tc-or32.c (parse_operand): Prototype non-BFD too. + (md_apply_fix3): Fix bogus >>='s. + (md_undefined_symbol): Delete unused var. * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype. (c_to_r, ipush_code, fake_opcode, alias): Likewise. (fake_opcode): Adjust for pj_opc_int_t change. diff --git a/gas/config/tc-openrisc.c b/gas/config/tc-openrisc.c index d4177eb..726b583 100644 --- a/gas/config/tc-openrisc.c +++ b/gas/config/tc-openrisc.c @@ -83,6 +83,8 @@ md_show_usage (stream) { } +static void ignore_pseudo PARAMS ((int)); + static void ignore_pseudo (val) int val ATTRIBUTE_UNUSED; @@ -443,7 +445,6 @@ md_atof (type, litP, sizeP) int prec; LITTLENUM_TYPE words [MAX_LITTLENUMS]; char * t; - char * atof_ieee (); switch (type) { diff --git a/gas/config/tc-or32.c b/gas/config/tc-or32.c index 2983b7a..1144958 100644 --- a/gas/config/tc-or32.c +++ b/gas/config/tc-or32.c @@ -117,9 +117,7 @@ static unsigned long jalr_r9_opcode; static int check_invalid_opcode PARAMS ((unsigned long)); static void encode PARAMS ((const struct machine_opcode *, unsigned long *, signed long, char)); -#ifdef BFD_ASSEMBLER -static char * parse_operand PARAMS ((char *, expressionS *, int)); -#endif +static char *parse_operand PARAMS ((char *, expressionS *, int)); /* Set bits in machine opcode according to insn->encoding description and passed operand. */ @@ -352,7 +350,7 @@ parse_operand (s, operandp, opt) } #else -char * +static char * parse_operand (s, operandp, opt) char *s; expressionS *operandp; @@ -1087,7 +1085,7 @@ md_apply_fix3 (fixP, valP, seg) break; case RELOC_WDISP30: - val = (val >>= 2) + 1; + val = (val >> 2) + 1; buf[0] |= (val >> 24) & 0x3f; buf[1] = (val >> 16); buf[2] = val >> 8; @@ -1111,7 +1109,7 @@ md_apply_fix3 (fixP, valP, seg) break; case RELOC_WDISP22: - val = (val >>= 2) + 1; + val = (val >> 2) + 1; /* FALLTHROUGH */ case RELOC_BASE22: buf[1] |= (val >> 16) & 0x3f; @@ -1427,8 +1425,6 @@ md_undefined_symbol (name) /* Register name. */ if (name[0] == 'r' || name[0] == 'R' || name[0] == 'a' || name[0] == 'b') { - long maxreg; - /* Parse the number, make sure it has no extra zeroes or trailing chars. */ regnum = atol (& name[1]); -- 2.7.4