From: Nick Clifton Date: Mon, 24 Sep 2001 14:47:10 +0000 (+0000) Subject: fix compile time warning messages X-Git-Tag: cygnus_cvs_20020108_pre~1287 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22;p=platform%2Fupstream%2Fbinutils.git fix compile time warning messages --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 7b57472..31f61c4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-09-24 Nick Clifton + + * config/tc-arc.c: Add missing prototype. + (md_atof): Change type to int. Add missing prototype. + * config/tc-arc.h: Prototype exported functions. + 2001-09-22 Nick Clifton * as.c: Add missing function prototype. diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index cedd2b4..569502e 100644 --- a/gas/config/tc-arc.c +++ b/gas/config/tc-arc.c @@ -46,9 +46,11 @@ static void arc_common PARAMS ((int)); static void arc_extinst PARAMS ((int)); static void arc_extoper PARAMS ((int)); static void arc_option PARAMS ((int)); -static int get_arc_exp_reloc_type PARAMS ((int, int, expressionS *, +static int get_arc_exp_reloc_type PARAMS ((int, int, expressionS *, expressionS *)); +static void init_opcode_tables PARAMS ((int)); + const struct suffix_classes { char *name; int len; @@ -1537,7 +1539,7 @@ arc_option (ignore) char * md_atof (type, litP, sizeP) - char type; + int type; char *litP; int *sizeP; { @@ -1545,7 +1547,7 @@ md_atof (type, litP, sizeP) LITTLENUM_TYPE words[MAX_LITTLENUMS]; LITTLENUM_TYPE *wordP; char *t; - char *atof_ieee (); + char * atof_ieee PARAMS ((char *, int, LITTLENUM_TYPE *)); switch (type) { diff --git a/gas/config/tc-arc.h b/gas/config/tc-arc.h index 463400c..86b9253 100644 --- a/gas/config/tc-arc.h +++ b/gas/config/tc-arc.h @@ -59,11 +59,11 @@ extern const char *arc_target_format; /* The ARC needs to parse reloc specifiers in .word. */ -extern void arc_parse_cons_expression (); +extern void arc_parse_cons_expression PARAMS ((struct expressionS *, unsigned)); #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \ arc_parse_cons_expression (EXP, NBYTES) -extern void arc_cons_fix_new (); +extern void arc_cons_fix_new PARAMS ((struct frag *, int, int, struct expressionS *)); #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \ arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP)