bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tc-arc compile time warning fixes


From: Nick Clifton
Subject: tc-arc compile time warning fixes
Date: 24 Sep 2001 15:44:36 +0100

Hi Guys,

  I am applying the patch below to fix a couple of compiel time
  warning messages when building gas for the ARC.

Cheers
        Nick

2001-09-24  Nick Clifton  <address@hidden>

        * config/tc-arc.c: Add missing prototype.
        (md_atof): Change type to int. Add missing prototype.
        * config/tc-arc.h: Prototype exported functions.

Index: config/tc-arc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arc.c,v
retrieving revision 1.16
diff -p -w -r1.16 tc-arc.c
*** tc-arc.c    2001/09/19 05:33:21     1.16
--- tc-arc.c    2001/09/24 14:43:41
*************** static void arc_option PARAMS ((int));
*** 49,54 ****
--- 49,56 ----
  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;
*************** arc_option (ignore)
*** 1537,1543 ****
  
  char *
  md_atof (type, litP, sizeP)
!      char type;
       char *litP;
       int *sizeP;
  {
--- 1539,1545 ----
  
  char *
  md_atof (type, litP, sizeP)
!      int type;
       char *litP;
       int *sizeP;
  {
*************** md_atof (type, litP, sizeP)
*** 1545,1551 ****
    LITTLENUM_TYPE words[MAX_LITTLENUMS];
    LITTLENUM_TYPE *wordP;
    char *t;
!   char *atof_ieee ();
  
    switch (type)
      {
--- 1547,1553 ----
    LITTLENUM_TYPE words[MAX_LITTLENUMS];
    LITTLENUM_TYPE *wordP;
    char *t;
!   char * atof_ieee PARAMS ((char *, int, LITTLENUM_TYPE *));
  
    switch (type)
      {
Index: config/tc-arc.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arc.h,v
retrieving revision 1.8
diff -p -w -r1.8 tc-arc.h
*** tc-arc.h    2001/05/12 15:14:52     1.8
--- tc-arc.h    2001/09/24 14:43:41
*************** extern const char *arc_target_format;
*** 59,69 ****
  
  /* The ARC needs to parse reloc specifiers in .word.  */
  
! extern void arc_parse_cons_expression ();
  #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \
  arc_parse_cons_expression (EXP, NBYTES)
  
! extern void arc_cons_fix_new ();
  #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
  arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
  
--- 59,69 ----
  
  /* The ARC needs to parse reloc specifiers in .word.  */
  
! 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 PARAMS ((struct frag *, int, int, struct 
expressionS *));
  #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
  arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]