* config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
authorIan Lance Taylor <ian@airs.com>
Fri, 19 Nov 1993 21:37:50 +0000 (21:37 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 19 Nov 1993 21:37:50 +0000 (21:37 +0000)
(yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
already set.  Fixes .def var; .val external_var; .scl 3; .endef.
(adjust_stab_section): Make static.  Declare return type.  Remove
unused variables.

* config/tc-i386.h: Declare tc_coff_fix2rtype and
tc_coff_sizemachdep.

gas/ChangeLog
gas/config/obj-coffbfd.c

index 9d06141d0b482a1e6183be6fd0d84d75e848ccb6..3fa1aff17d81d12a171798b9ea4222a7e0e2c85c 100644 (file)
@@ -1,3 +1,14 @@
+Fri Nov 19 16:25:09 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.
+       (yank_symbols): Don't call S_SET_EXTERNAL if the storage class is
+       already set.  Fixes .def var; .val external_var; .scl 3; .endef.
+       (adjust_stab_section): Make static.  Declare return type.  Remove
+       unused variables.
+
+       * config/tc-i386.h: Declare tc_coff_fix2rtype and
+       tc_coff_sizemachdep.
+
 Fri Nov 19 04:33:59 1993  Ken Raeburn  (raeburn@cambridge.cygnus.com)
 
        * write.c (write_object_file): Disable obj_check_file_symbols
index d774a0752f30fcfb540ddfd19b823d9ada2d2764..1b2a033436349b9d2715a2305ce6736235bf01eb 100644 (file)
@@ -93,40 +93,33 @@ static int line_base;
 
 symbolS *c_section_symbol ();
 bfd *abfd;
-void EXFUN (bfd_as_write_hook, (struct internal_filehdr *,
-                               bfd * abfd));
 
-static void EXFUN (fixup_segment, (segment_info_type *segP,
+static void fixup_segment PARAMS ((segment_info_type *segP,
                                   segT this_segment_type));
 
 
-static void EXFUN (fixup_mdeps, (fragS *,
+static void fixup_mdeps PARAMS ((fragS *,
                                 object_headers *,
                                 segT));
 
 
-static void EXFUN (fill_section, (bfd * abfd,
+static void fill_section PARAMS ((bfd * abfd,
                                  object_headers *,
                                  unsigned long *));
 
 
-char *EXFUN (s_get_name, (symbolS * s));
-static symbolS *EXFUN (tag_find_or_make, (char *name));
-static symbolS *EXFUN (tag_find, (char *name));
+char *s_get_name PARAMS ((symbolS * s));
+static symbolS *tag_find_or_make PARAMS ((char *name));
+static symbolS *tag_find PARAMS ((char *name));
 
 
-static int
-  EXFUN (c_line_new, (
-                      symbolS * symbol,
-                      long paddr,
-                      unsigned short line_number,
-                      fragS * frag));
+static int c_line_new PARAMS ((symbolS * symbol, long paddr,
+                              unsigned short line_number,
+                              fragS * frag));
 
 
-static void EXFUN (w_symbols,
-                    (bfd * abfd,
-                     char *where,
-                     symbolS * symbol_rootP));
+static void w_symbols PARAMS ((bfd * abfd, char *where,
+                              symbolS * symbol_rootP));
 
 static char *stack_pop PARAMS ((stack * st));
 static char *stack_push PARAMS ((stack * st, char *element));
@@ -139,6 +132,7 @@ static stack *stack_init PARAMS ((unsigned long chunk_size,
 
 static void tag_init PARAMS ((void));
 static void tag_insert PARAMS ((char *name, symbolS * symbolP));
+static void adjust_stab_section PARAMS ((bfd *abfd, segT seg));
 
 static struct hash_control *tag_hash;
 
@@ -1430,13 +1424,13 @@ DEFUN_VOID (yank_symbols)
 
          resolve_symbol_value (symbolP);
 
-         if (!S_IS_DEFINED (symbolP) && !SF_GET_LOCAL (symbolP))
-           {
-             S_SET_EXTERNAL (symbolP);
-           }
-         else if (S_GET_STORAGE_CLASS (symbolP) == C_NULL)
+         if (S_GET_STORAGE_CLASS (symbolP) == C_NULL)
            {
-             if (S_GET_SEGMENT (symbolP) == SEG_E0)
+             if (!S_IS_DEFINED (symbolP) && !SF_GET_LOCAL (symbolP))
+               {
+                 S_SET_EXTERNAL (symbolP);
+               }
+             else if (S_GET_SEGMENT (symbolP) == SEG_E0)
                {
                  S_SET_STORAGE_CLASS (symbolP, C_LABEL);
                }
@@ -2680,13 +2674,13 @@ obj_coff_init_stab_section (seg)
 
 /* Fill in the counts in the first entry in a .stab section.  */
 
+static void
 adjust_stab_section(abfd, seg)
      bfd *abfd;
      segT seg;
 {
   segT stabstrseg = -1;
   char *secname, *name, *name2;
-  asection *stabsec, *stabstrsec;
   char *p = NULL;
   int i, strsz = 0, nsyms;
   fragS *frag = segment_info[seg].frchainP->frch_root;
This page took 0.032317 seconds and 4 git commands to generate.