aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-24 14:47:10 +0000
committerNick Clifton <nickc@redhat.com>2001-09-24 14:47:10 +0000
commit89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22 (patch)
tree97c81f5bc437612c19557461a518aa0c7452680c
parent7ab98e9e4f7a1f9b904a1b9dbcbb9c9323a33f8f (diff)
downloadgdb-89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22.zip
gdb-89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22.tar.gz
gdb-89b57c9acc2dd358b76bdfe5a2b960a2fb17fc22.tar.bz2
fix compile time warning messages
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-arc.c8
-rw-r--r--gas/config/tc-arc.h4
3 files changed, 13 insertions, 5 deletions
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 <nickc@cambridge.redhat.com>
+
+ * 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 <nickc@cambridge.redhat.com>
* 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)