From 89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 24 Sep 2001 14:47:10 +0000 Subject: [PATCH] fix compile time warning messages --- gas/ChangeLog | 6 ++++++ gas/config/tc-arc.c | 8 +++++--- gas/config/tc-arc.h | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 7b574723cb9..31f61c4ac5f 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 cedd2b45d20..569502edb0e 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 463400c5fcf..86b925336ff 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) -- 2.30.2