aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-04-27 08:26:50 +0930
committerAlan Modra <amodra@gmail.com>2023-04-28 15:19:59 +0930
commit4cb2aab8ab9e18d9dfdd8fa362715d70cc2d1109 (patch)
tree8378d19afd8d895209315c9c2fb2a75560f54719 /bfd/libbfd.c
parent6b258591644cf1db97113cc00f5373135d8755ba (diff)
downloadgdb-4cb2aab8ab9e18d9dfdd8fa362715d70cc2d1109.zip
gdb-4cb2aab8ab9e18d9dfdd8fa362715d70cc2d1109.tar.gz
gdb-4cb2aab8ab9e18d9dfdd8fa362715d70cc2d1109.tar.bz2
Remove deprecated bfd_read
20+ years is long enough to warn. * bfd-in.h (bfd_read, bfd_write): Don't define (_bfd_warn_deprecated): Don't declare. * bfd-in2.h: Regenerate. * libbfd.c (_bfd_warn_deprecated): Delete.
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r--bfd/libbfd.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index 7b03bde..d4f1478 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -1074,34 +1074,6 @@ bfd_generic_is_local_label_name (bfd *abfd, const char *name)
return name[0] == locals_prefix;
}
-/* Give a warning at runtime if someone compiles code which calls
- old routines. */
-
-void
-_bfd_warn_deprecated (const char *what,
- const char *file,
- int line,
- const char *func)
-{
- /* Poor man's tracking of functions we've already warned about. */
- static size_t mask = 0;
-
- if (~(size_t) func & ~mask)
- {
- fflush (stdout);
- /* Note: separate sentences in order to allow
- for translation into other languages. */
- if (func)
- /* xgettext:c-format */
- fprintf (stderr, _("Deprecated %s called at %s line %d in %s\n"),
- what, file, line, func);
- else
- fprintf (stderr, _("Deprecated %s called\n"), what);
- fflush (stderr);
- mask |= ~(size_t) func;
- }
-}
-
/* Helper function for reading uleb128 encoded data. */
bfd_vma