This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] gas/config/tc-*: Remove duplicate prototypes.


Hi,

Attached is a patch to remove duplicate prototypes.

Somehow tc-mcore.h and tc-tic4x.c contains prototypes that are already
in tc.h.

Built each touched port with no new warnings.  OK to apply?

Kazu Hirata

2003-11-19  Kazu Hirata  <kazu@cs.umass.edu>

	* config/tc-mcore.h: Remove prototypes already in tc.h.
	* config/tc-tic4x.c: Likewise.

Index: tc-mcore.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mcore.h,v
retrieving revision 1.14
diff -u -r1.14 tc-mcore.h
--- tc-mcore.h	25 Jul 2003 14:35:54 -0000	1.14
+++ tc-mcore.h	20 Nov 2003 01:56:15 -0000
@@ -105,22 +105,7 @@
 
 #include "write.h"        /* For definition of fixS */
 
-extern void      md_begin            PARAMS ((void));
-extern void      md_assemble         PARAMS ((char *));
-extern symbolS * md_undefined_symbol PARAMS ((char *));
 extern void      md_mcore_end        PARAMS ((void));
-extern char *    md_atof             PARAMS ((int, char *, int *));
-extern int       md_parse_option     PARAMS ((int, char *));
-extern void      md_show_usage       PARAMS ((FILE *));
-extern void      md_create_short_jump
-  PARAMS ((char *, addressT, addressT, fragS *, symbolS *));
-extern void      md_create_long_jump
-  PARAMS ((char *, addressT, addressT, fragS *, symbolS *));
-extern void      md_convert_frag               PARAMS ((bfd *, segT, fragS *));
-extern void      md_operand                    PARAMS ((expressionS *));
-extern int       md_estimate_size_before_relax PARAMS ((fragS *, segT));
-extern void      md_number_to_chars            PARAMS ((char *, valueT, int));
-extern valueT    md_section_align              PARAMS ((segT, valueT));
 extern long      md_pcrel_from_section         PARAMS ((fixS *, segT));
 extern arelent * tc_gen_reloc                  PARAMS ((asection *, fixS *));
 
Index: tc-tic4x.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-tic4x.c,v
retrieving revision 1.10
diff -u -r1.10 tc-tic4x.c
--- tc-tic4x.c	14 Jul 2003 10:06:06 -0000	1.10
+++ tc-tic4x.c	20 Nov 2003 01:56:16 -0000
@@ -194,8 +194,6 @@
   PARAMS ((char *, unsigned long, char *));
 static int tic4x_inst_add
   PARAMS ((tic4x_inst_t *));
-void md_begin
-  PARAMS ((void));
 void tic4x_end
   PARAMS ((void));
 static int tic4x_indirect_parse
@@ -210,38 +208,12 @@
   PARAMS ((tic4x_insn_t *));
 static int tic4x_operands_parse
   PARAMS ((char *, tic4x_operand_t *, int ));
-void md_assemble
-  PARAMS ((char *));
 void tic4x_cleanup
   PARAMS ((void));
-char *md_atof
-  PARAMS ((int, char *, int *));
-void md_apply_fix3
-  PARAMS ((fixS *, valueT *, segT ));
-void md_convert_frag
-  PARAMS ((bfd *, segT, fragS *));
-void md_create_short_jump
-  PARAMS ((char *, addressT, addressT, fragS *, symbolS *));
-void md_create_long_jump
-  PARAMS ((char *, addressT, addressT, fragS *, symbolS *));
-int md_estimate_size_before_relax
-  PARAMS ((register fragS *, segT));
-int md_parse_option
-  PARAMS ((int, char *));
-void md_show_usage
-  PARAMS ((FILE *));
 int tic4x_unrecognized_line
   PARAMS ((int));
-symbolS *md_undefined_symbol
-  PARAMS ((char *));
-void md_operand
-  PARAMS ((expressionS *));
-valueT md_section_align
-  PARAMS ((segT, valueT));
 static int tic4x_pc_offset
   PARAMS ((unsigned int));
-long md_pcrel_from
-  PARAMS ((fixS *));
 int tic4x_do_align
   PARAMS ((int, const char *, int, int));
 void tic4x_start_line


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]