]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unused args from bfd_make_debug_symbol
authorAlan Modra <amodra@gmail.com>
Wed, 3 May 2023 06:23:29 +0000 (15:53 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 3 May 2023 06:23:29 +0000 (15:53 +0930)
The ptr and size args are unused.  Make the function look the same as
bfd_make_empty_symbol.

bfd/bfd-in2.h
bfd/coffgen.c
bfd/libbfd-in.h
bfd/libbfd.h
bfd/libcoff-in.h
bfd/libcoff.h
bfd/syms.c
bfd/targets.c
gas/config/obj-coff.c

index a5a9f1c3be0d7e581b116d019ffd17a5ba1bbdf9..7be18db20a8b3f1e3bd89c174d233ea6fa6d5066 100644 (file)
@@ -1280,8 +1280,8 @@ void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
 
 asymbol *_bfd_generic_make_empty_symbol (bfd *);
 
-#define bfd_make_debug_symbol(abfd,ptr,size) \
-       BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
+#define bfd_make_debug_symbol(abfd) \
+       BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd))
 
 int bfd_decode_symclass (asymbol *symbol);
 
@@ -7655,7 +7655,7 @@ typedef struct bfd_target
     while using BFD for everything else.  Currently used by the assembler
     when creating COFF files.  */
   asymbol *
-       (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
+       (*_bfd_make_debug_symbol) (bfd *);
 #define bfd_read_minisymbols(b, d, m, s) \
        BFD_SEND (b, _read_minisymbols, (b, d, m, s))
   long (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
index 05f2640abe2e82e7b80d41ac4cc3808c0a78c905..ac936def5665ff91ad77a6ff4227338e771e65fa 100644 (file)
@@ -1991,9 +1991,7 @@ coff_make_empty_symbol (bfd *abfd)
 /* Make a debugging symbol.  */
 
 asymbol *
-coff_bfd_make_debug_symbol (bfd *abfd,
-                           void * ptr ATTRIBUTE_UNUSED,
-                           unsigned long sz ATTRIBUTE_UNUSED)
+coff_bfd_make_debug_symbol (bfd *abfd)
 {
   size_t amt = sizeof (coff_symbol_type);
   coff_symbol_type *new_symbol = (coff_symbol_type *) bfd_alloc (abfd, amt);
index b3f5190e370c3691b2943ea3ec79fb15b316b2c9..07ef59a24e16d8a3195b1b7db6f771b44ba0e134 100644 (file)
@@ -450,7 +450,7 @@ extern bool _bfd_nosymbols_find_line
 extern bool _bfd_nosymbols_find_inliner_info
   (bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
 extern asymbol *_bfd_nosymbols_bfd_make_debug_symbol
-  (bfd *, void *, unsigned long) ATTRIBUTE_HIDDEN;
+  (bfd *) ATTRIBUTE_HIDDEN;
 extern long _bfd_nosymbols_read_minisymbols
   (bfd *, bool, void **, unsigned int *) ATTRIBUTE_HIDDEN;
 extern asymbol *_bfd_nosymbols_minisymbol_to_symbol
index f56f2b8130569587e0535d6c27228d6224048327..05508c986ad18f22d66229f996c7d373a1dfdbd3 100644 (file)
@@ -456,7 +456,7 @@ extern bool _bfd_nosymbols_find_line
 extern bool _bfd_nosymbols_find_inliner_info
   (bfd *, const char **, const char **, unsigned int *) ATTRIBUTE_HIDDEN;
 extern asymbol *_bfd_nosymbols_bfd_make_debug_symbol
-  (bfd *, void *, unsigned long) ATTRIBUTE_HIDDEN;
+  (bfd *) ATTRIBUTE_HIDDEN;
 extern long _bfd_nosymbols_read_minisymbols
   (bfd *, bool, void **, unsigned int *) ATTRIBUTE_HIDDEN;
 extern asymbol *_bfd_nosymbols_minisymbol_to_symbol
index a0d286d37f4a960ffc5c63dae13156df0ef9e9a7..d0839c76e9615d6da311d5e68fd353fc55e2b82d 100644 (file)
@@ -360,7 +360,7 @@ extern void coff_get_symbol_info
 extern bool _bfd_coff_is_local_label_name
   (bfd *, const char *);
 extern asymbol *coff_bfd_make_debug_symbol
-  (bfd *, void *, unsigned long);
+  (bfd *);
 extern bool coff_find_nearest_line
   (bfd *, asymbol **, asection *, bfd_vma,
    const char **, const char **, unsigned int *, unsigned int *);
index 12bd75856c33038249a9277d4f1d58b29ad13328..235d5c3c8436f2cb9d616bfda292f216c9c69ed3 100644 (file)
@@ -364,7 +364,7 @@ extern void coff_get_symbol_info
 extern bool _bfd_coff_is_local_label_name
   (bfd *, const char *);
 extern asymbol *coff_bfd_make_debug_symbol
-  (bfd *, void *, unsigned long);
+  (bfd *);
 extern bool coff_find_nearest_line
   (bfd *, asymbol **, asection *, bfd_vma,
    const char **, const char **, unsigned int *, unsigned int *);
index 57ac52f8faafe31cbf6447e94f7f418286bc23aa..6979096fbc645109754efe9564d21a1c54ad0c54 100644 (file)
@@ -569,11 +569,10 @@ FUNCTION
 
 DESCRIPTION
        Create a new <<asymbol>> structure for the BFD @var{abfd},
-       to be used as a debugging symbol.  Further details of its use have
-       yet to be worked out.
+       to be used as a debugging symbol.
 
-.#define bfd_make_debug_symbol(abfd,ptr,size) \
-.      BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
+.#define bfd_make_debug_symbol(abfd) \
+.      BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd))
 .
 */
 
@@ -1577,9 +1576,7 @@ _bfd_nosymbols_find_inliner_info
 }
 
 asymbol *
-_bfd_nosymbols_bfd_make_debug_symbol (bfd *abfd,
-                                     void *ptr ATTRIBUTE_UNUSED,
-                                     unsigned long sz ATTRIBUTE_UNUSED)
+_bfd_nosymbols_bfd_make_debug_symbol (bfd *abfd)
 {
   return (asymbol *) _bfd_ptr_bfd_null_error (abfd);
 }
index 021c808f62d3ba0b9baa485e274eff3844a15d8b..3dbcd088966ed0ad9224bfefd590156fc2c8df85 100644 (file)
@@ -420,7 +420,7 @@ BFD_JUMP_TABLE macros.
 .    while using BFD for everything else.  Currently used by the assembler
 .    when creating COFF files.  *}
 .  asymbol *
-.      (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
+.      (*_bfd_make_debug_symbol) (bfd *);
 .#define bfd_read_minisymbols(b, d, m, s) \
 .      BFD_SEND (b, _read_minisymbols, (b, d, m, s))
 .  long        (*_read_minisymbols) (bfd *, bool, void **, unsigned int *);
index 465a990ec88c6c56f97d258d7df55fd66a1258c0..6216b1f63eee69c3fa65de23692f8d04d6dcb2d9 100644 (file)
@@ -238,7 +238,7 @@ fetch_coff_debug_section (void)
     {
       const asymbol *s;
 
-      s = bfd_make_debug_symbol (stdoutput, NULL, 0);
+      s = bfd_make_debug_symbol (stdoutput);
       gas_assert (s != 0);
       debug_section = s->section;
     }