prototypes gas/

Alan Modra amodra@bigpond.net.au
Thu Aug 9 07:41:00 GMT 2001


gas/ChangeLog
	* symbols.c: Add missing prototypes.
	* config/e-i386elf.c: Likewise.
	* config/e-i386coff.c: Likewise.
	* config/e-i386aout.c: Likewise.
	* config/obj-elf.c: Likewise.
	(obj_elf_change_section): Make static.
	(obj_elf_parse_section_letters): Likewise.
	(obj_elf_section_word): Likewise.
	(obj_elf_section_type): Likewise.
	* config/obj-coff.c: Add missing prototypes.
	(def_symbol_in_progress, stack): Move definition.

Applying to mainline.

-- 
Alan Modra

Index: gas/symbols.c
===================================================================
RCS file: /cvs/src/src/gas/symbols.c,v
retrieving revision 1.28
diff -u -p -r1.28 symbols.c
--- symbols.c	2001/08/01 01:44:25	1.28
+++ symbols.c	2001/08/09 13:55:20
@@ -61,6 +61,7 @@ symbolS abs_symbol;
 
 struct obstack notes;
 
+static char *save_symbol_name PARAMS ((const char *));
 static void fb_label_init PARAMS ((void));
 static long dollar_label_instance PARAMS ((long));
 static long fb_label_instance PARAMS ((long));
Index: gas/config/e-i386aout.c
===================================================================
RCS file: /cvs/src/src/gas/config/e-i386aout.c,v
retrieving revision 1.1
diff -u -p -r1.1 e-i386aout.c
--- e-i386aout.c	2000/01/26 22:48:31	1.1
+++ e-i386aout.c	2001/08/09 13:55:20
@@ -1,6 +1,8 @@
 #include "as.h"
 #include "emul.h"
 
+static const char *i386aout_bfd_name PARAMS ((void));
+
 static const char *
 i386aout_bfd_name ()
 {
Index: gas/config/e-i386coff.c
===================================================================
RCS file: /cvs/src/src/gas/config/e-i386coff.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 e-i386coff.c
--- e-i386coff.c	1999/05/03 07:28:41	1.1.1.1
+++ e-i386coff.c	2001/08/09 13:55:20
@@ -1,6 +1,8 @@
 #include "as.h"
 #include "emul.h"
 
+static const char *i386coff_bfd_name PARAMS ((void));
+
 static const char *
 i386coff_bfd_name ()
 {
Index: gas/config/e-i386elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/e-i386elf.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 e-i386elf.c
--- e-i386elf.c	1999/05/03 07:28:41	1.1.1.1
+++ e-i386elf.c	2001/08/09 13:55:20
@@ -1,6 +1,8 @@
 #include "as.h"
 #include "emul.h"
 
+static const char *i386elf_bfd_name PARAMS ((void));
+
 static const char *
 i386elf_bfd_name ()
 {
Index: gas/config/obj-coff.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-coff.c,v
retrieving revision 1.50
diff -u -p -r1.50 obj-coff.c
--- obj-coff.c	2001/07/11 09:26:27	1.50
+++ obj-coff.c	2001/08/09 13:55:23
@@ -38,7 +38,29 @@
 #define TC_COFF_SECTION_DEFAULT_ATTRIBUTES (SEC_LOAD | SEC_DATA)
 #endif
 
+/* This is used to hold the symbol built by a sequence of pseudo-ops
+   from .def and .endef.  */
+static symbolS *def_symbol_in_progress;
+
+typedef struct
+  {
+    unsigned long chunk_size;
+    unsigned long element_size;
+    unsigned long size;
+    char *data;
+    unsigned long pointer;
+  }
+stack;
+
+static stack *stack_init PARAMS ((unsigned long, unsigned long));
+static char *stack_push PARAMS ((stack *, char *));
+static char *stack_pop PARAMS ((stack *));
+static void tag_init PARAMS ((void));
+static void tag_insert PARAMS ((const char *, symbolS *));
+static symbolS *tag_find PARAMS ((char *));
+static symbolS *tag_find_or_make PARAMS ((char *));
 static void obj_coff_bss PARAMS ((int));
+static void obj_coff_weak PARAMS ((int));
 const char *s_get_name PARAMS ((symbolS * s));
 static void obj_coff_ln PARAMS ((int));
 static void obj_coff_def PARAMS ((int));
@@ -54,21 +76,8 @@ static void obj_coff_ident PARAMS ((int)
 #ifdef BFD_ASSEMBLER
 static void obj_coff_loc PARAMS((int));
 #endif
-
-/* This is used to hold the symbol built by a sequence of pseudo-ops
-   from .def and .endef.  */
-static symbolS *def_symbol_in_progress;
 
 /* stack stuff */
-typedef struct
-  {
-    unsigned long chunk_size;
-    unsigned long element_size;
-    unsigned long size;
-    char *data;
-    unsigned long pointer;
-  }
-stack;
 
 static stack *
 stack_init (chunk_size, element_size)
@@ -246,7 +255,11 @@ obj_coff_weak (ignore)
 
 #ifdef BFD_ASSEMBLER
 
+static segT fetch_coff_debug_section PARAMS ((void));
 static void SA_SET_SYM_TAGNDX PARAMS ((symbolS *, symbolS *));
+static int S_GET_DATA_TYPE PARAMS ((symbolS *));
+void c_symbol_merge PARAMS ((symbolS *, symbolS *));
+static void add_lineno PARAMS ((fragS *, addressT, int));
 
 #define GET_FILENAME_STRING(X) \
 ((char*) (&((X)->sy_symbol.ost_auxent->x_file.x_n.x_offset))[1])
Index: gas/config/obj-elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.c,v
retrieving revision 1.34
diff -u -p -r1.34 obj-elf.c
--- obj-elf.c	2001/08/08 13:11:58	1.34
+++ obj-elf.c	2001/08/09 13:55:26
@@ -73,6 +73,10 @@ static void obj_elf_ident PARAMS ((int))
 static void obj_elf_weak PARAMS ((int));
 static void obj_elf_local PARAMS ((int));
 static void obj_elf_visibility PARAMS ((int));
+static void obj_elf_change_section PARAMS ((char *, int, int, int, int));
+static int obj_elf_parse_section_letters PARAMS ((char *, size_t));
+static int obj_elf_section_word PARAMS ((char *, size_t));
+static int obj_elf_section_type PARAMS ((char *, size_t));
 static void obj_elf_symver PARAMS ((int));
 static void obj_elf_subsection PARAMS ((int));
 static void obj_elf_popsection PARAMS ((int));
@@ -611,7 +615,7 @@ static struct special_section const spec
   { NULL,	0,		0				}
 };
 
-void
+static void
 obj_elf_change_section (name, type, attr, entsize, push)
      char *name;
      int type, attr, entsize, push;
@@ -726,7 +730,7 @@ obj_elf_change_section (name, type, attr
 #endif
 }
 
-int
+static int
 obj_elf_parse_section_letters (str, len)
      char *str;
      size_t len;
@@ -774,7 +778,7 @@ obj_elf_parse_section_letters (str, len)
   return attr;
 }
 
-int
+static int
 obj_elf_section_word (str, len)
      char *str;
      size_t len;
@@ -798,7 +802,7 @@ obj_elf_section_word (str, len)
   return 0;
 }
 
-int
+static int
 obj_elf_section_type (str, len)
      char *str;
      size_t len;



More information about the Binutils mailing list