[PATCH v2 0/7] Enable -Wmissing-declarations diagnostic

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH v2 0/7] Enable -Wmissing-declarations diagnostic

Simon Marchi-5
This is v2 of:

  https://sourceware.org/ml/gdb-patches/2019-11/msg00805.html

Although a few patches of the original series were merged, since they
were valid fixes in any case.

I have re-generated the configure script for gdbserver, which I had
forgotten in v1, and it of course unearthed some more issues.

I have build-tested the series with gcc 7.4.0 and clang 9.

Simon Marchi (7):
  gdb: add back declarations for _initialize functions
  gdb: add declaration to Python init function
  gdbserver: include hostio.h in hostio-errno.c
  gdbserver: include gdbsupport/common-inferior.h in inferiors.c
  gdbserver: make some functions static in linux-x86-low.c
  gdbserver: set IP_AGENT_EXPORT_FUNC to static when not building IPA,
    add declarations
  Enable -Wmissing-declarations diagnostic

 gdb/aarch64-fbsd-nat.c                        |  3 ++-
 gdb/aarch64-fbsd-tdep.c                       |  3 ++-
 gdb/aarch64-linux-nat.c                       |  3 ++-
 gdb/aarch64-linux-tdep.c                      |  3 ++-
 gdb/aarch64-newlib-tdep.c                     |  3 ++-
 gdb/aarch64-tdep.c                            |  3 ++-
 gdb/ada-exp.y                                 |  3 ++-
 gdb/ada-lang.c                                |  3 ++-
 gdb/ada-tasks.c                               |  3 ++-
 gdb/agent.c                                   |  3 ++-
 gdb/aix-thread.c                              |  3 ++-
 gdb/alpha-bsd-nat.c                           |  3 ++-
 gdb/alpha-linux-nat.c                         |  3 ++-
 gdb/alpha-linux-tdep.c                        |  3 ++-
 gdb/alpha-nbsd-tdep.c                         |  3 ++-
 gdb/alpha-obsd-tdep.c                         |  3 ++-
 gdb/alpha-tdep.c                              |  3 ++-
 gdb/amd64-darwin-tdep.c                       |  3 ++-
 gdb/amd64-dicos-tdep.c                        |  3 ++-
 gdb/amd64-fbsd-nat.c                          |  3 ++-
 gdb/amd64-fbsd-tdep.c                         |  3 ++-
 gdb/amd64-linux-nat.c                         |  3 ++-
 gdb/amd64-linux-tdep.c                        |  3 ++-
 gdb/amd64-nbsd-nat.c                          |  3 ++-
 gdb/amd64-nbsd-tdep.c                         |  3 ++-
 gdb/amd64-obsd-nat.c                          |  3 ++-
 gdb/amd64-obsd-tdep.c                         |  3 ++-
 gdb/amd64-sol2-tdep.c                         |  3 ++-
 gdb/amd64-tdep.c                              |  3 ++-
 gdb/amd64-windows-nat.c                       |  3 ++-
 gdb/amd64-windows-tdep.c                      |  3 ++-
 gdb/annotate.c                                |  3 ++-
 gdb/arc-newlib-tdep.c                         |  3 ++-
 gdb/arc-tdep.c                                |  3 ++-
 gdb/arch-utils.c                              |  3 ++-
 gdb/arm-fbsd-nat.c                            |  3 ++-
 gdb/arm-fbsd-tdep.c                           |  3 ++-
 gdb/arm-linux-nat.c                           |  3 ++-
 gdb/arm-linux-tdep.c                          |  3 ++-
 gdb/arm-nbsd-nat.c                            |  3 ++-
 gdb/arm-nbsd-tdep.c                           |  3 ++-
 gdb/arm-obsd-tdep.c                           |  3 ++-
 gdb/arm-pikeos-tdep.c                         |  3 ++-
 gdb/arm-symbian-tdep.c                        |  3 ++-
 gdb/arm-tdep.c                                |  3 ++-
 gdb/arm-wince-tdep.c                          |  3 ++-
 gdb/auto-load.c                               |  3 ++-
 gdb/auxv.c                                    |  3 ++-
 gdb/avr-tdep.c                                |  3 ++-
 gdb/ax-gdb.c                                  |  3 ++-
 gdb/bfin-linux-tdep.c                         |  3 ++-
 gdb/bfin-tdep.c                               |  3 ++-
 gdb/break-catch-sig.c                         |  3 ++-
 gdb/break-catch-syscall.c                     |  3 ++-
 gdb/break-catch-throw.c                       |  3 ++-
 gdb/breakpoint.c                              |  3 ++-
 gdb/bsd-uthread.c                             |  3 ++-
 gdb/btrace.c                                  |  3 ++-
 gdb/charset.c                                 |  3 ++-
 gdb/cli/cli-cmds.c                            |  3 ++-
 gdb/cli/cli-dump.c                            |  3 ++-
 gdb/cli/cli-interp.c                          |  3 ++-
 gdb/cli/cli-logging.c                         |  3 ++-
 gdb/cli/cli-script.c                          |  3 ++-
 gdb/cli/cli-style.c                           |  1 +
 gdb/coff-pe-read.c                            |  3 ++-
 gdb/coffread.c                                |  3 ++-
 gdb/compile/compile-cplus-types.c             |  1 +
 gdb/compile/compile.c                         |  3 ++-
 gdb/complaints.c                              |  3 ++-
 gdb/completer.c                               |  3 ++-
 gdb/configure                                 |  3 ++-
 gdb/copying.c                                 |  3 ++-
 gdb/corefile.c                                |  3 ++-
 gdb/corelow.c                                 |  3 ++-
 gdb/cp-abi.c                                  |  3 ++-
 gdb/cp-namespace.c                            |  3 ++-
 gdb/cp-support.c                              |  3 ++-
 gdb/cp-valprint.c                             |  3 ++-
 gdb/cris-linux-tdep.c                         |  3 ++-
 gdb/cris-tdep.c                               |  3 ++-
 gdb/csky-linux-tdep.c                         |  3 ++-
 gdb/csky-tdep.c                               |  3 ++-
 gdb/ctfread.c                                 |  3 ++-
 gdb/d-lang.c                                  |  3 ++-
 gdb/darwin-nat-info.c                         |  3 ++-
 gdb/darwin-nat.c                              |  1 +
 gdb/dbxread.c                                 |  3 ++-
 gdb/dcache.c                                  |  3 ++-
 gdb/disasm-selftests.c                        |  3 ++-
 gdb/disasm.c                                  |  3 ++-
 gdb/dtrace-probe.c                            |  3 ++-
 gdb/dummy-frame.c                             |  3 ++-
 gdb/dwarf-index-cache.c                       |  1 +
 gdb/dwarf-index-write.c                       |  1 +
 gdb/dwarf2-frame-tailcall.c                   |  3 ++-
 gdb/dwarf2-frame.c                            |  3 ++-
 gdb/dwarf2expr.c                              |  3 ++-
 gdb/dwarf2loc.c                               |  3 ++-
 gdb/dwarf2read.c                              |  3 ++-
 gdb/elfread.c                                 |  3 ++-
 gdb/exec.c                                    |  3 ++-
 gdb/extension.c                               |  3 ++-
 gdb/f-lang.c                                  |  3 ++-
 gdb/f-valprint.c                              |  3 ++-
 gdb/fbsd-nat.c                                |  3 ++-
 gdb/fbsd-tdep.c                               |  3 ++-
 gdb/filesystem.c                              |  3 ++-
 gdb/findcmd.c                                 |  3 ++-
 gdb/findvar.c                                 |  3 ++-
 gdb/fork-child.c                              |  3 ++-
 gdb/frame-base.c                              |  3 ++-
 gdb/frame-unwind.c                            |  3 ++-
 gdb/frame.c                                   |  3 ++-
 gdb/frv-linux-tdep.c                          |  3 ++-
 gdb/frv-tdep.c                                |  3 ++-
 gdb/ft32-tdep.c                               |  3 ++-
 gdb/gcore.c                                   |  3 ++-
 gdb/gdb-demangle.c                            |  3 ++-
 gdb/gdb_bfd.c                                 |  3 ++-
 gdb/gdbarch-selftests.c                       |  3 ++-
 gdb/gdbarch.c                                 |  3 ++-
 gdb/gdbserver/configure                       |  3 ++-
 gdb/gdbserver/hostio-errno.c                  |  3 +++
 gdb/gdbserver/inferiors.c                     |  1 +
 gdb/gdbserver/linux-x86-low.c                 | 26 +++++++++----------
 gdb/gdbserver/tracepoint.c                    | 20 ++++++++++++++
 gdb/gdbserver/tracepoint.h                    |  2 +-
 gdb/gdbtypes.c                                |  3 ++-
 gdb/gnu-nat.c                                 |  3 ++-
 gdb/gnu-v2-abi.c                              |  3 ++-
 gdb/gnu-v3-abi.c                              |  3 ++-
 gdb/go-lang.c                                 |  3 ++-
 gdb/go32-nat.c                                |  3 ++-
 gdb/guile/guile.c                             |  3 ++-
 gdb/h8300-tdep.c                              |  3 ++-
 gdb/hppa-linux-nat.c                          |  3 ++-
 gdb/hppa-linux-tdep.c                         |  3 ++-
 gdb/hppa-nbsd-nat.c                           |  3 ++-
 gdb/hppa-nbsd-tdep.c                          |  3 ++-
 gdb/hppa-obsd-nat.c                           |  3 ++-
 gdb/hppa-obsd-tdep.c                          |  3 ++-
 gdb/hppa-tdep.c                               |  3 ++-
 gdb/i386-bsd-nat.c                            |  3 ++-
 gdb/i386-cygwin-tdep.c                        |  3 ++-
 gdb/i386-darwin-nat.c                         |  3 ++-
 gdb/i386-darwin-tdep.c                        |  3 ++-
 gdb/i386-dicos-tdep.c                         |  3 ++-
 gdb/i386-fbsd-nat.c                           |  3 ++-
 gdb/i386-fbsd-tdep.c                          |  3 ++-
 gdb/i386-gnu-nat.c                            |  3 ++-
 gdb/i386-gnu-tdep.c                           |  3 ++-
 gdb/i386-go32-tdep.c                          |  1 +
 gdb/i386-linux-nat.c                          |  3 ++-
 gdb/i386-linux-tdep.c                         |  3 ++-
 gdb/i386-nbsd-nat.c                           |  3 ++-
 gdb/i386-nbsd-tdep.c                          |  3 ++-
 gdb/i386-nto-tdep.c                           |  3 ++-
 gdb/i386-obsd-nat.c                           |  3 ++-
 gdb/i386-obsd-tdep.c                          |  3 ++-
 gdb/i386-sol2-nat.c                           |  3 ++-
 gdb/i386-sol2-tdep.c                          |  3 ++-
 gdb/i386-tdep.c                               |  3 ++-
 gdb/i386-windows-nat.c                        |  3 ++-
 gdb/ia64-libunwind-tdep.c                     |  3 ++-
 gdb/ia64-linux-nat.c                          |  3 ++-
 gdb/ia64-linux-tdep.c                         |  3 ++-
 gdb/ia64-tdep.c                               |  3 ++-
 gdb/ia64-vms-tdep.c                           |  3 ++-
 gdb/infcall.c                                 |  3 ++-
 gdb/infcmd.c                                  |  3 ++-
 gdb/inflow.c                                  |  3 ++-
 gdb/infrun.c                                  |  3 ++-
 gdb/interps.c                                 |  3 ++-
 gdb/iq2000-tdep.c                             |  3 ++-
 gdb/jit.c                                     |  3 ++-
 gdb/language.c                                |  3 ++-
 gdb/linux-fork.c                              |  3 ++-
 gdb/linux-nat.c                               |  3 ++-
 gdb/linux-tdep.c                              |  3 ++-
 gdb/linux-thread-db.c                         |  3 ++-
 gdb/lm32-tdep.c                               |  3 ++-
 gdb/m2-lang.c                                 |  3 ++-
 gdb/m32c-tdep.c                               |  3 ++-
 gdb/m32r-linux-nat.c                          |  3 ++-
 gdb/m32r-linux-tdep.c                         |  3 ++-
 gdb/m32r-tdep.c                               |  3 ++-
 gdb/m68hc11-tdep.c                            |  3 ++-
 gdb/m68k-bsd-nat.c                            |  3 ++-
 gdb/m68k-bsd-tdep.c                           |  3 ++-
 gdb/m68k-linux-nat.c                          |  3 ++-
 gdb/m68k-linux-tdep.c                         |  3 ++-
 gdb/m68k-tdep.c                               |  3 ++-
 gdb/machoread.c                               |  3 ++-
 gdb/macrocmd.c                                |  3 ++-
 gdb/macroscope.c                              |  3 ++-
 gdb/maint-test-options.c                      |  1 +
 gdb/maint-test-settings.c                     |  3 ++-
 gdb/maint.c                                   |  3 ++-
 gdb/mdebugread.c                              |  3 ++-
 gdb/memattr.c                                 |  3 ++-
 gdb/mep-tdep.c                                |  3 ++-
 gdb/mi/mi-cmd-env.c                           |  3 ++-
 gdb/mi/mi-cmds.c                              |  3 ++-
 gdb/mi/mi-interp.c                            |  3 ++-
 gdb/mi/mi-main.c                              |  3 ++-
 gdb/microblaze-linux-tdep.c                   |  3 ++-
 gdb/microblaze-tdep.c                         |  3 ++-
 gdb/mips-fbsd-nat.c                           |  3 ++-
 gdb/mips-fbsd-tdep.c                          |  3 ++-
 gdb/mips-linux-nat.c                          |  3 ++-
 gdb/mips-linux-tdep.c                         |  3 ++-
 gdb/mips-nbsd-nat.c                           |  3 ++-
 gdb/mips-nbsd-tdep.c                          |  3 ++-
 gdb/mips-sde-tdep.c                           |  3 ++-
 gdb/mips-tdep.c                               |  3 ++-
 gdb/mips64-obsd-nat.c                         |  3 ++-
 gdb/mips64-obsd-tdep.c                        |  3 ++-
 gdb/mipsread.c                                |  3 ++-
 gdb/mn10300-linux-tdep.c                      |  3 ++-
 gdb/mn10300-tdep.c                            |  3 ++-
 gdb/moxie-tdep.c                              |  3 ++-
 gdb/msp430-tdep.c                             |  3 ++-
 gdb/nds32-tdep.c                              |  3 ++-
 gdb/nios2-linux-tdep.c                        |  3 ++-
 gdb/nios2-tdep.c                              |  3 ++-
 gdb/nto-procfs.c                              |  3 ++-
 gdb/objc-lang.c                               |  3 ++-
 gdb/observable.c                              |  3 ++-
 gdb/opencl-lang.c                             |  3 ++-
 gdb/or1k-linux-tdep.c                         |  3 ++-
 gdb/or1k-tdep.c                               |  3 ++-
 gdb/osabi.c                                   |  3 ++-
 gdb/osdata.c                                  |  3 ++-
 gdb/p-valprint.c                              |  3 ++-
 gdb/parse.c                                   |  3 ++-
 gdb/ppc-fbsd-nat.c                            |  3 ++-
 gdb/ppc-fbsd-tdep.c                           |  3 ++-
 gdb/ppc-linux-nat.c                           |  3 ++-
 gdb/ppc-linux-tdep.c                          |  3 ++-
 gdb/ppc-nbsd-nat.c                            |  3 ++-
 gdb/ppc-nbsd-tdep.c                           |  3 ++-
 gdb/ppc-obsd-nat.c                            |  3 ++-
 gdb/ppc-obsd-tdep.c                           |  3 ++-
 gdb/printcmd.c                                |  3 ++-
 gdb/probe.c                                   |  3 ++-
 gdb/proc-api.c                                |  3 ++-
 gdb/proc-events.c                             |  3 ++-
 gdb/proc-service.c                            |  3 ++-
 gdb/procfs.c                                  |  3 ++-
 gdb/producer.c                                |  1 +
 gdb/psymtab.c                                 |  3 ++-
 gdb/python/python.c                           |  4 ++-
 gdb/ravenscar-thread.c                        |  1 +
 gdb/record-btrace.c                           |  3 ++-
 gdb/record-full.c                             |  3 ++-
 gdb/record.c                                  |  3 ++-
 gdb/regcache-dump.c                           |  3 ++-
 gdb/regcache.c                                |  3 ++-
 gdb/reggroups.c                               |  3 ++-
 gdb/remote-notif.c                            |  3 ++-
 gdb/remote-sim.c                              |  3 ++-
 gdb/remote.c                                  |  3 ++-
 gdb/reverse.c                                 |  3 ++-
 gdb/riscv-fbsd-nat.c                          |  3 ++-
 gdb/riscv-fbsd-tdep.c                         |  3 ++-
 gdb/riscv-linux-nat.c                         |  3 ++-
 gdb/riscv-linux-tdep.c                        |  3 ++-
 gdb/riscv-tdep.c                              |  3 ++-
 gdb/rl78-tdep.c                               |  3 ++-
 gdb/rs6000-aix-tdep.c                         |  3 ++-
 gdb/rs6000-lynx178-tdep.c                     |  3 ++-
 gdb/rs6000-nat.c                              |  3 ++-
 gdb/rs6000-tdep.c                             |  3 ++-
 gdb/run-on-main-thread.c                      |  1 +
 gdb/rust-exp.y                                |  3 ++-
 gdb/rx-tdep.c                                 |  3 ++-
 gdb/s12z-tdep.c                               |  3 ++-
 gdb/s390-linux-nat.c                          |  3 ++-
 gdb/s390-linux-tdep.c                         |  3 ++-
 gdb/s390-tdep.c                               |  3 ++-
 gdb/score-tdep.c                              |  3 ++-
 gdb/ser-go32.c                                |  3 ++-
 gdb/ser-mingw.c                               |  3 ++-
 gdb/ser-pipe.c                                |  3 ++-
 gdb/ser-tcp.c                                 |  3 ++-
 gdb/ser-uds.c                                 |  3 ++-
 gdb/ser-unix.c                                |  3 ++-
 gdb/serial.c                                  |  3 ++-
 gdb/sh-linux-tdep.c                           |  3 ++-
 gdb/sh-nbsd-nat.c                             |  3 ++-
 gdb/sh-nbsd-tdep.c                            |  3 ++-
 gdb/sh-tdep.c                                 |  3 ++-
 gdb/skip.c                                    |  3 ++-
 gdb/sol-thread.c                              |  3 ++-
 gdb/solib-aix.c                               |  3 ++-
 gdb/solib-darwin.c                            |  3 ++-
 gdb/solib-dsbt.c                              |  3 ++-
 gdb/solib-frv.c                               |  3 ++-
 gdb/solib-svr4.c                              |  3 ++-
 gdb/solib-target.c                            |  3 ++-
 gdb/solib.c                                   |  3 ++-
 gdb/source-cache.c                            |  1 +
 gdb/source.c                                  |  3 ++-
 gdb/sparc-linux-nat.c                         |  3 ++-
 gdb/sparc-linux-tdep.c                        |  3 ++-
 gdb/sparc-nat.c                               |  3 ++-
 gdb/sparc-nbsd-nat.c                          |  3 ++-
 gdb/sparc-nbsd-tdep.c                         |  3 ++-
 gdb/sparc-obsd-tdep.c                         |  3 ++-
 gdb/sparc-sol2-tdep.c                         |  3 ++-
 gdb/sparc-tdep.c                              |  3 ++-
 gdb/sparc64-fbsd-nat.c                        |  3 ++-
 gdb/sparc64-fbsd-tdep.c                       |  3 ++-
 gdb/sparc64-linux-nat.c                       |  3 ++-
 gdb/sparc64-linux-tdep.c                      |  3 ++-
 gdb/sparc64-nat.c                             |  3 ++-
 gdb/sparc64-nbsd-nat.c                        |  3 ++-
 gdb/sparc64-nbsd-tdep.c                       |  3 ++-
 gdb/sparc64-obsd-nat.c                        |  3 ++-
 gdb/sparc64-obsd-tdep.c                       |  3 ++-
 gdb/sparc64-sol2-tdep.c                       |  3 ++-
 gdb/sparc64-tdep.c                            |  3 ++-
 gdb/stabsread.c                               |  3 ++-
 gdb/stack.c                                   |  3 ++-
 gdb/stap-probe.c                              |  3 ++-
 gdb/std-regs.c                                |  3 ++-
 gdb/symfile-debug.c                           |  3 ++-
 gdb/symfile-mem.c                             |  3 ++-
 gdb/symfile.c                                 |  3 ++-
 gdb/symmisc.c                                 |  3 ++-
 gdb/symtab.c                                  |  3 ++-
 gdb/target-dcache.c                           |  3 ++-
 gdb/target-descriptions.c                     |  3 ++-
 gdb/thread.c                                  |  3 ++-
 gdb/tic6x-linux-tdep.c                        |  3 ++-
 gdb/tic6x-tdep.c                              |  3 ++-
 gdb/tilegx-linux-nat.c                        |  3 ++-
 gdb/tilegx-linux-tdep.c                       |  3 ++-
 gdb/tilegx-tdep.c                             |  3 ++-
 gdb/tracectf.c                                |  3 ++-
 gdb/tracefile-tfile.c                         |  3 ++-
 gdb/tracefile.c                               |  3 ++-
 gdb/tracepoint.c                              |  3 ++-
 gdb/tui/tui-hooks.c                           |  3 ++-
 gdb/tui/tui-interp.c                          |  3 ++-
 gdb/tui/tui-layout.c                          |  3 ++-
 gdb/tui/tui-regs.c                            |  3 ++-
 gdb/tui/tui-stack.c                           |  3 ++-
 gdb/tui/tui-win.c                             |  3 ++-
 gdb/tui/tui.c                                 |  3 ++-
 gdb/typeprint.c                               |  3 ++-
 gdb/ui-style.c                                |  1 +
 gdb/unittests/array-view-selftests.c          |  1 +
 gdb/unittests/child-path-selftests.c          |  1 +
 gdb/unittests/cli-utils-selftests.c           |  1 +
 gdb/unittests/common-utils-selftests.c        |  1 +
 gdb/unittests/copy_bitwise-selftests.c        |  1 +
 gdb/unittests/environ-selftests.c             |  1 +
 gdb/unittests/filtered_iterator-selftests.c   |  1 +
 gdb/unittests/format_pieces-selftests.c       |  1 +
 gdb/unittests/function-view-selftests.c       |  1 +
 gdb/unittests/help-doc-selftests.c            |  1 +
 gdb/unittests/lookup_name_info-selftests.c    |  1 +
 gdb/unittests/main-thread-selftests.c         |  1 +
 gdb/unittests/memory-map-selftests.c          |  1 +
 gdb/unittests/memrange-selftests.c            |  1 +
 gdb/unittests/mkdir-recursive-selftests.c     |  1 +
 gdb/unittests/observable-selftests.c          |  1 +
 gdb/unittests/offset-type-selftests.c         |  1 +
 gdb/unittests/optional-selftests.c            |  1 +
 .../parse-connection-spec-selftests.c         |  1 +
 gdb/unittests/rsp-low-selftests.c             |  1 +
 gdb/unittests/scoped_fd-selftests.c           |  1 +
 gdb/unittests/scoped_mmap-selftests.c         |  1 +
 gdb/unittests/scoped_restore-selftests.c      |  1 +
 gdb/unittests/string_view-selftests.c         |  1 +
 gdb/unittests/style-selftests.c               |  1 +
 gdb/unittests/tracepoint-selftests.c          |  1 +
 gdb/unittests/tui-selftests.c                 |  1 +
 gdb/unittests/unpack-selftests.c              |  1 +
 gdb/unittests/utils-selftests.c               |  1 +
 gdb/unittests/vec-utils-selftests.c           |  1 +
 gdb/unittests/xml-utils-selftests.c           |  1 +
 gdb/user-regs.c                               |  3 ++-
 gdb/utils.c                                   |  3 ++-
 gdb/v850-tdep.c                               |  3 ++-
 gdb/valops.c                                  |  3 ++-
 gdb/valprint.c                                |  3 ++-
 gdb/value.c                                   |  3 ++-
 gdb/varobj.c                                  |  3 ++-
 gdb/vax-bsd-nat.c                             |  3 ++-
 gdb/vax-nbsd-tdep.c                           |  3 ++-
 gdb/vax-tdep.c                                |  3 ++-
 gdb/warning.m4                                |  3 ++-
 gdb/windows-nat.c                             |  9 ++++---
 gdb/windows-tdep.c                            |  3 ++-
 gdb/x86-bsd-nat.c                             |  1 +
 gdb/x86-linux-nat.c                           |  1 +
 gdb/xcoffread.c                               |  3 ++-
 gdb/xml-support.c                             |  4 ++-
 gdb/xstormy16-tdep.c                          |  3 ++-
 gdb/xtensa-linux-nat.c                        |  3 ++-
 gdb/xtensa-linux-tdep.c                       |  3 ++-
 gdb/xtensa-tdep.c                             |  3 ++-
 405 files changed, 799 insertions(+), 371 deletions(-)

--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 1/7] gdb: add back declarations for _initialize functions

Simon Marchi-5
I'd like to enable the -Wmissing-declarations warning.  However, it
warns for every _initialize function, for example:

      CXX    dcache.o
    /home/smarchi/src/binutils-gdb/gdb/dcache.c: In function ‘void _initialize_dcache()’:
    /home/smarchi/src/binutils-gdb/gdb/dcache.c:688:1: error: no previous declaration for ‘void _initialize_dcache()’ [-Werror=missing-declarations]
     _initialize_dcache (void)
     ^~~~~~~~~~~~~~~~~~

The only practical way forward I found is to add back the declarations,
which were removed by this commit:

    commit 481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9
    Author: John Baldwin <[hidden email]>
    Date:   Sat Sep 9 11:02:37 2017 -0700

        Remove unnecessary function prototypes.

I don't think it's a big problem to have the declarations for these
functions, but if anybody has a better solution for this, I'll be happy
to use it.

gdb/ChangeLog:

        * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
        * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
        * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
        * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
        * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
        * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
        * ada-exp.y (_initialize_ada_exp): Add declaration.
        * ada-lang.c (_initialize_ada_language): Add declaration.
        * ada-tasks.c (_initialize_tasks): Add declaration.
        * agent.c (_initialize_agent): Add declaration.
        * aix-thread.c (_initialize_aix_thread): Add declaration.
        * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
        * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
        * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
        * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
        * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
        * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
        * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
        * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
        * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
        * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
        * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
        * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
        * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
        * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
        * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
        * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
        * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
        * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
        * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
        * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
        * annotate.c (_initialize_annotate): Add declaration.
        * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
        * arc-tdep.c (_initialize_arc_tdep): Add declaration.
        * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
        * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
        * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
        * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
        * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
        * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
        * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
        * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
        * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
        * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
        * arm-tdep.c (_initialize_arm_tdep): Add declaration.
        * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
        * auto-load.c (_initialize_auto_load): Add declaration.
        * auxv.c (_initialize_auxv): Add declaration.
        * avr-tdep.c (_initialize_avr_tdep): Add declaration.
        * ax-gdb.c (_initialize_ax_gdb): Add declaration.
        * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
        * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
        * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
        * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
        * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
        * breakpoint.c (_initialize_breakpoint): Add declaration.
        * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
        * btrace.c (_initialize_btrace): Add declaration.
        * charset.c (_initialize_charset): Add declaration.
        * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
        * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
        * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
        * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
        * cli/cli-script.c (_initialize_cli_script): Add declaration.
        * cli/cli-style.c (_initialize_cli_style): Add declaration.
        * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
        * coffread.c (_initialize_coffread): Add declaration.
        * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
        * compile/compile.c (_initialize_compile): Add declaration.
        * complaints.c (_initialize_complaints): Add declaration.
        * completer.c (_initialize_completer): Add declaration.
        * copying.c (_initialize_copying): Add declaration.
        * corefile.c (_initialize_core): Add declaration.
        * corelow.c (_initialize_corelow): Add declaration.
        * cp-abi.c (_initialize_cp_abi): Add declaration.
        * cp-namespace.c (_initialize_cp_namespace): Add declaration.
        * cp-support.c (_initialize_cp_support): Add declaration.
        * cp-valprint.c (_initialize_cp_valprint): Add declaration.
        * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
        * cris-tdep.c (_initialize_cris_tdep): Add declaration.
        * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
        * csky-tdep.c (_initialize_csky_tdep): Add declaration.
        * ctfread.c (_initialize_ctfread): Add declaration.
        * d-lang.c (_initialize_d_language): Add declaration.
        * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
        * darwin-nat.c (_initialize_darwin_nat): Add declaration.
        * dbxread.c (_initialize_dbxread): Add declaration.
        * dcache.c (_initialize_dcache): Add declaration.
        * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
        * disasm.c (_initialize_disasm): Add declaration.
        * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
        * dummy-frame.c (_initialize_dummy_frame): Add declaration.
        * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
        * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
        * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
        * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
        * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
        * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
        * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
        * elfread.c (_initialize_elfread): Add declaration.
        * exec.c (_initialize_exec): Add declaration.
        * extension.c (_initialize_extension): Add declaration.
        * f-lang.c (_initialize_f_language): Add declaration.
        * f-valprint.c (_initialize_f_valprint): Add declaration.
        * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
        * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
        * filesystem.c (_initialize_filesystem): Add declaration.
        * findcmd.c (_initialize_mem_search): Add declaration.
        * findvar.c (_initialize_findvar): Add declaration.
        * fork-child.c (_initialize_fork_child): Add declaration.
        * frame-base.c (_initialize_frame_base): Add declaration.
        * frame-unwind.c (_initialize_frame_unwind): Add declaration.
        * frame.c (_initialize_frame): Add declaration.
        * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
        * frv-tdep.c (_initialize_frv_tdep): Add declaration.
        * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
        * gcore.c (_initialize_gcore): Add declaration.
        * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
        * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
        * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
        * gdbarch.c (_initialize_gdbarch): Add declaration.
        * gdbtypes.c (_initialize_gdbtypes): Add declaration.
        * gnu-nat.c (_initialize_gnu_nat): Add declaration.
        * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
        * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
        * go-lang.c (_initialize_go_language): Add declaration.
        * go32-nat.c (_initialize_go32_nat): Add declaration.
        * guile/guile.c (_initialize_guile): Add declaration.
        * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
        * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
        * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
        * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
        * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
        * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
        * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
        * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
        * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
        * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
        * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
        * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
        * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
        * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
        * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
        * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
        * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
        * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
        * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
        * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
        * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
        * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
        * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
        * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
        * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
        * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
        * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
        * i386-tdep.c (_initialize_i386_tdep): Add declaration.
        * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
        * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
        * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
        * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
        * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
        * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
        * infcall.c (_initialize_infcall): Add declaration.
        * infcmd.c (_initialize_infcmd): Add declaration.
        * inflow.c (_initialize_inflow): Add declaration.
        * infrun.c (_initialize_infrun): Add declaration.
        * interps.c (_initialize_interpreter): Add declaration.
        * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
        * jit.c (_initialize_jit): Add declaration.
        * language.c (_initialize_language): Add declaration.
        * linux-fork.c (_initialize_linux_fork): Add declaration.
        * linux-nat.c (_initialize_linux_nat): Add declaration.
        * linux-tdep.c (_initialize_linux_tdep): Add declaration.
        * linux-thread-db.c (_initialize_thread_db): Add declaration.
        * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
        * m2-lang.c (_initialize_m2_language): Add declaration.
        * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
        * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
        * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
        * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
        * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
        * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
        * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
        * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
        * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
        * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
        * machoread.c (_initialize_machoread): Add declaration.
        * macrocmd.c (_initialize_macrocmd): Add declaration.
        * macroscope.c (_initialize_macroscope): Add declaration.
        * maint-test-options.c (_initialize_maint_test_options): Add declaration.
        * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
        * maint.c (_initialize_maint_cmds): Add declaration.
        * mdebugread.c (_initialize_mdebugread): Add declaration.
        * memattr.c (_initialize_mem): Add declaration.
        * mep-tdep.c (_initialize_mep_tdep): Add declaration.
        * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
        * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
        * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
        * mi/mi-main.c (_initialize_mi_main): Add declaration.
        * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
        * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
        * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
        * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
        * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
        * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
        * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
        * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
        * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
        * mips-tdep.c (_initialize_mips_tdep): Add declaration.
        * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
        * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
        * mipsread.c (_initialize_mipsread): Add declaration.
        * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
        * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
        * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
        * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
        * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
        * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
        * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
        * nto-procfs.c (_initialize_procfs): Add declaration.
        * objc-lang.c (_initialize_objc_language): Add declaration.
        * observable.c (_initialize_observer): Add declaration.
        * opencl-lang.c (_initialize_opencl_language): Add declaration.
        * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
        * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
        * osabi.c (_initialize_gdb_osabi): Add declaration.
        * osdata.c (_initialize_osdata): Add declaration.
        * p-valprint.c (_initialize_pascal_valprint): Add declaration.
        * parse.c (_initialize_parse): Add declaration.
        * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
        * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
        * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
        * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
        * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
        * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
        * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
        * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
        * printcmd.c (_initialize_printcmd): Add declaration.
        * probe.c (_initialize_probe): Add declaration.
        * proc-api.c (_initialize_proc_api): Add declaration.
        * proc-events.c (_initialize_proc_events): Add declaration.
        * proc-service.c (_initialize_proc_service): Add declaration.
        * procfs.c (_initialize_procfs): Add declaration.
        * producer.c (_initialize_producer): Add declaration.
        * psymtab.c (_initialize_psymtab): Add declaration.
        * python/python.c (_initialize_python): Add declaration.
        * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
        * record-btrace.c (_initialize_record_btrace): Add declaration.
        * record-full.c (_initialize_record_full): Add declaration.
        * record.c (_initialize_record): Add declaration.
        * regcache-dump.c (_initialize_regcache_dump): Add declaration.
        * regcache.c (_initialize_regcache): Add declaration.
        * reggroups.c (_initialize_reggroup): Add declaration.
        * remote-notif.c (_initialize_notif): Add declaration.
        * remote-sim.c (_initialize_remote_sim): Add declaration.
        * remote.c (_initialize_remote): Add declaration.
        * reverse.c (_initialize_reverse): Add declaration.
        * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
        * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
        * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
        * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
        * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
        * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
        * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
        * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): Add declaration.
        * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
        * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
        * rust-exp.y (_initialize_rust_exp): Add declaration.
        * rx-tdep.c (_initialize_rx_tdep): Add declaration.
        * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
        * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
        * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
        * s390-tdep.c (_initialize_s390_tdep): Add declaration.
        * score-tdep.c (_initialize_score_tdep): Add declaration.
        * ser-go32.c (_initialize_ser_dos): Add declaration.
        * ser-mingw.c (_initialize_ser_windows): Add declaration.
        * ser-pipe.c (_initialize_ser_pipe): Add declaration.
        * ser-tcp.c (_initialize_ser_tcp): Add declaration.
        * ser-uds.c (_initialize_ser_socket): Add declaration.
        * ser-unix.c (_initialize_ser_hardwire): Add declaration.
        * serial.c (_initialize_serial): Add declaration.
        * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
        * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
        * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
        * sh-tdep.c (_initialize_sh_tdep): Add declaration.
        * skip.c (_initialize_step_skip): Add declaration.
        * sol-thread.c (_initialize_sol_thread): Add declaration.
        * solib-aix.c (_initialize_solib_aix): Add declaration.
        * solib-darwin.c (_initialize_darwin_solib): Add declaration.
        * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
        * solib-frv.c (_initialize_frv_solib): Add declaration.
        * solib-svr4.c (_initialize_svr4_solib): Add declaration.
        * solib-target.c (_initialize_solib_target): Add declaration.
        * solib.c (_initialize_solib): Add declaration.
        * source-cache.c (_initialize_source_cache): Add declaration.
        * source.c (_initialize_source): Add declaration.
        * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
        * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
        * sparc-nat.c (_initialize_sparc_nat): Add declaration.
        * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
        * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
        * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
        * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
        * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
        * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
        * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
        * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
        * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
        * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
        * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
        * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
        * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
        * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
        * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
        * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
        * stabsread.c (_initialize_stabsread): Add declaration.
        * stack.c (_initialize_stack): Add declaration.
        * stap-probe.c (_initialize_stap_probe): Add declaration.
        * std-regs.c (_initialize_frame_reg): Add declaration.
        * symfile-debug.c (_initialize_symfile_debug): Add declaration.
        * symfile-mem.c (_initialize_symfile_mem): Add declaration.
        * symfile.c (_initialize_symfile): Add declaration.
        * symmisc.c (_initialize_symmisc): Add declaration.
        * symtab.c (_initialize_symtab): Add declaration.
        * target-dcache.c (_initialize_target_dcache): Add declaration.
        * target-descriptions.c (_initialize_target_descriptions): Add declaration.
        * thread.c (_initialize_thread): Add declaration.
        * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
        * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
        * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
        * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
        * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
        * tracectf.c (_initialize_ctf): Add declaration.
        * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
        * tracefile.c (_initialize_tracefile): Add declaration.
        * tracepoint.c (_initialize_tracepoint): Add declaration.
        * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
        * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
        * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
        * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
        * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
        * tui/tui-win.c (_initialize_tui_win): Add declaration.
        * tui/tui.c (_initialize_tui): Add declaration.
        * typeprint.c (_initialize_typeprint): Add declaration.
        * ui-style.c (_initialize_ui_style): Add declaration.
        * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
        * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
        * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
        * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
        * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
        * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
        * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
        * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
        * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
        * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
        * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
        * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
        * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
        * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
        * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
        * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
        * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
        * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
        * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
        * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
        * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
        * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
        * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
        * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
        * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
        * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
        * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
        * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
        * user-regs.c (_initialize_user_regs): Add declaration.
        * utils.c (_initialize_utils): Add declaration.
        * v850-tdep.c (_initialize_v850_tdep): Add declaration.
        * valops.c (_initialize_valops): Add declaration.
        * valprint.c (_initialize_valprint): Add declaration.
        * value.c (_initialize_values): Add declaration.
        * varobj.c (_initialize_varobj): Add declaration.
        * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
        * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
        * vax-tdep.c (_initialize_vax_tdep): Add declaration.
        * windows-nat.c (_initialize_windows_nat): Add declaration.
        (_initialize_check_for_gdb_ini): Add declaration.
        (_initialize_loadable): Add declaration.
        * windows-tdep.c (_initialize_windows_tdep): Add declaration.
        * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
        * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
        * xcoffread.c (_initialize_xcoffread): Add declaration.
        * xml-support.c (_initialize_xml_support): Add declaration.
        * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
        * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
        * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
        * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.

Change-Id: I13eec7e0ed2b3c427377a7bdb055cf46da64def9
---
 gdb/aarch64-fbsd-nat.c                          | 3 ++-
 gdb/aarch64-fbsd-tdep.c                         | 3 ++-
 gdb/aarch64-linux-nat.c                         | 3 ++-
 gdb/aarch64-linux-tdep.c                        | 3 ++-
 gdb/aarch64-newlib-tdep.c                       | 3 ++-
 gdb/aarch64-tdep.c                              | 3 ++-
 gdb/ada-exp.y                                   | 3 ++-
 gdb/ada-lang.c                                  | 3 ++-
 gdb/ada-tasks.c                                 | 3 ++-
 gdb/agent.c                                     | 3 ++-
 gdb/aix-thread.c                                | 3 ++-
 gdb/alpha-bsd-nat.c                             | 3 ++-
 gdb/alpha-linux-nat.c                           | 3 ++-
 gdb/alpha-linux-tdep.c                          | 3 ++-
 gdb/alpha-nbsd-tdep.c                           | 3 ++-
 gdb/alpha-obsd-tdep.c                           | 3 ++-
 gdb/alpha-tdep.c                                | 3 ++-
 gdb/amd64-darwin-tdep.c                         | 3 ++-
 gdb/amd64-dicos-tdep.c                          | 3 ++-
 gdb/amd64-fbsd-nat.c                            | 3 ++-
 gdb/amd64-fbsd-tdep.c                           | 3 ++-
 gdb/amd64-linux-nat.c                           | 3 ++-
 gdb/amd64-linux-tdep.c                          | 3 ++-
 gdb/amd64-nbsd-nat.c                            | 3 ++-
 gdb/amd64-nbsd-tdep.c                           | 3 ++-
 gdb/amd64-obsd-nat.c                            | 3 ++-
 gdb/amd64-obsd-tdep.c                           | 3 ++-
 gdb/amd64-sol2-tdep.c                           | 3 ++-
 gdb/amd64-tdep.c                                | 3 ++-
 gdb/amd64-windows-nat.c                         | 3 ++-
 gdb/amd64-windows-tdep.c                        | 3 ++-
 gdb/annotate.c                                  | 3 ++-
 gdb/arc-newlib-tdep.c                           | 3 ++-
 gdb/arc-tdep.c                                  | 3 ++-
 gdb/arch-utils.c                                | 3 ++-
 gdb/arm-fbsd-nat.c                              | 3 ++-
 gdb/arm-fbsd-tdep.c                             | 3 ++-
 gdb/arm-linux-nat.c                             | 3 ++-
 gdb/arm-linux-tdep.c                            | 3 ++-
 gdb/arm-nbsd-nat.c                              | 3 ++-
 gdb/arm-nbsd-tdep.c                             | 3 ++-
 gdb/arm-obsd-tdep.c                             | 3 ++-
 gdb/arm-pikeos-tdep.c                           | 3 ++-
 gdb/arm-symbian-tdep.c                          | 3 ++-
 gdb/arm-tdep.c                                  | 3 ++-
 gdb/arm-wince-tdep.c                            | 3 ++-
 gdb/auto-load.c                                 | 3 ++-
 gdb/auxv.c                                      | 3 ++-
 gdb/avr-tdep.c                                  | 3 ++-
 gdb/ax-gdb.c                                    | 3 ++-
 gdb/bfin-linux-tdep.c                           | 3 ++-
 gdb/bfin-tdep.c                                 | 3 ++-
 gdb/break-catch-sig.c                           | 3 ++-
 gdb/break-catch-syscall.c                       | 3 ++-
 gdb/break-catch-throw.c                         | 3 ++-
 gdb/breakpoint.c                                | 3 ++-
 gdb/bsd-uthread.c                               | 3 ++-
 gdb/btrace.c                                    | 3 ++-
 gdb/charset.c                                   | 3 ++-
 gdb/cli/cli-cmds.c                              | 3 ++-
 gdb/cli/cli-dump.c                              | 3 ++-
 gdb/cli/cli-interp.c                            | 3 ++-
 gdb/cli/cli-logging.c                           | 3 ++-
 gdb/cli/cli-script.c                            | 3 ++-
 gdb/cli/cli-style.c                             | 1 +
 gdb/coff-pe-read.c                              | 3 ++-
 gdb/coffread.c                                  | 3 ++-
 gdb/compile/compile-cplus-types.c               | 1 +
 gdb/compile/compile.c                           | 3 ++-
 gdb/complaints.c                                | 3 ++-
 gdb/completer.c                                 | 3 ++-
 gdb/copying.c                                   | 3 ++-
 gdb/corefile.c                                  | 3 ++-
 gdb/corelow.c                                   | 3 ++-
 gdb/cp-abi.c                                    | 3 ++-
 gdb/cp-namespace.c                              | 3 ++-
 gdb/cp-support.c                                | 3 ++-
 gdb/cp-valprint.c                               | 3 ++-
 gdb/cris-linux-tdep.c                           | 3 ++-
 gdb/cris-tdep.c                                 | 3 ++-
 gdb/csky-linux-tdep.c                           | 3 ++-
 gdb/csky-tdep.c                                 | 3 ++-
 gdb/ctfread.c                                   | 3 ++-
 gdb/d-lang.c                                    | 3 ++-
 gdb/darwin-nat-info.c                           | 3 ++-
 gdb/darwin-nat.c                                | 1 +
 gdb/dbxread.c                                   | 3 ++-
 gdb/dcache.c                                    | 3 ++-
 gdb/disasm-selftests.c                          | 3 ++-
 gdb/disasm.c                                    | 3 ++-
 gdb/dtrace-probe.c                              | 3 ++-
 gdb/dummy-frame.c                               | 3 ++-
 gdb/dwarf-index-cache.c                         | 1 +
 gdb/dwarf-index-write.c                         | 1 +
 gdb/dwarf2-frame-tailcall.c                     | 3 ++-
 gdb/dwarf2-frame.c                              | 3 ++-
 gdb/dwarf2expr.c                                | 3 ++-
 gdb/dwarf2loc.c                                 | 3 ++-
 gdb/dwarf2read.c                                | 3 ++-
 gdb/elfread.c                                   | 3 ++-
 gdb/exec.c                                      | 3 ++-
 gdb/extension.c                                 | 3 ++-
 gdb/f-lang.c                                    | 3 ++-
 gdb/f-valprint.c                                | 3 ++-
 gdb/fbsd-nat.c                                  | 3 ++-
 gdb/fbsd-tdep.c                                 | 3 ++-
 gdb/filesystem.c                                | 3 ++-
 gdb/findcmd.c                                   | 3 ++-
 gdb/findvar.c                                   | 3 ++-
 gdb/fork-child.c                                | 3 ++-
 gdb/frame-base.c                                | 3 ++-
 gdb/frame-unwind.c                              | 3 ++-
 gdb/frame.c                                     | 3 ++-
 gdb/frv-linux-tdep.c                            | 3 ++-
 gdb/frv-tdep.c                                  | 3 ++-
 gdb/ft32-tdep.c                                 | 3 ++-
 gdb/gcore.c                                     | 3 ++-
 gdb/gdb-demangle.c                              | 3 ++-
 gdb/gdb_bfd.c                                   | 3 ++-
 gdb/gdbarch-selftests.c                         | 3 ++-
 gdb/gdbarch.c                                   | 3 ++-
 gdb/gdbtypes.c                                  | 3 ++-
 gdb/gnu-nat.c                                   | 3 ++-
 gdb/gnu-v2-abi.c                                | 3 ++-
 gdb/gnu-v3-abi.c                                | 3 ++-
 gdb/go-lang.c                                   | 3 ++-
 gdb/go32-nat.c                                  | 3 ++-
 gdb/guile/guile.c                               | 3 ++-
 gdb/h8300-tdep.c                                | 3 ++-
 gdb/hppa-linux-nat.c                            | 3 ++-
 gdb/hppa-linux-tdep.c                           | 3 ++-
 gdb/hppa-nbsd-nat.c                             | 3 ++-
 gdb/hppa-nbsd-tdep.c                            | 3 ++-
 gdb/hppa-obsd-nat.c                             | 3 ++-
 gdb/hppa-obsd-tdep.c                            | 3 ++-
 gdb/hppa-tdep.c                                 | 3 ++-
 gdb/i386-bsd-nat.c                              | 3 ++-
 gdb/i386-cygwin-tdep.c                          | 3 ++-
 gdb/i386-darwin-nat.c                           | 3 ++-
 gdb/i386-darwin-tdep.c                          | 3 ++-
 gdb/i386-dicos-tdep.c                           | 3 ++-
 gdb/i386-fbsd-nat.c                             | 3 ++-
 gdb/i386-fbsd-tdep.c                            | 3 ++-
 gdb/i386-gnu-nat.c                              | 3 ++-
 gdb/i386-gnu-tdep.c                             | 3 ++-
 gdb/i386-go32-tdep.c                            | 1 +
 gdb/i386-linux-nat.c                            | 3 ++-
 gdb/i386-linux-tdep.c                           | 3 ++-
 gdb/i386-nbsd-nat.c                             | 3 ++-
 gdb/i386-nbsd-tdep.c                            | 3 ++-
 gdb/i386-nto-tdep.c                             | 3 ++-
 gdb/i386-obsd-nat.c                             | 3 ++-
 gdb/i386-obsd-tdep.c                            | 3 ++-
 gdb/i386-sol2-nat.c                             | 3 ++-
 gdb/i386-sol2-tdep.c                            | 3 ++-
 gdb/i386-tdep.c                                 | 3 ++-
 gdb/i386-windows-nat.c                          | 3 ++-
 gdb/ia64-libunwind-tdep.c                       | 3 ++-
 gdb/ia64-linux-nat.c                            | 3 ++-
 gdb/ia64-linux-tdep.c                           | 3 ++-
 gdb/ia64-tdep.c                                 | 3 ++-
 gdb/ia64-vms-tdep.c                             | 3 ++-
 gdb/infcall.c                                   | 3 ++-
 gdb/infcmd.c                                    | 3 ++-
 gdb/inflow.c                                    | 3 ++-
 gdb/infrun.c                                    | 3 ++-
 gdb/interps.c                                   | 3 ++-
 gdb/iq2000-tdep.c                               | 3 ++-
 gdb/jit.c                                       | 3 ++-
 gdb/language.c                                  | 3 ++-
 gdb/linux-fork.c                                | 3 ++-
 gdb/linux-nat.c                                 | 3 ++-
 gdb/linux-tdep.c                                | 3 ++-
 gdb/linux-thread-db.c                           | 3 ++-
 gdb/lm32-tdep.c                                 | 3 ++-
 gdb/m2-lang.c                                   | 3 ++-
 gdb/m32c-tdep.c                                 | 3 ++-
 gdb/m32r-linux-nat.c                            | 3 ++-
 gdb/m32r-linux-tdep.c                           | 3 ++-
 gdb/m32r-tdep.c                                 | 3 ++-
 gdb/m68hc11-tdep.c                              | 3 ++-
 gdb/m68k-bsd-nat.c                              | 3 ++-
 gdb/m68k-bsd-tdep.c                             | 3 ++-
 gdb/m68k-linux-nat.c                            | 3 ++-
 gdb/m68k-linux-tdep.c                           | 3 ++-
 gdb/m68k-tdep.c                                 | 3 ++-
 gdb/machoread.c                                 | 3 ++-
 gdb/macrocmd.c                                  | 3 ++-
 gdb/macroscope.c                                | 3 ++-
 gdb/maint-test-options.c                        | 1 +
 gdb/maint-test-settings.c                       | 3 ++-
 gdb/maint.c                                     | 3 ++-
 gdb/mdebugread.c                                | 3 ++-
 gdb/memattr.c                                   | 3 ++-
 gdb/mep-tdep.c                                  | 3 ++-
 gdb/mi/mi-cmd-env.c                             | 3 ++-
 gdb/mi/mi-cmds.c                                | 3 ++-
 gdb/mi/mi-interp.c                              | 3 ++-
 gdb/mi/mi-main.c                                | 3 ++-
 gdb/microblaze-linux-tdep.c                     | 3 ++-
 gdb/microblaze-tdep.c                           | 3 ++-
 gdb/mips-fbsd-nat.c                             | 3 ++-
 gdb/mips-fbsd-tdep.c                            | 3 ++-
 gdb/mips-linux-nat.c                            | 3 ++-
 gdb/mips-linux-tdep.c                           | 3 ++-
 gdb/mips-nbsd-nat.c                             | 3 ++-
 gdb/mips-nbsd-tdep.c                            | 3 ++-
 gdb/mips-sde-tdep.c                             | 3 ++-
 gdb/mips-tdep.c                                 | 3 ++-
 gdb/mips64-obsd-nat.c                           | 3 ++-
 gdb/mips64-obsd-tdep.c                          | 3 ++-
 gdb/mipsread.c                                  | 3 ++-
 gdb/mn10300-linux-tdep.c                        | 3 ++-
 gdb/mn10300-tdep.c                              | 3 ++-
 gdb/moxie-tdep.c                                | 3 ++-
 gdb/msp430-tdep.c                               | 3 ++-
 gdb/nds32-tdep.c                                | 3 ++-
 gdb/nios2-linux-tdep.c                          | 3 ++-
 gdb/nios2-tdep.c                                | 3 ++-
 gdb/nto-procfs.c                                | 3 ++-
 gdb/objc-lang.c                                 | 3 ++-
 gdb/observable.c                                | 3 ++-
 gdb/opencl-lang.c                               | 3 ++-
 gdb/or1k-linux-tdep.c                           | 3 ++-
 gdb/or1k-tdep.c                                 | 3 ++-
 gdb/osabi.c                                     | 3 ++-
 gdb/osdata.c                                    | 3 ++-
 gdb/p-valprint.c                                | 3 ++-
 gdb/parse.c                                     | 3 ++-
 gdb/ppc-fbsd-nat.c                              | 3 ++-
 gdb/ppc-fbsd-tdep.c                             | 3 ++-
 gdb/ppc-linux-nat.c                             | 3 ++-
 gdb/ppc-linux-tdep.c                            | 3 ++-
 gdb/ppc-nbsd-nat.c                              | 3 ++-
 gdb/ppc-nbsd-tdep.c                             | 3 ++-
 gdb/ppc-obsd-nat.c                              | 3 ++-
 gdb/ppc-obsd-tdep.c                             | 3 ++-
 gdb/printcmd.c                                  | 3 ++-
 gdb/probe.c                                     | 3 ++-
 gdb/proc-api.c                                  | 3 ++-
 gdb/proc-events.c                               | 3 ++-
 gdb/proc-service.c                              | 3 ++-
 gdb/procfs.c                                    | 3 ++-
 gdb/producer.c                                  | 1 +
 gdb/psymtab.c                                   | 3 ++-
 gdb/python/python.c                             | 3 ++-
 gdb/ravenscar-thread.c                          | 1 +
 gdb/record-btrace.c                             | 3 ++-
 gdb/record-full.c                               | 3 ++-
 gdb/record.c                                    | 3 ++-
 gdb/regcache-dump.c                             | 3 ++-
 gdb/regcache.c                                  | 3 ++-
 gdb/reggroups.c                                 | 3 ++-
 gdb/remote-notif.c                              | 3 ++-
 gdb/remote-sim.c                                | 3 ++-
 gdb/remote.c                                    | 3 ++-
 gdb/reverse.c                                   | 3 ++-
 gdb/riscv-fbsd-nat.c                            | 3 ++-
 gdb/riscv-fbsd-tdep.c                           | 3 ++-
 gdb/riscv-linux-nat.c                           | 3 ++-
 gdb/riscv-linux-tdep.c                          | 3 ++-
 gdb/riscv-tdep.c                                | 3 ++-
 gdb/rl78-tdep.c                                 | 3 ++-
 gdb/rs6000-aix-tdep.c                           | 3 ++-
 gdb/rs6000-lynx178-tdep.c                       | 3 ++-
 gdb/rs6000-nat.c                                | 3 ++-
 gdb/rs6000-tdep.c                               | 3 ++-
 gdb/run-on-main-thread.c                        | 1 +
 gdb/rust-exp.y                                  | 3 ++-
 gdb/rx-tdep.c                                   | 3 ++-
 gdb/s12z-tdep.c                                 | 3 ++-
 gdb/s390-linux-nat.c                            | 3 ++-
 gdb/s390-linux-tdep.c                           | 3 ++-
 gdb/s390-tdep.c                                 | 3 ++-
 gdb/score-tdep.c                                | 3 ++-
 gdb/ser-go32.c                                  | 3 ++-
 gdb/ser-mingw.c                                 | 3 ++-
 gdb/ser-pipe.c                                  | 3 ++-
 gdb/ser-tcp.c                                   | 3 ++-
 gdb/ser-uds.c                                   | 3 ++-
 gdb/ser-unix.c                                  | 3 ++-
 gdb/serial.c                                    | 3 ++-
 gdb/sh-linux-tdep.c                             | 3 ++-
 gdb/sh-nbsd-nat.c                               | 3 ++-
 gdb/sh-nbsd-tdep.c                              | 3 ++-
 gdb/sh-tdep.c                                   | 3 ++-
 gdb/skip.c                                      | 3 ++-
 gdb/sol-thread.c                                | 3 ++-
 gdb/solib-aix.c                                 | 3 ++-
 gdb/solib-darwin.c                              | 3 ++-
 gdb/solib-dsbt.c                                | 3 ++-
 gdb/solib-frv.c                                 | 3 ++-
 gdb/solib-svr4.c                                | 3 ++-
 gdb/solib-target.c                              | 3 ++-
 gdb/solib.c                                     | 3 ++-
 gdb/source-cache.c                              | 1 +
 gdb/source.c                                    | 3 ++-
 gdb/sparc-linux-nat.c                           | 3 ++-
 gdb/sparc-linux-tdep.c                          | 3 ++-
 gdb/sparc-nat.c                                 | 3 ++-
 gdb/sparc-nbsd-nat.c                            | 3 ++-
 gdb/sparc-nbsd-tdep.c                           | 3 ++-
 gdb/sparc-obsd-tdep.c                           | 3 ++-
 gdb/sparc-sol2-tdep.c                           | 3 ++-
 gdb/sparc-tdep.c                                | 3 ++-
 gdb/sparc64-fbsd-nat.c                          | 3 ++-
 gdb/sparc64-fbsd-tdep.c                         | 3 ++-
 gdb/sparc64-linux-nat.c                         | 3 ++-
 gdb/sparc64-linux-tdep.c                        | 3 ++-
 gdb/sparc64-nat.c                               | 3 ++-
 gdb/sparc64-nbsd-nat.c                          | 3 ++-
 gdb/sparc64-nbsd-tdep.c                         | 3 ++-
 gdb/sparc64-obsd-nat.c                          | 3 ++-
 gdb/sparc64-obsd-tdep.c                         | 3 ++-
 gdb/sparc64-sol2-tdep.c                         | 3 ++-
 gdb/sparc64-tdep.c                              | 3 ++-
 gdb/stabsread.c                                 | 3 ++-
 gdb/stack.c                                     | 3 ++-
 gdb/stap-probe.c                                | 3 ++-
 gdb/std-regs.c                                  | 3 ++-
 gdb/symfile-debug.c                             | 3 ++-
 gdb/symfile-mem.c                               | 3 ++-
 gdb/symfile.c                                   | 3 ++-
 gdb/symmisc.c                                   | 3 ++-
 gdb/symtab.c                                    | 3 ++-
 gdb/target-dcache.c                             | 3 ++-
 gdb/target-descriptions.c                       | 3 ++-
 gdb/thread.c                                    | 3 ++-
 gdb/tic6x-linux-tdep.c                          | 3 ++-
 gdb/tic6x-tdep.c                                | 3 ++-
 gdb/tilegx-linux-nat.c                          | 3 ++-
 gdb/tilegx-linux-tdep.c                         | 3 ++-
 gdb/tilegx-tdep.c                               | 3 ++-
 gdb/tracectf.c                                  | 3 ++-
 gdb/tracefile-tfile.c                           | 3 ++-
 gdb/tracefile.c                                 | 3 ++-
 gdb/tracepoint.c                                | 3 ++-
 gdb/tui/tui-hooks.c                             | 3 ++-
 gdb/tui/tui-interp.c                            | 3 ++-
 gdb/tui/tui-layout.c                            | 3 ++-
 gdb/tui/tui-regs.c                              | 3 ++-
 gdb/tui/tui-stack.c                             | 3 ++-
 gdb/tui/tui-win.c                               | 3 ++-
 gdb/tui/tui.c                                   | 3 ++-
 gdb/typeprint.c                                 | 3 ++-
 gdb/ui-style.c                                  | 1 +
 gdb/unittests/array-view-selftests.c            | 1 +
 gdb/unittests/child-path-selftests.c            | 1 +
 gdb/unittests/cli-utils-selftests.c             | 1 +
 gdb/unittests/common-utils-selftests.c          | 1 +
 gdb/unittests/copy_bitwise-selftests.c          | 1 +
 gdb/unittests/environ-selftests.c               | 1 +
 gdb/unittests/filtered_iterator-selftests.c     | 1 +
 gdb/unittests/format_pieces-selftests.c         | 1 +
 gdb/unittests/function-view-selftests.c         | 1 +
 gdb/unittests/help-doc-selftests.c              | 1 +
 gdb/unittests/lookup_name_info-selftests.c      | 1 +
 gdb/unittests/main-thread-selftests.c           | 1 +
 gdb/unittests/memory-map-selftests.c            | 1 +
 gdb/unittests/memrange-selftests.c              | 1 +
 gdb/unittests/mkdir-recursive-selftests.c       | 1 +
 gdb/unittests/observable-selftests.c            | 1 +
 gdb/unittests/offset-type-selftests.c           | 1 +
 gdb/unittests/optional-selftests.c              | 1 +
 gdb/unittests/parse-connection-spec-selftests.c | 1 +
 gdb/unittests/rsp-low-selftests.c               | 1 +
 gdb/unittests/scoped_fd-selftests.c             | 1 +
 gdb/unittests/scoped_mmap-selftests.c           | 1 +
 gdb/unittests/scoped_restore-selftests.c        | 1 +
 gdb/unittests/string_view-selftests.c           | 1 +
 gdb/unittests/style-selftests.c                 | 1 +
 gdb/unittests/tracepoint-selftests.c            | 1 +
 gdb/unittests/tui-selftests.c                   | 1 +
 gdb/unittests/unpack-selftests.c                | 1 +
 gdb/unittests/utils-selftests.c                 | 1 +
 gdb/unittests/vec-utils-selftests.c             | 1 +
 gdb/unittests/xml-utils-selftests.c             | 1 +
 gdb/user-regs.c                                 | 3 ++-
 gdb/utils.c                                     | 3 ++-
 gdb/v850-tdep.c                                 | 3 ++-
 gdb/valops.c                                    | 3 ++-
 gdb/valprint.c                                  | 3 ++-
 gdb/value.c                                     | 3 ++-
 gdb/varobj.c                                    | 3 ++-
 gdb/vax-bsd-nat.c                               | 3 ++-
 gdb/vax-nbsd-tdep.c                             | 3 ++-
 gdb/vax-tdep.c                                  | 3 ++-
 gdb/windows-nat.c                               | 9 ++++++---
 gdb/windows-tdep.c                              | 3 ++-
 gdb/x86-bsd-nat.c                               | 1 +
 gdb/x86-linux-nat.c                             | 1 +
 gdb/xcoffread.c                                 | 3 ++-
 gdb/xml-support.c                               | 4 +++-
 gdb/xstormy16-tdep.c                            | 3 ++-
 gdb/xtensa-linux-nat.c                          | 3 ++-
 gdb/xtensa-linux-tdep.c                         | 3 ++-
 gdb/xtensa-tdep.c                               | 3 ++-
 397 files changed, 754 insertions(+), 354 deletions(-)

diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index 51fd85800274..5cd2ccd46bff 100644
--- a/gdb/aarch64-fbsd-nat.c
+++ b/gdb/aarch64-fbsd-nat.c
@@ -124,8 +124,9 @@ aarch64_fbsd_nat_target::store_registers (struct regcache *regcache,
     }
 }
 
+void _initialize_aarch64_fbsd_nat ();
 void
-_initialize_aarch64_fbsd_nat (void)
+_initialize_aarch64_fbsd_nat ()
 {
   add_inf_child_target (&the_aarch64_fbsd_nat_target);
 }
diff --git a/gdb/aarch64-fbsd-tdep.c b/gdb/aarch64-fbsd-tdep.c
index 68ecfc30e8d2..b923c5c47404 100644
--- a/gdb/aarch64-fbsd-tdep.c
+++ b/gdb/aarch64-fbsd-tdep.c
@@ -170,8 +170,9 @@ aarch64_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, aarch64_fbsd_iterate_over_regset_sections);
 }
 
+void _initialize_aarch64_fbsd_tdep ();
 void
-_initialize_aarch64_fbsd_tdep (void)
+_initialize_aarch64_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_FREEBSD,
   aarch64_fbsd_init_abi);
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index b385b5866c0d..77d5863a56aa 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -996,8 +996,9 @@ triggers a breakpoint or watchpoint."),
    &maintenance_show_cmdlist);
 }
 
+void _initialize_aarch64_linux_nat ();
 void
-_initialize_aarch64_linux_nat (void)
+_initialize_aarch64_linux_nat ()
 {
   add_show_debug_regs_command ();
 
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index b854dcdd58cb..67046c4271a3 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -1665,8 +1665,9 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_gcc_target_options (gdbarch, aarch64_linux_gcc_target_options);
 }
 
+void _initialize_aarch64_linux_tdep ();
 void
-_initialize_aarch64_linux_tdep (void)
+_initialize_aarch64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_LINUX,
   aarch64_linux_init_abi);
diff --git a/gdb/aarch64-newlib-tdep.c b/gdb/aarch64-newlib-tdep.c
index 15537bd8d8c0..456bae529fe6 100644
--- a/gdb/aarch64-newlib-tdep.c
+++ b/gdb/aarch64-newlib-tdep.c
@@ -36,8 +36,9 @@ aarch64_newlib_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->jb_pc = 11;
 }
 
+void _initialize_aarch64_newlib_tdep ();
 void
-_initialize_aarch64_newlib_tdep (void)
+_initialize_aarch64_newlib_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_NEWLIB,
   aarch64_newlib_init_abi);
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index da41e2213076..8451a916dc3e 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -3406,8 +3406,9 @@ static void aarch64_process_record_test (void);
 }
 #endif
 
+void _initialize_aarch64_tdep ();
 void
-_initialize_aarch64_tdep (void)
+_initialize_aarch64_tdep ()
 {
   gdbarch_register (bfd_arch_aarch64, aarch64_gdbarch_init,
     aarch64_dump_tdep);
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 01b5c2387509..c5e1e14299ec 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1456,8 +1456,9 @@ type_system_address (struct parser_state *par_state)
   return  type != NULL ? type : parse_type (par_state)->builtin_data_ptr;
 }
 
+void _initialize_ada_exp ();
 void
-_initialize_ada_exp (void)
+_initialize_ada_exp ()
 {
   obstack_init (&temp_parse_space);
 }
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 334f2917e3dd..c5b5fdf169f5 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -14229,8 +14229,9 @@ ada_free_objfile_observer (struct objfile *objfile)
   ada_clear_symbol_cache ();
 }
 
+void _initialize_ada_language ();
 void
-_initialize_ada_language (void)
+_initialize_ada_language ()
 {
   initialize_ada_catchpoint_ops ();
 
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 0b7a8eb4ad46..0a81c3c6922e 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -1455,8 +1455,9 @@ ada_tasks_new_objfile_observer (struct objfile *objfile)
       ada_tasks_invalidate_inferior_data (inf);
 }
 
+void _initialize_tasks ();
 void
-_initialize_tasks (void)
+_initialize_tasks ()
 {
   /* Attach various observers.  */
   gdb::observers::normal_stop.attach (ada_tasks_normal_stop_observer);
diff --git a/gdb/agent.c b/gdb/agent.c
index ccf8c44a3612..77ece234996e 100644
--- a/gdb/agent.c
+++ b/gdb/agent.c
@@ -74,8 +74,9 @@ agent_new_objfile (struct objfile *objfile)
   agent_look_up_symbols (objfile);
 }
 
+void _initialize_agent ();
 void
-_initialize_agent (void)
+_initialize_agent ()
 {
   gdb::observers::new_objfile.attach (agent_new_objfile);
 
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index b9b25d5e3cb6..f2bd05fef22b 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1834,8 +1834,9 @@ aix_thread_target::get_ada_task_ptid (long lwp, long thread)
 /* Module startup initialization function, automagically called by
    init.c.  */
 
+void _initialize_aix_thread ();
 void
-_initialize_aix_thread (void)
+_initialize_aix_thread ()
 {
   /* Notice when object files get loaded and unloaded.  */
   gdb::observers::new_objfile.attach (new_objfile);
diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c
index 71ae8e1419c4..747c3c5abb68 100644
--- a/gdb/alpha-bsd-nat.c
+++ b/gdb/alpha-bsd-nat.c
@@ -192,8 +192,9 @@ alphabsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 }
 
 
+void _initialize_alphabsd_nat ();
 void
-_initialize_alphabsd_nat (void)
+_initialize_alphabsd_nat ()
 {
   add_inf_child_target (&the_alpha_bsd_nat_target);
 
diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c
index 4f881532cebe..5fd7a932ce13 100644
--- a/gdb/alpha-linux-nat.c
+++ b/gdb/alpha-linux-nat.c
@@ -101,8 +101,9 @@ alpha_linux_nat_target::register_u_offset (struct gdbarch *gdbarch,
     return FPR_BASE + regno - gdbarch_fp0_regnum (gdbarch);
 }
 
+void _initialize_alpha_linux_nat ();
 void
-_initialize_alpha_linux_nat (void)
+_initialize_alpha_linux_nat ()
 {
   linux_target = &the_alpha_linux_nat_target;
   add_inf_child_target (&the_alpha_linux_nat_target);
diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c
index aa0342164f2e..589b89567053 100644
--- a/gdb/alpha-linux-tdep.c
+++ b/gdb/alpha-linux-tdep.c
@@ -389,8 +389,9 @@ alpha_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     alpha_linux_gdb_signal_to_target);
 }
 
+void _initialize_alpha_linux_tdep ();
 void
-_initialize_alpha_linux_tdep (void)
+_initialize_alpha_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_LINUX,
                           alpha_linux_init_abi);
diff --git a/gdb/alpha-nbsd-tdep.c b/gdb/alpha-nbsd-tdep.c
index 8e8c45341922..ab9240e35daa 100644
--- a/gdb/alpha-nbsd-tdep.c
+++ b/gdb/alpha-nbsd-tdep.c
@@ -278,8 +278,9 @@ alphanbsd_init_abi (struct gdbarch_info info,
 }
 
 
+void _initialize_alphanbsd_tdep ();
 void
-_initialize_alphanbsd_tdep (void)
+_initialize_alphanbsd_tdep ()
 {
   /* Even though NetBSD/alpha used ELF since day one, it used the
      traditional a.out-style core dump format before NetBSD 1.6, but
diff --git a/gdb/alpha-obsd-tdep.c b/gdb/alpha-obsd-tdep.c
index 340e804b4c77..99d9855c7c26 100644
--- a/gdb/alpha-obsd-tdep.c
+++ b/gdb/alpha-obsd-tdep.c
@@ -126,8 +126,9 @@ alphaobsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
 }
 
 
+void _initialize_alphaobsd_tdep ();
 void
-_initialize_alphaobsd_tdep (void)
+_initialize_alphaobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD,
                           alphaobsd_init_abi);
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index 25acd18a1f83..390f865edad2 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -1821,8 +1821,9 @@ alpha_dwarf2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_base_append_sniffer (gdbarch, dwarf2_frame_base_sniffer);
 }
 
+void _initialize_alpha_tdep ();
 void
-_initialize_alpha_tdep (void)
+_initialize_alpha_tdep ()
 {
 
   gdbarch_register (bfd_arch_alpha, alpha_gdbarch_init, NULL);
diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c
index 912ef3182854..5e8f352ffc9c 100644
--- a/gdb/amd64-darwin-tdep.c
+++ b/gdb/amd64-darwin-tdep.c
@@ -116,8 +116,9 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_solib_ops (gdbarch, &darwin_so_ops);
 }
 
+void _initialize_amd64_darwin_tdep ();
 void
-_initialize_amd64_darwin_tdep (void)
+_initialize_amd64_darwin_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
                           GDB_OSABI_DARWIN, x86_darwin_init_abi_64);
diff --git a/gdb/amd64-dicos-tdep.c b/gdb/amd64-dicos-tdep.c
index e3aa5a29d903..687d1f26cba9 100644
--- a/gdb/amd64-dicos-tdep.c
+++ b/gdb/amd64-dicos-tdep.c
@@ -46,8 +46,9 @@ amd64_dicos_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_amd64_dicos_tdep ();
 void
-_initialize_amd64_dicos_tdep (void)
+_initialize_amd64_dicos_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
   amd64_dicos_osabi_sniffer);
diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c
index 662008bf6811..7f85b6a44894 100644
--- a/gdb/amd64-fbsd-nat.c
+++ b/gdb/amd64-fbsd-nat.c
@@ -209,8 +209,9 @@ amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
 }
 #endif
 
+void _initialize_amd64fbsd_nat ();
 void
-_initialize_amd64fbsd_nat (void)
+_initialize_amd64fbsd_nat ()
 {
   int offset;
 
diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c
index b0639ed95a67..7c3e33644e10 100644
--- a/gdb/amd64-fbsd-tdep.c
+++ b/gdb/amd64-fbsd-tdep.c
@@ -270,8 +270,9 @@ amd64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  amd64fbsd_get_thread_local_address);
 }
 
+void _initialize_amd64fbsd_tdep ();
 void
-_initialize_amd64fbsd_tdep (void)
+_initialize_amd64fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
   GDB_OSABI_FREEBSD, amd64fbsd_init_abi);
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index 27748ff98600..63fc84b0b143 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -478,8 +478,9 @@ amd64_linux_nat_target::low_siginfo_fixup (siginfo_t *ptrace,
     return false;
 }
 
+void _initialize_amd64_linux_nat ();
 void
-_initialize_amd64_linux_nat (void)
+_initialize_amd64_linux_nat ()
 {
   amd64_native_gregset32_reg_offset = amd64_linux_gregset32_reg_offset;
   amd64_native_gregset32_num_regs = I386_LINUX_NUM_REGS;
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 07820a055970..44ecb4e0b338 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -2272,8 +2272,9 @@ amd64_x32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_amd64_linux_tdep ();
 void
-_initialize_amd64_linux_tdep (void)
+_initialize_amd64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
   GDB_OSABI_LINUX, amd64_linux_init_abi);
diff --git a/gdb/amd64-nbsd-nat.c b/gdb/amd64-nbsd-nat.c
index 1d97cc59571e..7a4c00573526 100644
--- a/gdb/amd64-nbsd-nat.c
+++ b/gdb/amd64-nbsd-nat.c
@@ -56,8 +56,9 @@ static int amd64nbsd32_r_reg_offset[] =
 
 static amd64_bsd_nat_target<nbsd_nat_target> the_amd64_nbsd_nat_target;
 
+void _initialize_amd64nbsd_nat ();
 void
-_initialize_amd64nbsd_nat (void)
+_initialize_amd64nbsd_nat ()
 {
   amd64_native_gregset32_reg_offset = amd64nbsd32_r_reg_offset;
   amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64nbsd32_r_reg_offset);
diff --git a/gdb/amd64-nbsd-tdep.c b/gdb/amd64-nbsd-tdep.c
index 65f587cf827d..89d07236b857 100644
--- a/gdb/amd64-nbsd-tdep.c
+++ b/gdb/amd64-nbsd-tdep.c
@@ -120,8 +120,9 @@ amd64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
+void _initialize_amd64nbsd_tdep ();
 void
-_initialize_amd64nbsd_tdep (void)
+_initialize_amd64nbsd_tdep ()
 {
   /* The NetBSD/amd64 native dependent code makes this assumption.  */
   gdb_assert (ARRAY_SIZE (amd64nbsd_r_reg_offset) == AMD64_NUM_GREGS);
diff --git a/gdb/amd64-obsd-nat.c b/gdb/amd64-obsd-nat.c
index f0d8ecf39523..a19f7a19fec8 100644
--- a/gdb/amd64-obsd-nat.c
+++ b/gdb/amd64-obsd-nat.c
@@ -128,8 +128,9 @@ amd64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 
 static amd64_bsd_nat_target<obsd_nat_target> the_amd64_obsd_nat_target;
 
+void _initialize_amd64obsd_nat ();
 void
-_initialize_amd64obsd_nat (void)
+_initialize_amd64obsd_nat ()
 {
   amd64_native_gregset32_reg_offset = amd64obsd32_r_reg_offset;
   amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64obsd32_r_reg_offset);
diff --git a/gdb/amd64-obsd-tdep.c b/gdb/amd64-obsd-tdep.c
index fb3366589095..d5f84fcc5f0c 100644
--- a/gdb/amd64-obsd-tdep.c
+++ b/gdb/amd64-obsd-tdep.c
@@ -448,8 +448,9 @@ amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_prepend_unwinder (gdbarch, &amd64obsd_trapframe_unwind);
 }
 
+void _initialize_amd64obsd_tdep ();
 void
-_initialize_amd64obsd_tdep (void)
+_initialize_amd64obsd_tdep ()
 {
   /* The OpenBSD/amd64 native dependent code makes this assumption.  */
   gdb_assert (ARRAY_SIZE (amd64obsd_r_reg_offset) == AMD64_NUM_GREGS);
diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c
index 86f9f60e28f1..8d8600b2cad8 100644
--- a/gdb/amd64-sol2-tdep.c
+++ b/gdb/amd64-sol2-tdep.c
@@ -118,8 +118,9 @@ amd64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
 }
 
+void _initialize_amd64_sol2_tdep ();
 void
-_initialize_amd64_sol2_tdep (void)
+_initialize_amd64_sol2_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
   GDB_OSABI_SOLARIS, amd64_sol2_init_abi);
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 157a5d0c3348..f5ec40f37e8c 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -3334,8 +3334,9 @@ amd64_target_description (uint64_t xcr0, bool segments)
   return *tdesc;
 }
 
+void _initialize_amd64_tdep ();
 void
-_initialize_amd64_tdep (void)
+_initialize_amd64_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_NONE,
   amd64_none_init_abi);
diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c
index 67b869110317..5b2c261aba75 100644
--- a/gdb/amd64-windows-nat.c
+++ b/gdb/amd64-windows-nat.c
@@ -95,8 +95,9 @@ amd64_windows_segment_register_p (int regnum)
   return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM;
 }
 
+void _initialize_amd64_windows_nat ();
 void
-_initialize_amd64_windows_nat (void)
+_initialize_amd64_windows_nat ()
 {
   windows_set_context_register_offsets (mappings);
   windows_set_segment_register_p (amd64_windows_segment_register_p);
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index e1e777c4355e..b2155f347a50 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -1245,8 +1245,9 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_auto_wide_charset (gdbarch, amd64_windows_auto_wide_charset);
 }
 
+void _initialize_amd64_windows_tdep ();
 void
-_initialize_amd64_windows_tdep (void)
+_initialize_amd64_windows_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_CYGWIN,
                           amd64_windows_init_abi);
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 28dd23196fd6..cf9e88cee512 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -614,8 +614,9 @@ breakpoint_changed (struct breakpoint *b)
   annotate_breakpoints_invalid ();
 }
 
+void _initialize_annotate ();
 void
-_initialize_annotate (void)
+_initialize_annotate ()
 {
   gdb::observers::breakpoint_created.attach (breakpoint_changed);
   gdb::observers::breakpoint_deleted.attach (breakpoint_changed);
diff --git a/gdb/arc-newlib-tdep.c b/gdb/arc-newlib-tdep.c
index 18e07d618856..70e2c5b0546c 100644
--- a/gdb/arc-newlib-tdep.c
+++ b/gdb/arc-newlib-tdep.c
@@ -56,8 +56,9 @@ arc_newlib_osabi_sniffer (bfd *abfd)
     return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_arc_newlib_tdep ();
 void
-_initialize_arc_newlib_tdep (void)
+_initialize_arc_newlib_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_arc, bfd_target_elf_flavour,
   arc_newlib_osabi_sniffer);
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 021cbb008e8a..13da0226f786 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -2145,8 +2145,9 @@ dump_arc_instruction_command (const char *args, int from_tty)
   arc_insn_dump (insn);
 }
 
+void _initialize_arc_tdep ();
 void
-_initialize_arc_tdep (void)
+_initialize_arc_tdep ()
 {
   gdbarch_register (bfd_arch_arc, arc_gdbarch_init, arc_dump_tdep);
 
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 55b115c13550..92d7153ccb26 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -1004,8 +1004,9 @@ default_get_pc_address_flags (frame_info *frame, CORE_ADDR pc)
   return "";
 }
 
+void _initialize_gdbarch_utils ();
 void
-_initialize_gdbarch_utils (void)
+_initialize_gdbarch_utils ()
 {
   add_setshow_enum_cmd ("endian", class_support,
  endian_enum, &set_endian_string,
diff --git a/gdb/arm-fbsd-nat.c b/gdb/arm-fbsd-nat.c
index 14160be0180d..3470f817a796 100644
--- a/gdb/arm-fbsd-nat.c
+++ b/gdb/arm-fbsd-nat.c
@@ -143,8 +143,9 @@ arm_fbsd_nat_target::read_description ()
   return desc;
 }
 
+void _initialize_arm_fbsd_nat ();
 void
-_initialize_arm_fbsd_nat (void)
+_initialize_arm_fbsd_nat ()
 {
   add_inf_child_target (&the_arm_fbsd_nat_target);
 }
diff --git a/gdb/arm-fbsd-tdep.c b/gdb/arm-fbsd-tdep.c
index ec0e9d58230b..417a805e672f 100644
--- a/gdb/arm-fbsd-tdep.c
+++ b/gdb/arm-fbsd-tdep.c
@@ -235,8 +235,9 @@ arm_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_software_single_step (gdbarch, arm_software_single_step);
 }
 
+void _initialize_arm_fbsd_tdep ();
 void
-_initialize_arm_fbsd_tdep (void)
+_initialize_arm_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_FREEBSD,
   arm_fbsd_init_abi);
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index 0b27281783f0..8bbaed5cf886 100644
--- a/gdb/arm-linux-nat.c
+++ b/gdb/arm-linux-nat.c
@@ -1299,8 +1299,9 @@ arm_linux_nat_target::low_new_fork (struct lwp_info *parent, pid_t child_pid)
   *child_state = *parent_state;
 }
 
+void _initialize_arm_linux_nat ();
 void
-_initialize_arm_linux_nat (void)
+_initialize_arm_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_arm_linux_nat_target;
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 8bfcea6c52f1..363e67161c84 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -2001,8 +2001,9 @@ arm_linux_init_abi (struct gdbarch_info info,
   set_gdbarch_gcc_target_options (gdbarch, arm_linux_gcc_target_options);
 }
 
+void _initialize_arm_linux_tdep ();
 void
-_initialize_arm_linux_tdep (void)
+_initialize_arm_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_LINUX,
   arm_linux_init_abi);
diff --git a/gdb/arm-nbsd-nat.c b/gdb/arm-nbsd-nat.c
index 4dacd577ba1c..1d058a99ac1a 100644
--- a/gdb/arm-nbsd-nat.c
+++ b/gdb/arm-nbsd-nat.c
@@ -444,8 +444,9 @@ static struct core_fns arm_netbsd_elfcore_fns =
   NULL
 };
 
+void _initialize_arm_netbsd_nat ();
 void
-_initialize_arm_netbsd_nat (void)
+_initialize_arm_netbsd_nat ()
 {
   add_inf_child_target (&the_arm_netbsd_nat_target);
 
diff --git a/gdb/arm-nbsd-tdep.c b/gdb/arm-nbsd-tdep.c
index 397d21d7f564..2642024022ee 100644
--- a/gdb/arm-nbsd-tdep.c
+++ b/gdb/arm-nbsd-tdep.c
@@ -85,8 +85,9 @@ arm_netbsd_elf_init_abi (struct gdbarch_info info,
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_arm_netbsd_tdep ();
 void
-_initialize_arm_netbsd_tdep (void)
+_initialize_arm_netbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_NETBSD,
                           arm_netbsd_elf_init_abi);
diff --git a/gdb/arm-obsd-tdep.c b/gdb/arm-obsd-tdep.c
index 3ef0957f9d5f..b3b1e2f7e66b 100644
--- a/gdb/arm-obsd-tdep.c
+++ b/gdb/arm-obsd-tdep.c
@@ -115,8 +115,9 @@ armobsd_init_abi (struct gdbarch_info info,
     }
 }
 
+void _initialize_armobsd_tdep ();
 void
-_initialize_armobsd_tdep (void)
+_initialize_armobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_OPENBSD,
   armobsd_init_abi);
diff --git a/gdb/arm-pikeos-tdep.c b/gdb/arm-pikeos-tdep.c
index 64c3640f06bb..a993b90e5de7 100644
--- a/gdb/arm-pikeos-tdep.c
+++ b/gdb/arm-pikeos-tdep.c
@@ -81,8 +81,9 @@ arm_pikeos_osabi_sniffer (bfd *abfd)
     return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_arm_pikeos_tdep ();
 void
-_initialize_arm_pikeos_tdep (void)
+_initialize_arm_pikeos_tdep ()
 {
   /* Register the sniffer for the PikeOS targets.  */
   gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_elf_flavour,
diff --git a/gdb/arm-symbian-tdep.c b/gdb/arm-symbian-tdep.c
index 6d8236c24222..b17f9c60eb94 100644
--- a/gdb/arm-symbian-tdep.c
+++ b/gdb/arm-symbian-tdep.c
@@ -119,8 +119,9 @@ arm_symbian_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_SYMBIAN;
 }
 
+void _initialize_arm_symbian_tdep ();
 void
-_initialize_arm_symbian_tdep (void)
+_initialize_arm_symbian_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_arm,
   bfd_target_elf_flavour,
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 91701c25d205..0e72bcc651a4 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9479,8 +9479,9 @@ static void arm_record_test (void);
 }
 #endif
 
+void _initialize_arm_tdep ();
 void
-_initialize_arm_tdep (void)
+_initialize_arm_tdep ()
 {
   long length;
   int i, j;
diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c
index 188174ab9446..5971b29bd596 100644
--- a/gdb/arm-wince-tdep.c
+++ b/gdb/arm-wince-tdep.c
@@ -154,8 +154,9 @@ arm_wince_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_arm_wince_tdep ();
 void
-_initialize_arm_wince_tdep (void)
+_initialize_arm_wince_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_coff_flavour,
                                   arm_wince_osabi_sniffer);
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 5a9f47f0785a..36ec0d11b403 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -1530,8 +1530,9 @@ found and/or loaded."),
   return &retval;
 }
 
+void _initialize_auto_load ();
 void
-_initialize_auto_load (void)
+_initialize_auto_load ()
 {
   struct cmd_list_element *cmd;
   char *scripts_directory_help, *gdb_name_help, *python_name_help;
diff --git a/gdb/auxv.c b/gdb/auxv.c
index e8925cf70e70..eb1233527e50 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -546,8 +546,9 @@ info_auxv_command (const char *cmd, int from_tty)
     }
 }
 
+void _initialize_auxv ();
 void
-_initialize_auxv (void)
+_initialize_auxv ()
 {
   add_info ("auxv", info_auxv_command,
     _("Display the inferior's auxiliary vector.\n\
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index 381c7903fc60..d823c87a3cf8 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -1616,8 +1616,9 @@ avr_io_reg_read_command (const char *args, int from_tty)
     }
 }
 
+void _initialize_avr_tdep ();
 void
-_initialize_avr_tdep (void)
+_initialize_avr_tdep ()
 {
   register_gdbarch_init (bfd_arch_avr, avr_gdbarch_init);
 
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index a77c770aad89..14765bd1d865 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -2743,8 +2743,9 @@ maint_agent_printf_command (const char *cmdrest, int from_tty)
 
 /* Initialization code.  */
 
+void _initialize_ax_gdb ();
 void
-_initialize_ax_gdb (void)
+_initialize_ax_gdb ()
 {
   add_cmd ("agent", class_maintenance, agent_command,
    _("\
diff --git a/gdb/bfin-linux-tdep.c b/gdb/bfin-linux-tdep.c
index 147223b283e8..f77f099ccb46 100644
--- a/gdb/bfin-linux-tdep.c
+++ b/gdb/bfin-linux-tdep.c
@@ -161,8 +161,9 @@ bfin_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                   bfin_linux_get_syscall_number);
 }
 
+void _initialize_bfin_linux_tdep ();
 void
-_initialize_bfin_linux_tdep (void)
+_initialize_bfin_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_bfin, 0, GDB_OSABI_LINUX,
                           bfin_linux_init_abi);
diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c
index cb5650d5d93b..23591d4a5f0a 100644
--- a/gdb/bfin-tdep.c
+++ b/gdb/bfin-tdep.c
@@ -833,8 +833,9 @@ bfin_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_bfin_tdep ();
 void
-_initialize_bfin_tdep (void)
+_initialize_bfin_tdep ()
 {
   register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init);
 }
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c
index c645746aa834..e3e6f6fd8c9d 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -424,8 +424,9 @@ initialize_signal_catchpoint_ops (void)
   ops->explains_signal = signal_catchpoint_explains_signal;
 }
 
+void _initialize_break_catch_sig ();
 void
-_initialize_break_catch_sig (void)
+_initialize_break_catch_sig ()
 {
   initialize_signal_catchpoint_ops ();
 
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c
index 553c01cb3203..7e98a293900e 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -599,8 +599,9 @@ initialize_syscall_catchpoint_ops (void)
   ops->print_recreate = print_recreate_catch_syscall;
 }
 
+void _initialize_break_catch_syscall ();
 void
-_initialize_break_catch_syscall (void)
+_initialize_break_catch_syscall ()
 {
   initialize_syscall_catchpoint_ops ();
 
diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c
index 87b38b3b6017..07dcc7dc0e73 100644
--- a/gdb/break-catch-throw.c
+++ b/gdb/break-catch-throw.c
@@ -532,8 +532,9 @@ initialize_throw_catchpoint_ops (void)
   ops->allocate_location = allocate_location_exception_catchpoint;
 }
 
+void _initialize_break_catch_throw ();
 void
-_initialize_break_catch_throw (void)
+_initialize_break_catch_throw ()
 {
   initialize_throw_catchpoint_ops ();
 
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 5b734abf1c16..a7a378131a9b 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -15409,8 +15409,9 @@ static struct cmd_list_element *enablebreaklist = NULL;
 
 cmd_list_element *commands_cmd_element = nullptr;
 
+void _initialize_breakpoint ();
 void
-_initialize_breakpoint (void)
+_initialize_breakpoint ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c
index a8622a8b0e47..15d538c16db5 100644
--- a/gdb/bsd-uthread.c
+++ b/gdb/bsd-uthread.c
@@ -544,8 +544,9 @@ bsd_uthread_target::pid_to_str (ptid_t ptid)
   return normal_pid_to_str (ptid);
 }
 
+void _initialize_bsd_uthread ();
 void
-_initialize_bsd_uthread (void)
+_initialize_bsd_uthread ()
 {
   bsd_uthread_data = gdbarch_data_register_pre_init (bsd_uthread_init);
 
diff --git a/gdb/btrace.c b/gdb/btrace.c
index a91a67681302..0c7becd34906 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -3471,8 +3471,9 @@ show_maint_btrace_pt_skip_pad  (struct ui_file *file, int from_tty,
 
 /* Initialize btrace maintenance commands.  */
 
+void _initialize_btrace ();
 void
-_initialize_btrace (void)
+_initialize_btrace ()
 {
   add_cmd ("btrace", class_maintenance, maint_info_btrace_cmd,
    _("Info about branch tracing data."), &maintenanceinfolist);
diff --git a/gdb/charset.c b/gdb/charset.c
index 1af43fffa058..480ed366a492 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -994,8 +994,9 @@ intermediate_encoding (void)
 
 #endif /* USE_INTERMEDIATE_ENCODING_FUNCTION */
 
+void _initialize_charset ();
 void
-_initialize_charset (void)
+_initialize_charset ()
 {
   /* The first element is always "auto".  */
   charsets.charsets.push_back (xstrdup ("auto"));
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index c2ba3a4238ab..6f324410e169 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -2113,8 +2113,9 @@ gdb_maint_setting_str_internal_fn (struct gdbarch *gdbarch,
  gdbarch);
 }
 
+void _initialize_cli_cmds ();
 void
-_initialize_cli_cmds (void)
+_initialize_cli_cmds ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 182e6c71667b..ae047ac75de8 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -622,8 +622,9 @@ binary_append_command (const char *cmd, int from_tty)
      gdb_stdout);
 }
 
+void _initialize_cli_dump ();
 void
-_initialize_cli_dump (void)
+_initialize_cli_dump ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c
index acec367b5f3d..8cdd2d21c007 100644
--- a/gdb/cli/cli-interp.c
+++ b/gdb/cli/cli-interp.c
@@ -467,8 +467,9 @@ cli_interp_factory (const char *name)
 
 /* Standard gdb initialization hook.  */
 
+void _initialize_cli_interp ();
 void
-_initialize_cli_interp (void)
+_initialize_cli_interp ()
 {
   interp_factory_register (INTERP_CONSOLE, cli_interp_factory);
 
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index 247334cb52da..d7c1b779bfe4 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -202,8 +202,9 @@ show_logging_command (const char *args, int from_tty)
     printf_unfiltered (_("Debug output will be logged and displayed.\n"));
 }
 
+void _initialize_cli_logging ();
 void
-_initialize_cli_logging (void)
+_initialize_cli_logging ()
 {
   static struct cmd_list_element *set_logging_cmdlist, *show_logging_cmdlist;
 
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index f70ebed20210..c9d23789068d 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1667,8 +1667,9 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name,
 
 }
 
+void _initialize_cli_script ();
 void
-_initialize_cli_script (void)
+_initialize_cli_script ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index f3d98ae40910..917a7f6c8fe5 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -313,6 +313,7 @@ set_style_name (const char *name)
   return result;
 }
 
+void _initialize_cli_style ();
 void
 _initialize_cli_style ()
 {
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index b7f7b81ca882..047f2e5ea4c0 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -691,8 +691,9 @@ show_debug_coff_pe_read (struct ui_file *file, int from_tty,
 
 /* Adds "Set/show debug coff_pe_read" commands.  */
 
+void _initialize_coff_pe_read ();
 void
-_initialize_coff_pe_read (void)
+_initialize_coff_pe_read ()
 {
   add_setshow_zuinteger_cmd ("coff-pe-read", class_maintenance,
      &debug_coff_pe_read,
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 60efb59b1a34..227cf866b844 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -2188,8 +2188,9 @@ static const struct sym_fns coff_sym_fns =
   &psym_functions
 };
 
+void _initialize_coffread ();
 void
-_initialize_coffread (void)
+_initialize_coffread ()
 {
   add_symtab_fns (bfd_target_coff_flavour, &coff_sym_fns);
 
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c
index 89c3c7234d42..a179bd6fe527 100644
--- a/gdb/compile/compile-cplus-types.c
+++ b/gdb/compile/compile-cplus-types.c
@@ -1404,6 +1404,7 @@ gcc_cp_plugin::pop_binding_level (const char *debug_name)
   return pop_binding_level ();
 }
 
+void _initialize_compile_cplus_types ();
 void
 _initialize_compile_cplus_types ()
 {
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c
index a5978b457994..8d134d9cf18e 100644
--- a/gdb/compile/compile.c
+++ b/gdb/compile/compile.c
@@ -957,8 +957,9 @@ compile_instance::compile (const char *filename, int verbose_level)
 /* See compile.h.  */
 cmd_list_element *compile_cmd_element = nullptr;
 
+void _initialize_compile ();
 void
-_initialize_compile (void)
+_initialize_compile ()
 {
   struct cmd_list_element *c = NULL;
 
diff --git a/gdb/complaints.c b/gdb/complaints.c
index bda5a998e0bd..45f3e5027d87 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -74,8 +74,9 @@ complaints_show_value (struct ui_file *file, int from_tty,
     value);
 }
 
+void _initialize_complaints ();
 void
-_initialize_complaints (void)
+_initialize_complaints ()
 {
   add_setshow_zinteger_cmd ("complaints", class_support,
     &stop_whining, _("\
diff --git a/gdb/completer.c b/gdb/completer.c
index 3a17445004d9..619fb8a0285f 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -2935,8 +2935,9 @@ gdb_display_match_list (char **matches, int len, int max,
     }
 }
 
+void _initialize_completer ();
 void
-_initialize_completer (void)
+_initialize_completer ()
 {
   add_setshow_zuinteger_unlimited_cmd ("max-completions", no_class,
        &max_completions, _("\
diff --git a/gdb/copying.c b/gdb/copying.c
index 8e4077ccb910..63183450a0e0 100644
--- a/gdb/copying.c
+++ b/gdb/copying.c
@@ -640,8 +640,9 @@ show_warranty_command (const char *ignore, int from_tty)
   printf_filtered ("\n");
 }
 
+void _initialize_copying ();
 void
-_initialize_copying (void)
+_initialize_copying ()
 {
   add_cmd ("copying", no_set_class, show_copying_command,
    _("Conditions for redistributing copies of GDB."),
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 498628c5af6a..3b9f8c760527 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -478,8 +478,9 @@ set_gnutarget (const char *newtarget)
   set_gnutarget_command (NULL, 0, NULL);
 }
 
+void _initialize_core ();
 void
-_initialize_core (void)
+_initialize_core ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/corelow.c b/gdb/corelow.c
index c53bf1df8fd8..f162a1b7de0b 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -994,8 +994,9 @@ core_target::info_proc (const char *args, enum info_proc_what request)
   return true;
 }
 
+void _initialize_corelow ();
 void
-_initialize_corelow (void)
+_initialize_corelow ()
 {
   add_target (core_target_info, core_target_open, filename_completer);
 }
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index fd967c3096b8..6997a7bdbe9b 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -391,8 +391,9 @@ show_cp_abi_cmd (const char *args, int from_tty)
   uiout->text (").\n");
 }
 
+void _initialize_cp_abi ();
 void
-_initialize_cp_abi (void)
+_initialize_cp_abi ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index ad7e3bcc3b74..3a2100d84cf5 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -1061,8 +1061,9 @@ maintenance_cplus_namespace (const char *args, int from_tty)
   printf_unfiltered (_("The `maint namespace' command was removed.\n"));
 }
 
+void _initialize_cp_namespace ();
 void
-_initialize_cp_namespace (void)
+_initialize_cp_namespace ()
 {
   struct cmd_list_element *cmd;
 
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index c1d62f1711ef..91e7d2ddc686 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -2163,8 +2163,9 @@ info_vtbl_command (const char *arg, int from_tty)
   cplus_print_vtable (value);
 }
 
+void _initialize_cp_support ();
 void
-_initialize_cp_support (void)
+_initialize_cp_support ()
 {
   add_prefix_cmd ("cplus", class_maintenance,
   maint_cplus_command,
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 9f29eee13a01..288ebafec728 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -789,8 +789,9 @@ cp_print_class_member (const gdb_byte *valaddr, struct type *type,
 }
 
 
+void _initialize_cp_valprint ();
 void
-_initialize_cp_valprint (void)
+_initialize_cp_valprint ()
 {
   obstack_begin (&dont_print_stat_array_obstack,
  32 * sizeof (struct type *));
diff --git a/gdb/cris-linux-tdep.c b/gdb/cris-linux-tdep.c
index 4ae127b8ec03..9093cc300f4e 100644
--- a/gdb/cris-linux-tdep.c
+++ b/gdb/cris-linux-tdep.c
@@ -47,8 +47,9 @@ cris_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
 }
 
+void _initialize_cris_linux_tdep ();
 void
-_initialize_cris_linux_tdep (void)
+_initialize_cris_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_cris, 0, GDB_OSABI_LINUX,
   cris_linux_init_abi);
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 0b2fb91f8cce..22b4db917ca0 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3829,8 +3829,9 @@ static struct core_fns cris_elf_core_fns =
   NULL                                  /* next */
 };
 
+void _initialize_cris_tdep ();
 void
-_initialize_cris_tdep (void)
+_initialize_cris_tdep ()
 {
   gdbarch_register (bfd_arch_cris, cris_gdbarch_init, cris_dump_tdep);
   
diff --git a/gdb/csky-linux-tdep.c b/gdb/csky-linux-tdep.c
index b52207948876..fb4310204463 100644
--- a/gdb/csky-linux-tdep.c
+++ b/gdb/csky-linux-tdep.c
@@ -255,8 +255,9 @@ csky_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  &csky_linux_rt_sigreturn_tramp_frame);
 }
 
+void _initialize_csky_linux_tdep ();
 void
-_initialize_csky_linux_tdep (void)
+_initialize_csky_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_csky, 0, GDB_OSABI_LINUX,
   csky_linux_init_abi);
diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c
index f720a053fbc3..583298ce74c8 100644
--- a/gdb/csky-tdep.c
+++ b/gdb/csky-tdep.c
@@ -2240,8 +2240,9 @@ csky_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_csky_tdep ();
 void
-_initialize_csky_tdep (void)
+_initialize_csky_tdep ()
 {
 
   register_gdbarch_init (bfd_arch_csky, csky_gdbarch_init);
diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index ebf1eec6a576..bfca2703c552 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -1475,7 +1475,8 @@ elfctf_build_psymtabs (struct objfile *of)
   scan_partial_symbols (fp, of);
 }
 
+void _initialize_ctfread ();
 void
-_initialize_ctfread (void)
+_initialize_ctfread ()
 {
 }
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 7ed5ad4a9ee7..76d173b61eab 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -344,8 +344,9 @@ builtin_d_type (struct gdbarch *gdbarch)
   return (const struct builtin_d_type *) gdbarch_data (gdbarch, d_type_data);
 }
 
+void _initialize_d_language ();
 void
-_initialize_d_language (void)
+_initialize_d_language ()
 {
   d_type_data = gdbarch_data_register_post_init (build_d_types);
 }
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index d800309686d3..93d1554b9770 100644
--- a/gdb/darwin-nat-info.c
+++ b/gdb/darwin-nat-info.c
@@ -838,8 +838,9 @@ info_mach_exceptions_command (const char *args, int from_tty)
     }
 }
 
+void _initialize_darwin_info_commands ();
 void
-_initialize_darwin_info_commands (void)
+_initialize_darwin_info_commands ()
 {
   add_info ("mach-tasks", info_mach_tasks_command,
             _("Get list of tasks in system."));
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 2a33a7d522f2..9baa1e91d539 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -2482,6 +2482,7 @@ darwin_nat_target::supports_multi_process ()
   return true;
 }
 
+void _initialize_darwin_nat ();
 void
 _initialize_darwin_nat ()
 {
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 0909c67ccbb4..bec622a10f5f 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -3180,8 +3180,9 @@ static const struct sym_fns aout_sym_fns =
   &psym_functions
 };
 
+void _initialize_dbxread ();
 void
-_initialize_dbxread (void)
+_initialize_dbxread ()
 {
   add_symtab_fns (bfd_target_aout_flavour, &aout_sym_fns);
 }
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 76d14a2443dd..f018882bf95d 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -684,8 +684,9 @@ show_dcache_command (const char *args, int from_tty)
   cmd_show_list (dcache_show_list, from_tty, "");
 }
 
+void _initialize_dcache ();
 void
-_initialize_dcache (void)
+_initialize_dcache ()
 {
   add_setshow_boolean_cmd ("remotecache", class_support,
    &dcache_enabled_p, _("\
diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c
index ab6058c2a331..b63a35ab1e5a 100644
--- a/gdb/disasm-selftests.c
+++ b/gdb/disasm-selftests.c
@@ -210,8 +210,9 @@ memory_error_test (struct gdbarch *gdbarch)
 } // namespace selftests
 #endif /* GDB_SELF_TEST */
 
+void _initialize_disasm_selftests ();
 void
-_initialize_disasm_selftests (void)
+_initialize_disasm_selftests ()
 {
 #if GDB_SELF_TEST
   selftests::register_test_foreach_arch ("print_one_insn",
diff --git a/gdb/disasm.c b/gdb/disasm.c
index 39052f7fd36a..7dfbd2fb4721 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -1128,8 +1128,9 @@ disassembler_options_completer (struct cmd_list_element *ignore,
 
 /* Initialization code.  */
 
+void _initialize_disasm ();
 void
-_initialize_disasm (void)
+_initialize_disasm ()
 {
   struct cmd_list_element *cmd;
 
diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
index 85f6c01b6ab0..71d627bcbd07 100644
--- a/gdb/dtrace-probe.c
+++ b/gdb/dtrace-probe.c
@@ -897,8 +897,9 @@ info_probes_dtrace_command (const char *arg, int from_tty)
   info_probes_for_spops (arg, from_tty, &dtrace_static_probe_ops);
 }
 
+void _initialize_dtrace_probe ();
 void
-_initialize_dtrace_probe (void)
+_initialize_dtrace_probe ()
 {
   all_static_probe_ops.push_back (&dtrace_static_probe_ops);
 
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 2fe578ee6bfd..d47cfd2d9a2d 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -431,8 +431,9 @@ maintenance_print_dummy_frames (const char *args, int from_tty)
     }
 }
 
+void _initialize_dummy_frame ();
 void
-_initialize_dummy_frame (void)
+_initialize_dummy_frame ()
 {
   add_cmd ("dummy-frames", class_maintenance, maintenance_print_dummy_frames,
    _("Print the contents of the internal dummy-frame stack."),
diff --git a/gdb/dwarf-index-cache.c b/gdb/dwarf-index-cache.c
index a2f0c42aad4b..977fcc1b20c2 100644
--- a/gdb/dwarf-index-cache.c
+++ b/gdb/dwarf-index-cache.c
@@ -325,6 +325,7 @@ show_index_cache_stats_command (const char *arg, int from_tty)
      indent, global_index_cache.n_misses ());
 }
 
+void _initialize_index_cache ();
 void
 _initialize_index_cache ()
 {
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index f2abe70e1554..fd222628cf56 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -1781,6 +1781,7 @@ save_gdb_index_command (const char *arg, int from_tty)
     }
 }
 
+void _initialize_dwarf_index_write ();
 void
 _initialize_dwarf_index_write ()
 {
diff --git a/gdb/dwarf2-frame-tailcall.c b/gdb/dwarf2-frame-tailcall.c
index 9c167c1d96fb..fca1d3d0235b 100644
--- a/gdb/dwarf2-frame-tailcall.c
+++ b/gdb/dwarf2-frame-tailcall.c
@@ -467,8 +467,9 @@ const struct frame_unwind dwarf2_tailcall_frame_unwind =
   tailcall_frame_prev_arch
 };
 
+void _initialize_tailcall_frame ();
 void
-_initialize_tailcall_frame (void)
+_initialize_tailcall_frame ()
 {
   cache_htab = htab_create_alloc (50, cache_hash, cache_eq, NULL, xcalloc,
   xfree);
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index baa47c943898..a043d48217bf 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -2354,8 +2354,9 @@ show_dwarf_unwinders_enabled_p (struct ui_file *file, int from_tty,
     value);
 }
 
+void _initialize_dwarf2_frame ();
 void
-_initialize_dwarf2_frame (void)
+_initialize_dwarf2_frame ()
 {
   dwarf2_frame_data = gdbarch_data_register_pre_init (dwarf2_frame_init);
 
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 3c81cba3dfc1..ad82cbec2f70 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -1419,8 +1419,9 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr,
   gdb_assert (this->recursion_depth >= 0);
 }
 
+void _initialize_dwarf2expr ();
 void
-_initialize_dwarf2expr (void)
+_initialize_dwarf2expr ()
 {
   dwarf_arch_cookie
     = gdbarch_data_register_post_init (dwarf_gdbarch_types_init);
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 99cac03a5474..1fe6829100db 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -4514,8 +4514,9 @@ const struct symbol_computed_ops dwarf2_loclist_funcs = {
   loclist_generate_c_location
 };
 
+void _initialize_dwarf2loc ();
 void
-_initialize_dwarf2loc (void)
+_initialize_dwarf2loc ()
 {
   add_setshow_zuinteger_cmd ("entry-values", class_maintenance,
      &entry_values_debug,
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 04979f3d12fa..216601a61ab5 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -26133,8 +26133,9 @@ show_check_physname (struct ui_file *file, int from_tty,
     value);
 }
 
+void _initialize_dwarf2_read ();
 void
-_initialize_dwarf2_read (void)
+_initialize_dwarf2_read ()
 {
   add_prefix_cmd ("dwarf", class_maintenance, set_dwarf_cmd, _("\
 Set DWARF specific variables.\n\
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 618e4cd566ca..9a6ce0ee3716 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1469,8 +1469,9 @@ static const struct gnu_ifunc_fns elf_gnu_ifunc_fns =
   elf_gnu_ifunc_resolver_return_stop
 };
 
+void _initialize_elfread ();
 void
-_initialize_elfread (void)
+_initialize_elfread ()
 {
   add_symtab_fns (bfd_target_elf_flavour, &elf_sym_fns);
 
diff --git a/gdb/exec.c b/gdb/exec.c
index 468f9f57f76c..eb07b51dda74 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -1063,8 +1063,9 @@ exec_target::find_memory_regions (find_memory_region_ftype func, void *data)
   return objfile_find_memory_regions (this, func, data);
 }
 
+void _initialize_exec ();
 void
-_initialize_exec (void)
+_initialize_exec ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/extension.c b/gdb/extension.c
index f9418de43115..947e440c12c8 100644
--- a/gdb/extension.c
+++ b/gdb/extension.c
@@ -934,8 +934,9 @@ ext_lang_before_prompt (const char *current_gdb_prompt)
     }
 }
 
+void _initialize_extension ();
 void
-_initialize_extension (void)
+_initialize_extension ()
 {
   gdb::observers::before_prompt.attach (ext_lang_before_prompt);
 }
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index c7c47cf8dcfe..e767f52fc210 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -761,8 +761,9 @@ builtin_f_type (struct gdbarch *gdbarch)
   return (const struct builtin_f_type *) gdbarch_data (gdbarch, f_type_data);
 }
 
+void _initialize_f_language ();
 void
-_initialize_f_language (void)
+_initialize_f_language ()
 {
   f_type_data = gdbarch_data_register_post_init (build_fortran_types);
 }
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 60611fef4948..168957f6fb85 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -479,8 +479,9 @@ info_common_command (const char *comname, int from_tty)
     }
 }
 
+void _initialize_f_valprint ();
 void
-_initialize_f_valprint (void)
+_initialize_f_valprint ()
 {
   add_info ("common", info_common_command,
     _("Print out the values contained in a Fortran COMMON block."));
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 698d1f0b35e1..0e4afb29a009 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1669,8 +1669,9 @@ fbsd_nat_target::set_syscall_catchpoint (int pid, bool needed,
 #endif
 #endif
 
+void _initialize_fbsd_nat ();
 void
-_initialize_fbsd_nat (void)
+_initialize_fbsd_nat ()
 {
 #ifdef PT_LWPINFO
   add_setshow_boolean_cmd ("fbsd-lwp", class_maintenance,
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index 9e5d23a4bc8d..bc1b5afd020c 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -2085,8 +2085,9 @@ fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_get_syscall_number (gdbarch, fbsd_get_syscall_number);
 }
 
+void _initialize_fbsd_tdep ();
 void
-_initialize_fbsd_tdep (void)
+_initialize_fbsd_tdep ()
 {
   fbsd_gdbarch_data_handle =
     gdbarch_data_register_post_init (init_fbsd_gdbarch_data);
diff --git a/gdb/filesystem.c b/gdb/filesystem.c
index 359b42f1bd15..94a1a9cac056 100644
--- a/gdb/filesystem.c
+++ b/gdb/filesystem.c
@@ -76,8 +76,9 @@ is \"%s\".\n"),
       value);
 }
 
+void _initialize_filesystem ();
 void
-_initialize_filesystem (void)
+_initialize_filesystem ()
 {
   add_setshow_enum_cmd ("target-file-system-kind",
  class_files,
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 1f3b3dfc2a33..c8631571f209 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -280,8 +280,9 @@ find_command (const char *args, int from_tty)
      found_count > 1 ? "s" : "");
 }
 
+void _initialize_mem_search ();
 void
-_initialize_mem_search (void)
+_initialize_mem_search ()
 {
   add_cmd ("find", class_vars, find_command, _("\
 Search memory for a sequence of bytes.\n\
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 987c8e301a75..5cf1cd4137b8 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -1088,8 +1088,9 @@ copy_integer_to_size_test ()
 
 #endif
 
+void _initialize_findvar ();
 void
-_initialize_findvar (void)
+_initialize_findvar ()
 {
 #if GDB_SELF_TEST
   selftests::register_test
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 65a189e04878..010414cc781b 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -157,8 +157,9 @@ show_startup_with_shell (struct ui_file *file, int from_tty,
     value);
 }
 
+void _initialize_fork_child ();
 void
-_initialize_fork_child (void)
+_initialize_fork_child ()
 {
   add_setshow_filename_cmd ("exec-wrapper", class_run, &exec_wrapper, _("\
 Set a wrapper for running programs.\n\
diff --git a/gdb/frame-base.c b/gdb/frame-base.c
index b36c5e3bac4f..9d8dd52daa7a 100644
--- a/gdb/frame-base.c
+++ b/gdb/frame-base.c
@@ -121,8 +121,9 @@ frame_base_find_by_frame (struct frame_info *this_frame)
   return table->default_base;
 }
 
+void _initialize_frame_base ();
 void
-_initialize_frame_base (void)
+_initialize_frame_base ()
 {
   frame_base_data = gdbarch_data_register_pre_init (frame_base_init);
 }
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c
index 079a411c2055..35f2e82c57dd 100644
--- a/gdb/frame-unwind.c
+++ b/gdb/frame-unwind.c
@@ -305,8 +305,9 @@ frame_unwind_got_address (struct frame_info *frame, int regnum,
   return reg_val;
 }
 
+void _initialize_frame_unwind ();
 void
-_initialize_frame_unwind (void)
+_initialize_frame_unwind ()
 {
   frame_unwind_data = gdbarch_data_register_pre_init (frame_unwind_init);
 }
diff --git a/gdb/frame.c b/gdb/frame.c
index c746a6a231ed..9ec93eb4c740 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -2958,8 +2958,9 @@ the rest of the stack trace."),
   },
 };
 
+void _initialize_frame ();
 void
-_initialize_frame (void)
+_initialize_frame ()
 {
   obstack_init (&frame_cache_obstack);
 
diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c
index 54ea43478b23..5014c3ebbf3d 100644
--- a/gdb/frv-linux-tdep.c
+++ b/gdb/frv-linux-tdep.c
@@ -481,8 +481,9 @@ frv_linux_elf_osabi_sniffer (bfd *abfd)
     return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_frv_linux_tdep ();
 void
-_initialize_frv_linux_tdep (void)
+_initialize_frv_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_frv, 0, GDB_OSABI_LINUX,
   frv_linux_init_abi);
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c
index ca5ffe3c1a13..ae383e7aaf8f 100644
--- a/gdb/frv-tdep.c
+++ b/gdb/frv-tdep.c
@@ -1573,8 +1573,9 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_frv_tdep ();
 void
-_initialize_frv_tdep (void)
+_initialize_frv_tdep ()
 {
   register_gdbarch_init (bfd_arch_frv, frv_gdbarch_init);
 }
diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c
index 2d18b0ac3f1b..99ef69de770f 100644
--- a/gdb/ft32-tdep.c
+++ b/gdb/ft32-tdep.c
@@ -616,8 +616,9 @@ ft32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
 /* Register this machine's init routine.  */
 
+void _initialize_ft32_tdep ();
 void
-_initialize_ft32_tdep (void)
+_initialize_ft32_tdep ()
 {
   register_gdbarch_init (bfd_arch_ft32, ft32_gdbarch_init);
 }
diff --git a/gdb/gcore.c b/gdb/gcore.c
index d3f1b47644aa..d12011e9021d 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -590,8 +590,9 @@ gcore_memory_sections (bfd *obfd)
   return 1;
 }
 
+void _initialize_gcore ();
 void
-_initialize_gcore (void)
+_initialize_gcore ()
 {
   add_com ("generate-core-file", class_files, gcore_command, _("\
 Save a core file with the current state of the debugged process.\n\
diff --git a/gdb/gdb-demangle.c b/gdb/gdb-demangle.c
index debe395e9315..6a664e99bfc4 100644
--- a/gdb/gdb-demangle.c
+++ b/gdb/gdb-demangle.c
@@ -212,8 +212,9 @@ demangle_command (const char *args, int from_tty)
     error (_("Can't demangle \"%s\""), name);
 }
 
+void _initialize_gdb_demangle ();
 void
-_initialize_gdb_demangle (void)
+_initialize_gdb_demangle ()
 {
   int i, ndems;
 
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index c82191ee97b1..5a6dee2d51a8 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -962,8 +962,9 @@ maintenance_info_bfds (const char *arg, int from_tty)
   htab_traverse (all_bfds, print_one_bfd, uiout);
 }
 
+void _initialize_gdb_bfd ();
 void
-_initialize_gdb_bfd (void)
+_initialize_gdb_bfd ()
 {
   all_bfds = htab_create_alloc (10, htab_hash_pointer, htab_eq_pointer,
  NULL, xcalloc, xfree);
diff --git a/gdb/gdbarch-selftests.c b/gdb/gdbarch-selftests.c
index 47f4d99d18c9..c99a900dbfb2 100644
--- a/gdb/gdbarch-selftests.c
+++ b/gdb/gdbarch-selftests.c
@@ -160,8 +160,9 @@ register_to_value_test (struct gdbarch *gdbarch)
 } // namespace selftests
 #endif /* GDB_SELF_TEST */
 
+void _initialize_gdbarch_selftests ();
 void
-_initialize_gdbarch_selftests (void)
+_initialize_gdbarch_selftests ()
 {
 #if GDB_SELF_TEST
   selftests::register_test_foreach_arch ("register_to_value",
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index ab9bf1f5f485..cc8569f5c959 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -5548,8 +5548,9 @@ target_gdbarch (void)
   return current_inferior ()->gdbarch;
 }
 
+void _initialize_gdbarch ();
 void
-_initialize_gdbarch (void)
+_initialize_gdbarch ()
 {
   add_setshow_zuinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\
 Set architecture debugging."), _("\
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 827c622dbf4b..1d5bfd4bc205 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5694,8 +5694,9 @@ objfile_type (struct objfile *objfile)
   return objfile_type;
 }
 
+void _initialize_gdbtypes ();
 void
-_initialize_gdbtypes (void)
+_initialize_gdbtypes ()
 {
   gdbtypes_data = gdbarch_data_register_post_init (gdbtypes_post_init);
 
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 74a96f1154f5..3b438a9a4346 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3500,8 +3500,9 @@ to the thread's initial suspend-count when gdb notices the threads."),
    &thread_cmd_list);
 }
 
+void _initialize_gnu_nat ();
 void
-_initialize_gnu_nat (void)
+_initialize_gnu_nat ()
 {
   proc_server = getproc ();
 
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c
index 987f1c33743c..a9b2e0aa8c00 100644
--- a/gdb/gnu-v2-abi.c
+++ b/gdb/gnu-v2-abi.c
@@ -413,8 +413,9 @@ init_gnuv2_ops (void)
   gnu_v2_abi_ops.baseclass_offset = gnuv2_baseclass_offset;
 }
 
+void _initialize_gnu_v2_abi ();
 void
-_initialize_gnu_v2_abi (void)
+_initialize_gnu_v2_abi ()
 {
   init_gnuv2_ops ();
   register_cp_abi (&gnu_v2_abi_ops);
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 88543396526b..89574ec9ed51 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1568,8 +1568,9 @@ init_gnuv3_ops (void)
   gnu_v3_abi_ops.pass_by_reference = gnuv3_pass_by_reference;
 }
 
+void _initialize_gnu_v3_abi ();
 void
-_initialize_gnu_v3_abi (void)
+_initialize_gnu_v3_abi ()
 {
   init_gnuv3_ops ();
 
diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index fe60b2904111..9ad456f72e8e 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -682,8 +682,9 @@ builtin_go_type (struct gdbarch *gdbarch)
   return (const struct builtin_go_type *) gdbarch_data (gdbarch, go_type_data);
 }
 
+void _initialize_go_language ();
 void
-_initialize_go_language (void)
+_initialize_go_language ()
 {
   go_type_data = gdbarch_data_register_post_init (build_go_types);
 }
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index bcb400a3e1d7..b3ebd6cf2295 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -2081,8 +2081,9 @@ go32_info_dos_command (const char *args, int from_tty)
   help_list (info_dos_cmdlist, "info dos ", class_info, gdb_stdout);
 }
 
+void _initialize_go32_nat ();
 void
-_initialize_go32_nat (void)
+_initialize_go32_nat ()
 {
   x86_dr_low.set_control = go32_set_dr7;
   x86_dr_low.set_addr = go32_set_dr;
diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c
index 506836157ee3..4b0103c93464 100644
--- a/gdb/guile/guile.c
+++ b/gdb/guile/guile.c
@@ -792,8 +792,9 @@ message == an error message without a stack will be printed."),
  &set_guile_list, &show_guile_list);
 }
 
+void _initialize_guile ();
 void
-_initialize_guile (void)
+_initialize_guile ()
 {
   install_gdb_commands ();
 
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index f4996ee35a77..5e8ba94b72f8 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -1377,8 +1377,9 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
 }
 
+void _initialize_h8300_tdep ();
 void
-_initialize_h8300_tdep (void)
+_initialize_h8300_tdep ()
 {
   register_gdbarch_init (bfd_arch_h8300, h8300_gdbarch_init);
 }
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c
index 5a019d5a5569..f352c25a3e63 100644
--- a/gdb/hppa-linux-nat.c
+++ b/gdb/hppa-linux-nat.c
@@ -384,8 +384,9 @@ fill_fpregset (const struct regcache *regcache,
    }
 }
 
+void _initialize_hppa_linux_nat ();
 void
-_initialize_hppa_linux_nat (void)
+_initialize_hppa_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_hppa_linux_nat_target;
diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c
index 159f572d4898..51c84d8e4f0d 100644
--- a/gdb/hppa-linux-tdep.c
+++ b/gdb/hppa-linux-tdep.c
@@ -526,8 +526,9 @@ hppa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }
 
+void _initialize_hppa_linux_tdep ();
 void
-_initialize_hppa_linux_tdep (void)
+_initialize_hppa_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_LINUX,
   hppa_linux_init_abi);
diff --git a/gdb/hppa-nbsd-nat.c b/gdb/hppa-nbsd-nat.c
index 5b8e8f03277b..d8255030ddf0 100644
--- a/gdb/hppa-nbsd-nat.c
+++ b/gdb/hppa-nbsd-nat.c
@@ -228,8 +228,9 @@ hppa_nbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     }
 }
 
+void _initialize_hppanbsd_nat ();
 void
-_initialize_hppanbsd_nat (void)
+_initialize_hppanbsd_nat ()
 {
   add_inf_child_target (&the_hppa_nbsd_nat_target);
 }
diff --git a/gdb/hppa-nbsd-tdep.c b/gdb/hppa-nbsd-tdep.c
index 383010bef661..b532ab1d5cc5 100644
--- a/gdb/hppa-nbsd-tdep.c
+++ b/gdb/hppa-nbsd-tdep.c
@@ -208,8 +208,9 @@ hppanbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tramp_frame_prepend_unwinder (gdbarch, &hppanbsd_sigtramp_si4);
 }
 
+void _initialize_hppanbsd_tdep ();
 void
-_initialize_hppanbsd_tdep (void)
+_initialize_hppanbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_NETBSD,
   hppanbsd_init_abi);
diff --git a/gdb/hppa-obsd-nat.c b/gdb/hppa-obsd-nat.c
index 8c79c0043d18..939a532b7853 100644
--- a/gdb/hppa-obsd-nat.c
+++ b/gdb/hppa-obsd-nat.c
@@ -252,8 +252,9 @@ hppa_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     }
 }
 
+void _initialize_hppaobsd_nat ();
 void
-_initialize_hppaobsd_nat (void)
+_initialize_hppaobsd_nat ()
 {
   add_inf_child_target (&the_hppa_obsd_nat_target);
 }
diff --git a/gdb/hppa-obsd-tdep.c b/gdb/hppa-obsd-tdep.c
index aa013ba3d814..d7f72491c703 100644
--- a/gdb/hppa-obsd-tdep.c
+++ b/gdb/hppa-obsd-tdep.c
@@ -168,8 +168,9 @@ hppaobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, hppaobsd_iterate_over_regset_sections);
 }
 
+void _initialize_hppabsd_tdep ();
 void
-_initialize_hppabsd_tdep (void)
+_initialize_hppabsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_OPENBSD,
   hppaobsd_init_abi);
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 1ee1b0ba286e..d8a3a5605733 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -3168,8 +3168,9 @@ hppa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
   fprintf_unfiltered (file, "elf = %s\n", tdep->is_elf ? "yes" : "no");
 }
 
+void _initialize_hppa_tdep ();
 void
-_initialize_hppa_tdep (void)
+_initialize_hppa_tdep ()
 {
   gdbarch_register (bfd_arch_hppa, hppa_gdbarch_init, hppa_dump_tdep);
 
diff --git a/gdb/i386-bsd-nat.c b/gdb/i386-bsd-nat.c
index 41b4a9c89511..4e22013a7a8d 100644
--- a/gdb/i386-bsd-nat.c
+++ b/gdb/i386-bsd-nat.c
@@ -319,8 +319,9 @@ i386bsd_store_inferior_registers (struct regcache *regcache, int regnum)
     }
 }
 
+void _initialize_i386bsd_nat ();
 void
-_initialize_i386bsd_nat (void)
+_initialize_i386bsd_nat ()
 {
   int offset;
 
diff --git a/gdb/i386-cygwin-tdep.c b/gdb/i386-cygwin-tdep.c
index ee04752b546c..f703579efda9 100644
--- a/gdb/i386-cygwin-tdep.c
+++ b/gdb/i386-cygwin-tdep.c
@@ -247,8 +247,9 @@ i386_cygwin_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_i386_cygwin_tdep ();
 void
-_initialize_i386_cygwin_tdep (void)
+_initialize_i386_cygwin_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour,
                                   i386_cygwin_osabi_sniffer);
diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c
index 8b0b6fbb6a85..55a1f7ce9a24 100644
--- a/gdb/i386-darwin-nat.c
+++ b/gdb/i386-darwin-nat.c
@@ -633,8 +633,9 @@ darwin_set_sstep (thread_t thread, int enable)
     }
 }
 
+void _initialize_i386_darwin_nat ();
 void
-_initialize_i386_darwin_nat (void)
+_initialize_i386_darwin_nat ()
 {
 #ifdef BFD64
   amd64_native_gregset64_reg_offset = amd64_darwin_thread_state_reg_offset;
diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c
index deeb61353c11..a1c226ba66fa 100644
--- a/gdb/i386-darwin-tdep.c
+++ b/gdb/i386-darwin-tdep.c
@@ -286,8 +286,9 @@ i386_mach_o_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_i386_darwin_tdep ();
 void
-_initialize_i386_darwin_tdep (void)
+_initialize_i386_darwin_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_unknown, bfd_target_mach_o_flavour,
                                   i386_mach_o_osabi_sniffer);
diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c
index ba4803e20452..11c61f862bf0 100644
--- a/gdb/i386-dicos-tdep.c
+++ b/gdb/i386-dicos-tdep.c
@@ -41,8 +41,9 @@ i386_dicos_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_i386_dicos_tdep ();
 void
-_initialize_i386_dicos_tdep (void)
+_initialize_i386_dicos_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
                                   i386_dicos_osabi_sniffer);
diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c
index 1a581695e67a..480c017da411 100644
--- a/gdb/i386-fbsd-nat.c
+++ b/gdb/i386-fbsd-nat.c
@@ -174,8 +174,9 @@ i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
 }
 #endif
 
+void _initialize_i386fbsd_nat ();
 void
-_initialize_i386fbsd_nat (void)
+_initialize_i386fbsd_nat ()
 {
   add_inf_child_target (&the_i386_fbsd_nat_target);
 
diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c
index d07270992906..0e53453bb6e3 100644
--- a/gdb/i386-fbsd-tdep.c
+++ b/gdb/i386-fbsd-tdep.c
@@ -451,8 +451,9 @@ i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  i386fbsd_get_thread_local_address);
 }
 
+void _initialize_i386fbsd_tdep ();
 void
-_initialize_i386fbsd_tdep (void)
+_initialize_i386fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_FREEBSD,
   i386fbsd4_init_abi);
diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c
index 1add0c65a078..afbe8eff4935 100644
--- a/gdb/i386-gnu-nat.c
+++ b/gdb/i386-gnu-nat.c
@@ -425,8 +425,9 @@ i386_gnu_dr_get_control (void)
 }
 #endif /* i386_DEBUG_STATE */
 
+void _initialize_i386gnu_nat ();
 void
-_initialize_i386gnu_nat (void)
+_initialize_i386gnu_nat ()
 {
 #ifdef i386_DEBUG_STATE
   x86_dr_low.set_control = i386_gnu_dr_set_control;
diff --git a/gdb/i386-gnu-tdep.c b/gdb/i386-gnu-tdep.c
index 4f32c094a511..57183be759b6 100644
--- a/gdb/i386-gnu-tdep.c
+++ b/gdb/i386-gnu-tdep.c
@@ -61,8 +61,9 @@ i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>.  */
 }
 
+void _initialize_i386gnu_tdep ();
 void
-_initialize_i386gnu_tdep (void)
+_initialize_i386gnu_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_HURD, i386gnu_init_abi);
 }
diff --git a/gdb/i386-go32-tdep.c b/gdb/i386-go32-tdep.c
index e4d15cdc62a2..51d79c8da663 100644
--- a/gdb/i386-go32-tdep.c
+++ b/gdb/i386-go32-tdep.c
@@ -62,6 +62,7 @@ i386_coff_osabi_sniffer (bfd *abfd)
 }
 
 
+void _initialize_i386_go32_tdep ();
 void
 _initialize_i386_go32_tdep ()
 {
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 32cd879de80b..b4224b27c3a2 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -711,8 +711,9 @@ i386_linux_nat_target::low_resume (ptid_t ptid, int step, enum gdb_signal signal
     perror_with_name (("ptrace"));
 }
 
+void _initialize_i386_linux_nat ();
 void
-_initialize_i386_linux_nat (void)
+_initialize_i386_linux_nat ()
 {
   linux_target = &the_i386_linux_nat_target;
 
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 5827cb4eec37..6f702b59e7f8 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -1076,8 +1076,9 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  i386_linux_handle_segmentation_fault);
 }
 
+void _initialize_i386_linux_tdep ();
 void
-_initialize_i386_linux_tdep (void)
+_initialize_i386_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_LINUX,
   i386_linux_init_abi);
diff --git a/gdb/i386-nbsd-nat.c b/gdb/i386-nbsd-nat.c
index e70a516a37ca..ac775c1ff846 100644
--- a/gdb/i386-nbsd-nat.c
+++ b/gdb/i386-nbsd-nat.c
@@ -73,8 +73,9 @@ i386nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 
 static i386_bsd_nat_target<nbsd_nat_target> the_i386_nbsd_nat_target;
 
+void _initialize_i386nbsd_nat ();
 void
-_initialize_i386nbsd_nat (void)
+_initialize_i386nbsd_nat ()
 {
   add_inf_child_target (&the_i386_nbsd_nat_target);
 
diff --git a/gdb/i386-nbsd-tdep.c b/gdb/i386-nbsd-tdep.c
index d0743c3ed7fe..3157451e08f5 100644
--- a/gdb/i386-nbsd-tdep.c
+++ b/gdb/i386-nbsd-tdep.c
@@ -421,8 +421,9 @@ i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->struct_return = pcc_struct_return;
 }
 
+void _initialize_i386nbsd_tdep ();
 void
-_initialize_i386nbsd_tdep (void)
+_initialize_i386nbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_NETBSD,
   i386nbsdelf_init_abi);
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c
index 493d5c4f6ab4..cd6837b766ce 100644
--- a/gdb/i386-nto-tdep.c
+++ b/gdb/i386-nto-tdep.c
@@ -367,8 +367,9 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_wchar_signed (gdbarch, 0);
 }
 
+void _initialize_i386nto_tdep ();
 void
-_initialize_i386nto_tdep (void)
+_initialize_i386nto_tdep ()
 {
   init_i386nto_ops ();
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_QNXNTO,
diff --git a/gdb/i386-obsd-nat.c b/gdb/i386-obsd-nat.c
index ebaa83463d46..205c08b1bbe4 100644
--- a/gdb/i386-obsd-nat.c
+++ b/gdb/i386-obsd-nat.c
@@ -90,8 +90,9 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 
 static i386_bsd_nat_target<obsd_nat_target> the_i386_obsd_nat_target;
 
+void _initialize_i386obsd_nat ();
 void
-_initialize_i386obsd_nat (void)
+_initialize_i386obsd_nat ()
 {
   add_inf_child_target (&i386_obsd_nat_target);
 
diff --git a/gdb/i386-obsd-tdep.c b/gdb/i386-obsd-tdep.c
index cb419fc93a28..309f5e68b766 100644
--- a/gdb/i386-obsd-tdep.c
+++ b/gdb/i386-obsd-tdep.c
@@ -443,8 +443,9 @@ i386obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_i386obsd_tdep ();
 void
-_initialize_i386obsd_tdep (void)
+_initialize_i386obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_OPENBSD,
   i386obsd_init_abi);
diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c
index 2092c7e6a746..f54b3b109e8d 100644
--- a/gdb/i386-sol2-nat.c
+++ b/gdb/i386-sol2-nat.c
@@ -241,8 +241,9 @@ fill_fpregset (const struct regcache *regcache,
 
 #endif
 
+void _initialize_amd64_sol2_nat ();
 void
-_initialize_amd64_sol2_nat (void)
+_initialize_amd64_sol2_nat ()
 {
 #if PR_MODEL_NATIVE == PR_MODEL_LP64
   amd64_native_gregset32_reg_offset = amd64_sol2_gregset32_reg_offset;
diff --git a/gdb/i386-sol2-tdep.c b/gdb/i386-sol2-tdep.c
index ff797848bdd2..1980485cd4db 100644
--- a/gdb/i386-sol2-tdep.c
+++ b/gdb/i386-sol2-tdep.c
@@ -151,8 +151,9 @@ i386_sol2_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_i386_sol2_tdep ();
 void
-_initialize_i386_sol2_tdep (void)
+_initialize_i386_sol2_tdep ()
 {
   /* Register an ELF OS ABI sniffer for Solaris 2 binaries.  */
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index a19fc62e8d4a..f120438081de 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -9032,8 +9032,9 @@ show_mpx_cmd (const char *args, int from_tty)
   cmd_show_list (mpx_show_cmdlist, from_tty, "");
 }
 
+void _initialize_i386_tdep ();
 void
-_initialize_i386_tdep (void)
+_initialize_i386_tdep ()
 {
   register_gdbarch_init (bfd_arch_i386, i386_gdbarch_init);
 
diff --git a/gdb/i386-windows-nat.c b/gdb/i386-windows-nat.c
index bcabacc5a06e..958c83eafe66 100644
--- a/gdb/i386-windows-nat.c
+++ b/gdb/i386-windows-nat.c
@@ -79,8 +79,9 @@ i386_windows_segment_register_p (int regnum)
   return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM;
 }
 
+void _initialize_i386_windows_nat ();
 void
-_initialize_i386_windows_nat (void)
+_initialize_i386_windows_nat ()
 {
   windows_set_context_register_offsets (mappings);
   windows_set_segment_register_p (i386_windows_segment_register_p);
diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c
index 1fb018ad9ee1..59b7df13d2fd 100644
--- a/gdb/ia64-libunwind-tdep.c
+++ b/gdb/ia64-libunwind-tdep.c
@@ -591,8 +591,9 @@ libunwind_is_initialized (void)
   return libunwind_initialized;
 }
 
+void _initialize_libunwind_frame ();
 void
-_initialize_libunwind_frame (void)
+_initialize_libunwind_frame ()
 {
   libunwind_descr_handle
     = gdbarch_data_register_post_init (libunwind_descr_init);
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
index 361fc6ae375f..01cfa0decd5a 100644
--- a/gdb/ia64-linux-nat.c
+++ b/gdb/ia64-linux-nat.c
@@ -921,8 +921,9 @@ ia64_linux_nat_target::low_status_is_event (int status)
  || WSTOPSIG (status) == SIGILL);
 }
 
+void _initialize_ia64_linux_nat ();
 void
-_initialize_ia64_linux_nat (void)
+_initialize_ia64_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_ia64_linux_nat_target;
diff --git a/gdb/ia64-linux-tdep.c b/gdb/ia64-linux-tdep.c
index 2696f14b2cb0..33684ceb90e2 100644
--- a/gdb/ia64-linux-tdep.c
+++ b/gdb/ia64-linux-tdep.c
@@ -258,8 +258,9 @@ ia64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
       ia64_linux_stap_is_single_operand);
 }
 
+void _initialize_ia64_linux_tdep ();
 void
-_initialize_ia64_linux_tdep (void)
+_initialize_ia64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_LINUX,
   ia64_linux_init_abi);
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 40d4fd3c19d3..dd07b7d4e7ea 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -4012,8 +4012,9 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_ia64_tdep ();
 void
-_initialize_ia64_tdep (void)
+_initialize_ia64_tdep ()
 {
   gdbarch_register (bfd_arch_ia64, ia64_gdbarch_init, NULL);
 }
diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c
index 211242553bf4..ca0317bc45b3 100644
--- a/gdb/ia64-vms-tdep.c
+++ b/gdb/ia64-vms-tdep.c
@@ -153,8 +153,9 @@ ia64_openvms_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 #endif
 }
 
+void _initialize_ia64_vms_tdep ();
 void
-_initialize_ia64_vms_tdep (void)
+_initialize_ia64_vms_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_OPENVMS,
   ia64_openvms_init_abi);
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 240644a4eef9..b13c781c9d46 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1507,8 +1507,9 @@ When the function is done executing, GDB will silently stop."),
   gdb_assert_not_reached ("... should not be here");
 }
 
+void _initialize_infcall ();
 void
-_initialize_infcall (void)
+_initialize_infcall ()
 {
   add_setshow_boolean_cmd ("may-call-functions", no_class,
    &may_call_functions_p, _("\
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 2bf21e26f192..cf8b312f9dbe 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -3162,8 +3162,9 @@ use \"set args\" without arguments.\n\
 \n\
 To start the inferior without using a shell, use \"set startup-with-shell off\"."
 
+void _initialize_infcmd ();
 void
-_initialize_infcmd (void)
+_initialize_infcmd ()
 {
   static struct cmd_list_element *info_proc_cmdlist;
   struct cmd_list_element *c = NULL;
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 00b2235b96ed..e5e595ed981a 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -953,8 +953,9 @@ initialize_stdin_serial (void)
   stdin_serial = serial_fdopen (0);
 }
 
+void _initialize_inflow ();
 void
-_initialize_inflow (void)
+_initialize_inflow ()
 {
   add_info ("terminal", info_terminal_command,
     _("Print inferior's saved terminal status."));
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a0583a8e6586..a8636284f182 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -9319,8 +9319,9 @@ infrun_async_inferior_event_handler (gdb_client_data data)
   inferior_event_handler (INF_REG_EVENT, NULL);
 }
 
+void _initialize_infrun ();
 void
-_initialize_infrun (void)
+_initialize_infrun ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/interps.c b/gdb/interps.c
index 65a01437d580..8c01091e50b9 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -439,8 +439,9 @@ current_interpreter (void)
 }
 
 /* This just adds the "interpreter-exec" command.  */
+void _initialize_interpreter ();
 void
-_initialize_interpreter (void)
+_initialize_interpreter ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c
index 43a4e7482a01..4b3419ead7b6 100644
--- a/gdb/iq2000-tdep.c
+++ b/gdb/iq2000-tdep.c
@@ -839,8 +839,9 @@ iq2000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
    Initializer function for the iq2000 module.
    Called by gdb at start-up.  */
 
+void _initialize_iq2000_tdep ();
 void
-_initialize_iq2000_tdep (void)
+_initialize_iq2000_tdep ()
 {
   register_gdbarch_init (bfd_arch_iq2000, iq2000_gdbarch_init);
 }
diff --git a/gdb/jit.c b/gdb/jit.c
index 539753717b91..eeaab70bfe0e 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -1404,8 +1404,9 @@ jit_gdbarch_data_init (struct obstack *obstack)
   return data;
 }
 
+void _initialize_jit ();
 void
-_initialize_jit (void)
+_initialize_jit ()
 {
   jit_reader_dir = relocate_gdb_directory (JIT_READER_DIR,
    JIT_READER_DIR_RELOCATABLE);
diff --git a/gdb/language.c b/gdb/language.c
index 8f50af8b22dd..03985d3e0cc0 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1136,8 +1136,9 @@ language_lookup_primitive_type_as_symbol (const struct language_defn *la,
 
 /* Initialize the language routines.  */
 
+void _initialize_language ();
 void
-_initialize_language (void)
+_initialize_language ()
 {
   static const char *const type_or_range_names[]
     = { "on", "off", "warn", "auto", NULL };
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index c77fb6c73ac9..284f1985d0dc 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -751,8 +751,9 @@ restart_command (const char *args, int from_tty)
   linux_fork_context (fp, from_tty);
 }
 
+void _initialize_linux_fork ();
 void
-_initialize_linux_fork (void)
+_initialize_linux_fork ()
 {
   /* Checkpoint command: create a fork of the inferior process
      and set it aside for later debugging.  */
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 45b71ea8627f..66004e5be81a 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4545,8 +4545,9 @@ current_lwp_ptid (void)
   return inferior_ptid;
 }
 
+void _initialize_linux_nat ();
 void
-_initialize_linux_nat (void)
+_initialize_linux_nat ()
 {
   add_setshow_zuinteger_cmd ("lin-lwp", class_maintenance,
      &debug_linux_nat, _("\
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index 820657a1038e..b6374ce399c7 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -2486,8 +2486,9 @@ linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 }
 
+void _initialize_linux_tdep ();
 void
-_initialize_linux_tdep (void)
+_initialize_linux_tdep ()
 {
   linux_gdbarch_data_handle =
     gdbarch_data_register_post_init (init_linux_gdbarch_data);
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index ed37de6d198d..ae29c51673a4 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -1968,8 +1968,9 @@ maintenance_check_libthread_db (const char *args, int from_tty)
   check_thread_db (info, true);
 }
 
+void _initialize_thread_db ();
 void
-_initialize_thread_db (void)
+_initialize_thread_db ()
 {
   /* Defer loading of libthread_db.so until inferior is running.
      This allows gdb to load correct libthread_db for a given
diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c
index 78ba1b022703..f2c3fea48a77 100644
--- a/gdb/lm32-tdep.c
+++ b/gdb/lm32-tdep.c
@@ -549,8 +549,9 @@ lm32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_lm32_tdep ();
 void
-_initialize_lm32_tdep (void)
+_initialize_lm32_tdep ()
 {
   register_gdbarch_init (bfd_arch_lm32, lm32_gdbarch_init);
 }
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 8a167113482d..1a97a58cec4f 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -457,8 +457,9 @@ builtin_m2_type (struct gdbarch *gdbarch)
 
 /* Initialization for Modula-2 */
 
+void _initialize_m2_language ();
 void
-_initialize_m2_language (void)
+_initialize_m2_language ()
 {
   m2_type_data = gdbarch_data_register_post_init (build_m2_types);
 }
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c
index 0d6324104b9f..31f4d24cac5d 100644
--- a/gdb/m32c-tdep.c
+++ b/gdb/m32c-tdep.c
@@ -2644,8 +2644,9 @@ m32c_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_m32c_tdep ();
 void
-_initialize_m32c_tdep (void)
+_initialize_m32c_tdep ()
 {
   register_gdbarch_init (bfd_arch_m32c, m32c_gdbarch_init);
 
diff --git a/gdb/m32r-linux-nat.c b/gdb/m32r-linux-nat.c
index 6bb833778824..24beeca3b75c 100644
--- a/gdb/m32r-linux-nat.c
+++ b/gdb/m32r-linux-nat.c
@@ -237,8 +237,9 @@ m32r_linux_nat_target::store_registers (struct regcache *regcache, int regno)
   _("Got request to store bad register number %d."), regno);
 }
 
+void _initialize_m32r_linux_nat ();
 void
-_initialize_m32r_linux_nat (void)
+_initialize_m32r_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_m32r_linux_nat_target;
diff --git a/gdb/m32r-linux-tdep.c b/gdb/m32r-linux-tdep.c
index 8f516b1a70f8..becd6434c221 100644
--- a/gdb/m32r-linux-tdep.c
+++ b/gdb/m32r-linux-tdep.c
@@ -471,8 +471,9 @@ m32r_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }
 
+void _initialize_m32r_linux_tdep ();
 void
-_initialize_m32r_linux_tdep (void)
+_initialize_m32r_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_m32r, 0, GDB_OSABI_LINUX,
   m32r_linux_init_abi);
diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c
index 59f9bb59be94..60e53876408c 100644
--- a/gdb/m32r-tdep.c
+++ b/gdb/m32r-tdep.c
@@ -911,8 +911,9 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_m32r_tdep ();
 void
-_initialize_m32r_tdep (void)
+_initialize_m32r_tdep ()
 {
   register_gdbarch_init (bfd_arch_m32r, m32r_gdbarch_init);
 }
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c
index ff0395da4f3d..4e63c2f2fa0d 100644
--- a/gdb/m68hc11-tdep.c
+++ b/gdb/m68hc11-tdep.c
@@ -1512,8 +1512,9 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
   return gdbarch;
 }
 
+void _initialize_m68hc11_tdep ();
 void
-_initialize_m68hc11_tdep (void)
+_initialize_m68hc11_tdep ()
 {
   register_gdbarch_init (bfd_arch_m68hc11, m68hc11_gdbarch_init);
   register_gdbarch_init (bfd_arch_m68hc12, m68hc11_gdbarch_init);
diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c
index 562505be045a..184b5c25d724 100644
--- a/gdb/m68k-bsd-nat.c
+++ b/gdb/m68k-bsd-nat.c
@@ -221,8 +221,9 @@ m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }
 
+void _initialize_m68kbsd_nat ();
 void
-_initialize_m68kbsd_nat (void)
+_initialize_m68kbsd_nat ()
 {
   add_inf_child_target (&the_m68k_bsd_nat_target);
 
diff --git a/gdb/m68k-bsd-tdep.c b/gdb/m68k-bsd-tdep.c
index 48b230df44e4..f18f33dc7e4d 100644
--- a/gdb/m68k-bsd-tdep.c
+++ b/gdb/m68k-bsd-tdep.c
@@ -152,8 +152,9 @@ m68kbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_m68kbsd_tdep ();
 void
-_initialize_m68kbsd_tdep (void)
+_initialize_m68kbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_NETBSD,
   m68kbsd_init_abi);
diff --git a/gdb/m68k-linux-nat.c b/gdb/m68k-linux-nat.c
index 3b2971b5a4e2..5e9170d9de72 100644
--- a/gdb/m68k-linux-nat.c
+++ b/gdb/m68k-linux-nat.c
@@ -511,8 +511,9 @@ ps_get_thread_area (struct ps_prochandle *ph,
   return PS_OK;
 }
 
+void _initialize_m68k_linux_nat ();
 void
-_initialize_m68k_linux_nat (void)
+_initialize_m68k_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_m68k_linux_nat_target;
diff --git a/gdb/m68k-linux-tdep.c b/gdb/m68k-linux-tdep.c
index 7b571f5db471..dcc7e089608e 100644
--- a/gdb/m68k-linux-tdep.c
+++ b/gdb/m68k-linux-tdep.c
@@ -423,8 +423,9 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }
 
+void _initialize_m68k_linux_tdep ();
 void
-_initialize_m68k_linux_tdep (void)
+_initialize_m68k_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_LINUX,
   m68k_linux_init_abi);
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 365b7c8b623d..ec754a62af93 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1281,8 +1281,9 @@ m68k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
     return;
 }
 
+void _initialize_m68k_tdep ();
 void
-_initialize_m68k_tdep (void)
+_initialize_m68k_tdep ()
 {
   gdbarch_register (bfd_arch_m68k, m68k_gdbarch_init, m68k_dump_tdep);
 }
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 2bb3ab32cb30..54e3d2adc115 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -961,8 +961,9 @@ static const struct sym_fns macho_sym_fns = {
   &psym_functions
 };
 
+void _initialize_machoread ();
 void
-_initialize_machoread (void)
+_initialize_machoread ()
 {
   add_symtab_fns (bfd_target_mach_o_flavour, &macho_sym_fns);
 
diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c
index 70b95b107ea0..54aa35e72fe0 100644
--- a/gdb/macrocmd.c
+++ b/gdb/macrocmd.c
@@ -458,8 +458,9 @@ macro_list_command (const char *exp, int from_tty)
 
 /* Initializing the `macrocmd' module.  */
 
+void _initialize_macrocmd ();
 void
-_initialize_macrocmd (void)
+_initialize_macrocmd ()
 {
   /* We introduce a new command prefix, `macro', under which we'll put
      the various commands for working with preprocessor macros.  */
diff --git a/gdb/macroscope.c b/gdb/macroscope.c
index af8a2eedc4c6..9a1e7fe633be 100644
--- a/gdb/macroscope.c
+++ b/gdb/macroscope.c
@@ -152,8 +152,9 @@ standard_macro_lookup (const char *name, void *baton)
   return result;
 }
 
+void _initialize_macroscope ();
 void
-_initialize_macroscope (void)
+_initialize_macroscope ()
 {
   macro_user_macros = new_macro_table (NULL, NULL, NULL);
   macro_set_main (macro_user_macros, "<user-defined>");
diff --git a/gdb/maint-test-options.c b/gdb/maint-test-options.c
index 842a080460a0..2cbdc7c1a202 100644
--- a/gdb/maint-test-options.c
+++ b/gdb/maint-test-options.c
@@ -424,6 +424,7 @@ maintenance_test_options_command (const char *arg, int from_tty)
 }
 
 
+void _initialize_maint_test_options ();
 void
 _initialize_maint_test_options ()
 {
diff --git a/gdb/maint-test-settings.c b/gdb/maint-test-settings.c
index d8a6e9bb84a2..e8e8874e9a84 100644
--- a/gdb/maint-test-settings.c
+++ b/gdb/maint-test-settings.c
@@ -99,8 +99,9 @@ maintenance_show_test_settings_value_cmd
 }
 
 
+void _initialize_maint_test_settings ();
 void
-_initialize_maint_test_settings (void)
+_initialize_maint_test_settings ()
 {
   maintenance_test_settings_filename = xstrdup ("/foo/bar");
 
diff --git a/gdb/maint.c b/gdb/maint.c
index fcb9f4efb5eb..e8e0f287731f 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -1135,8 +1135,9 @@ Selftests have been disabled for this build.\n"));
 }
 
 
+void _initialize_maint_cmds ();
 void
-_initialize_maint_cmds (void)
+_initialize_maint_cmds ()
 {
   struct cmd_list_element *cmd;
 
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index ff1d13032210..b1994f1e0b43 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -4802,8 +4802,9 @@ elfmdebug_build_psymtabs (struct objfile *objfile,
   reader.install ();
 }
 
+void _initialize_mdebugread ();
 void
-_initialize_mdebugread (void)
+_initialize_mdebugread ()
 {
   mdebug_register_index
     = register_symbol_register_impl (LOC_REGISTER, &mdebug_register_funcs);
diff --git a/gdb/memattr.c b/gdb/memattr.c
index f8cd6f4fb1f7..da60df071c5b 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -594,8 +594,9 @@ dummy_cmd (const char *args, int from_tty)
 static struct cmd_list_element *mem_set_cmdlist;
 static struct cmd_list_element *mem_show_cmdlist;
 
+void _initialize_mem ();
 void
-_initialize_mem (void)
+_initialize_mem ()
 {
   add_com ("mem", class_vars, mem_command, _("\
 Define attributes for memory region or reset memory region handling to "
diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c
index 13817555a5e1..7e8247cd6427 100644
--- a/gdb/mep-tdep.c
+++ b/gdb/mep-tdep.c
@@ -2448,8 +2448,9 @@ mep_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_mep_tdep ();
 void
-_initialize_mep_tdep (void)
+_initialize_mep_tdep ()
 {
   mep_csr_reggroup = reggroup_new ("csr", USER_REGGROUP);
   mep_cr_reggroup  = reggroup_new ("cr", USER_REGGROUP);
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c
index 7514ba8fb103..88158cee56f7 100644
--- a/gdb/mi/mi-cmd-env.c
+++ b/gdb/mi/mi-cmd-env.c
@@ -261,8 +261,9 @@ mi_cmd_inferior_tty_show (const char *command, char **argv, int argc)
     current_uiout->field_string ("inferior_tty_terminal", inferior_io_terminal);
 }
 
+void _initialize_mi_cmd_env ();
 void
-_initialize_mi_cmd_env (void)
+_initialize_mi_cmd_env ()
 {
   const char *env;
 
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index eadf612b1440..ec6f281c5b96 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -295,8 +295,9 @@ build_table (struct mi_cmd *commands)
     }
 }
 
+void _initialize_mi_cmds ();
 void
-_initialize_mi_cmds (void)
+_initialize_mi_cmds ()
 {
   build_table (mi_cmds);
   memset (&stats, 0, sizeof (stats));
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 556f446c2e19..2ac4c119961c 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -1335,8 +1335,9 @@ mi_interp_factory (const char *name)
   return new mi_interp (name);
 }
 
+void _initialize_mi_interp ();
 void
-_initialize_mi_interp (void)
+_initialize_mi_interp ()
 {
   /* The various interpreter levels.  */
   interp_factory_register (INTERP_MI1, mi_interp_factory);
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 24daf3f88388..014feaf64937 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -2749,8 +2749,9 @@ mi_cmd_complete (const char *command, char **argv, int argc)
 }
 
 
+void _initialize_mi_main ();
 void
-_initialize_mi_main (void)
+_initialize_mi_main ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c
index 3bb9b5682ac7..be710bedb649 100644
--- a/gdb/microblaze-linux-tdep.c
+++ b/gdb/microblaze-linux-tdep.c
@@ -131,8 +131,9 @@ microblaze_linux_init_abi (struct gdbarch_info info,
  &microblaze_linux_sighandler_tramp_frame);
 }
 
+void _initialize_microblaze_linux_tdep ();
 void
-_initialize_microblaze_linux_tdep (void)
+_initialize_microblaze_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_microblaze, 0, GDB_OSABI_LINUX,
   microblaze_linux_init_abi);
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index 17871229c807..a05088c36a10 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -753,8 +753,9 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_microblaze_tdep ();
 void
-_initialize_microblaze_tdep (void)
+_initialize_microblaze_tdep ()
 {
   register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);
 
diff --git a/gdb/mips-fbsd-nat.c b/gdb/mips-fbsd-nat.c
index cb74f19333b0..4a29ee1cb563 100644
--- a/gdb/mips-fbsd-nat.c
+++ b/gdb/mips-fbsd-nat.c
@@ -126,8 +126,9 @@ mips_fbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     }
 }
 
+void _initialize_mips_fbsd_nat ();
 void
-_initialize_mips_fbsd_nat (void)
+_initialize_mips_fbsd_nat ()
 {
   add_inf_child_target (&the_mips_fbsd_nat_target);
 }
diff --git a/gdb/mips-fbsd-tdep.c b/gdb/mips-fbsd-tdep.c
index 76073f01e631..abaf7f2474ab 100644
--- a/gdb/mips-fbsd-tdep.c
+++ b/gdb/mips-fbsd-tdep.c
@@ -553,8 +553,9 @@ mips_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
        mips_fbsd_lp64_fetch_link_map_offsets));
 }
 
+void _initialize_mips_fbsd_tdep ();
 void
-_initialize_mips_fbsd_tdep (void)
+_initialize_mips_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_FREEBSD,
   mips_fbsd_init_abi);
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index 104c972f2463..38ff461a35b3 100644
--- a/gdb/mips-linux-nat.c
+++ b/gdb/mips-linux-nat.c
@@ -783,8 +783,9 @@ mips_linux_nat_target::close ()
   linux_nat_trad_target::close ();
 }
 
+void _initialize_mips_linux_nat ();
 void
-_initialize_mips_linux_nat (void)
+_initialize_mips_linux_nat ()
 {
   add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
    &show_debug_regs, _("\
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index 002c5c51d96c..aa7b8d11f3fb 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -1642,8 +1642,9 @@ mips_linux_init_abi (struct gdbarch_info info,
     }
 }
 
+void _initialize_mips_linux_tdep ();
 void
-_initialize_mips_linux_tdep (void)
+_initialize_mips_linux_tdep ()
 {
   const struct bfd_arch_info *arch_info;
 
diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c
index 4f6a8eedb0a1..527c67a7abc5 100644
--- a/gdb/mips-nbsd-nat.c
+++ b/gdb/mips-nbsd-nat.c
@@ -113,8 +113,9 @@ mips_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
     }
 }
 
+void _initialize_mipsnbsd_nat ();
 void
-_initialize_mipsnbsd_nat (void)
+_initialize_mipsnbsd_nat ()
 {
   add_inf_child_target (&the_mips_nbsd_nat_target);
 }
diff --git a/gdb/mips-nbsd-tdep.c b/gdb/mips-nbsd-tdep.c
index a2901c09edff..38bc7ce636b0 100644
--- a/gdb/mips-nbsd-tdep.c
+++ b/gdb/mips-nbsd-tdep.c
@@ -371,8 +371,9 @@ mipsnbsd_init_abi (struct gdbarch_info info,
        mipsnbsd_lp64_fetch_link_map_offsets));
 }
 
+void _initialize_mipsnbsd_tdep ();
 void
-_initialize_mipsnbsd_tdep (void)
+_initialize_mipsnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_NETBSD,
   mipsnbsd_init_abi);
diff --git a/gdb/mips-sde-tdep.c b/gdb/mips-sde-tdep.c
index 01afafb1fa61..685c3c7263c0 100644
--- a/gdb/mips-sde-tdep.c
+++ b/gdb/mips-sde-tdep.c
@@ -256,8 +256,9 @@ mips_sde_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_base_append_sniffer (gdbarch, mips_sde_frame_base_sniffer);
 }
 
+void _initialize_mips_sde_tdep ();
 void
-_initialize_mips_sde_tdep (void)
+_initialize_mips_sde_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_mips,
   bfd_target_elf_flavour,
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index f89e37b503e3..90ec3707c5db 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -8971,8 +8971,9 @@ mips_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
       mips_fpu_type_str (MIPS_FPU_TYPE (gdbarch)));
 }
 
+void _initialize_mips_tdep ();
 void
-_initialize_mips_tdep (void)
+_initialize_mips_tdep ()
 {
   static struct cmd_list_element *mipsfpulist = NULL;
 
diff --git a/gdb/mips64-obsd-nat.c b/gdb/mips64-obsd-nat.c
index 8ea8fb1cc9ad..3661fff097a0 100644
--- a/gdb/mips64-obsd-nat.c
+++ b/gdb/mips64-obsd-nat.c
@@ -115,8 +115,9 @@ mips64_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     perror_with_name (_("Couldn't write registers"));
 }
 
+void _initialize_mips64obsd_nat ();
 void
-_initialize_mips64obsd_nat (void)
+_initialize_mips64obsd_nat ()
 {
   add_inf_child_target (&the_mips64_obsd_nat_target);
 }
diff --git a/gdb/mips64-obsd-tdep.c b/gdb/mips64-obsd-tdep.c
index 857ff7a3362e..3194ce862bd4 100644
--- a/gdb/mips64-obsd-tdep.c
+++ b/gdb/mips64-obsd-tdep.c
@@ -159,8 +159,9 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
+void _initialize_mips64obsd_tdep ();
 void
-_initialize_mips64obsd_tdep (void)
+_initialize_mips64obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_OPENBSD,
   mips64obsd_init_abi);
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 2c11873d4449..6e39538e952d 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -379,8 +379,9 @@ static const struct sym_fns ecoff_sym_fns =
   &psym_functions
 };
 
+void _initialize_mipsread ();
 void
-_initialize_mipsread (void)
+_initialize_mipsread ()
 {
   add_symtab_fns (bfd_target_ecoff_flavour, &ecoff_sym_fns);
 }
diff --git a/gdb/mn10300-linux-tdep.c b/gdb/mn10300-linux-tdep.c
index 24f40b9b22ef..1dfe2a21cf93 100644
--- a/gdb/mn10300-linux-tdep.c
+++ b/gdb/mn10300-linux-tdep.c
@@ -715,8 +715,9 @@ am33_linux_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tramp_frame_prepend_unwinder (gdbarch, &am33_linux_rt_sigframe);
 }
 
+void _initialize_mn10300_linux_tdep ();
 void
-_initialize_mn10300_linux_tdep (void)
+_initialize_mn10300_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mn10300, 0,
   GDB_OSABI_LINUX, am33_linux_init_osabi);
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index b472c36ebf1b..d779ad1dd0d8 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -1417,8 +1417,9 @@ mn10300_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
       tdep->am33_mode);
 }
 
+void _initialize_mn10300_tdep ();
 void
-_initialize_mn10300_tdep (void)
+_initialize_mn10300_tdep ()
 {
   gdbarch_register (bfd_arch_mn10300, mn10300_gdbarch_init, mn10300_dump_tdep);
 }
diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c
index b3ffbfb62ed8..1f552481662c 100644
--- a/gdb/moxie-tdep.c
+++ b/gdb/moxie-tdep.c
@@ -1103,8 +1103,9 @@ moxie_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
 /* Register this machine's init routine.  */
 
+void _initialize_moxie_tdep ();
 void
-_initialize_moxie_tdep (void)
+_initialize_moxie_tdep ()
 {
   register_gdbarch_init (bfd_arch_moxie, moxie_gdbarch_init);
 }
diff --git a/gdb/msp430-tdep.c b/gdb/msp430-tdep.c
index 1b38396a8b3e..0893274686ee 100644
--- a/gdb/msp430-tdep.c
+++ b/gdb/msp430-tdep.c
@@ -986,8 +986,9 @@ msp430_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
 /* Register the initialization routine.  */
 
+void _initialize_msp430_tdep ();
 void
-_initialize_msp430_tdep (void)
+_initialize_msp430_tdep ()
 {
   register_gdbarch_init (bfd_arch_msp430, msp430_gdbarch_init);
 }
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c
index 8d9bac085b6e..5238fe54a71b 100644
--- a/gdb/nds32-tdep.c
+++ b/gdb/nds32-tdep.c
@@ -2096,8 +2096,9 @@ nds32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_nds32_tdep ();
 void
-_initialize_nds32_tdep (void)
+_initialize_nds32_tdep ()
 {
   /* Initialize gdbarch.  */
   register_gdbarch_init (bfd_arch_nds32, nds32_gdbarch_init);
diff --git a/gdb/nios2-linux-tdep.c b/gdb/nios2-linux-tdep.c
index 3078bc4bb672..345dfeb9235e 100644
--- a/gdb/nios2-linux-tdep.c
+++ b/gdb/nios2-linux-tdep.c
@@ -248,8 +248,9 @@ nios2_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->jb_pc = 10;
 }
 
+void _initialize_nios2_linux_tdep ();
 void
-_initialize_nios2_linux_tdep (void)
+_initialize_nios2_linux_tdep ()
 {
 
   const struct bfd_arch_info *arch_info;
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c
index 6e00a322d24e..cb669da24802 100644
--- a/gdb/nios2-tdep.c
+++ b/gdb/nios2-tdep.c
@@ -2390,8 +2390,9 @@ nios2_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_nios2_tdep ();
 void
-_initialize_nios2_tdep (void)
+_initialize_nios2_tdep ()
 {
   gdbarch_register (bfd_arch_nios2, nios2_gdbarch_init, NULL);
   initialize_tdesc_nios2 ();
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index c31dbf136c8c..58e572c094db 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -1505,8 +1505,9 @@ init_procfs_targets (void)
 
 #define OSTYPE_NTO 1
 
+void _initialize_procfs ();
 void
-_initialize_procfs (void)
+_initialize_procfs ()
 {
   sigset_t set;
 
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index c423d575db80..5adf913a5e33 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -1332,8 +1332,9 @@ find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc)
   return 0;
 }
 
+void _initialize_objc_language ();
 void
-_initialize_objc_language (void)
+_initialize_objc_language ()
 {
   add_info ("selectors", info_selectors_command,
     _("All Objective-C selectors, or those matching REGEXP."));
diff --git a/gdb/observable.c b/gdb/observable.c
index 5a66be080192..81aa392cc21f 100644
--- a/gdb/observable.c
+++ b/gdb/observable.c
@@ -87,8 +87,9 @@ show_observer_debug (struct ui_file *file, int from_tty,
   fprintf_filtered (file, _("Observer debugging is %s.\n"), value);
 }
 
+void _initialize_observer ();
 void
-_initialize_observer (void)
+_initialize_observer ()
 {
   add_setshow_zuinteger_cmd ("observer", class_maintenance,
      &gdb::observers::observer_debug, _("\
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index e5052bbd6ceb..1763590214fd 100644
--- a/gdb/opencl-lang.c
+++ b/gdb/opencl-lang.c
@@ -1178,8 +1178,9 @@ build_opencl_types (struct gdbarch *gdbarch)
   return types;
 }
 
+void _initialize_opencl_language ();
 void
-_initialize_opencl_language (void)
+_initialize_opencl_language ()
 {
   opencl_type_data = gdbarch_data_register_post_init (build_opencl_types);
 }
diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c
index 860144aa350e..15677f9cfaf6 100644
--- a/gdb/or1k-linux-tdep.c
+++ b/gdb/or1k-linux-tdep.c
@@ -163,8 +163,9 @@ or1k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
 /* Initialize OpenRISC Linux target support.  */
 
+void _initialize_or1k_linux_tdep ();
 void
-_initialize_or1k_linux_tdep (void)
+_initialize_or1k_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_or1k, 0, GDB_OSABI_LINUX,
   or1k_linux_init_abi);
diff --git a/gdb/or1k-tdep.c b/gdb/or1k-tdep.c
index eca780a9c12a..772ecff33491 100644
--- a/gdb/or1k-tdep.c
+++ b/gdb/or1k-tdep.c
@@ -1269,8 +1269,9 @@ or1k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
 }
 
 
+void _initialize_or1k_tdep ();
 void
-_initialize_or1k_tdep (void)
+_initialize_or1k_tdep ()
 {
   /* Register this architecture.  */
   gdbarch_register (bfd_arch_or1k, or1k_gdbarch_init, or1k_dump_tdep);
diff --git a/gdb/osabi.c b/gdb/osabi.c
index dec1bddc4cef..b9a8687a7cc3 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -653,8 +653,9 @@ show_osabi (struct ui_file *file, int from_tty, struct cmd_list_element *c,
       gdbarch_osabi_name (GDB_OSABI_DEFAULT));
 }
 
+void _initialize_gdb_osabi ();
 void
-_initialize_gdb_osabi (void)
+_initialize_gdb_osabi ()
 {
   if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID].pretty, "<invalid>") != 0)
     internal_error
diff --git a/gdb/osdata.c b/gdb/osdata.c
index 19b663693dd7..9b0604752129 100644
--- a/gdb/osdata.c
+++ b/gdb/osdata.c
@@ -289,8 +289,9 @@ info_osdata_command (const char *arg, int from_tty)
   info_osdata (arg);
 }
 
+void _initialize_osdata ();
 void
-_initialize_osdata (void)
+_initialize_osdata ()
 {
   add_info ("os", info_osdata_command,
            _("Show OS data ARG."));
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index e337132a07d6..aaeb4b67e983 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -891,8 +891,9 @@ pascal_object_print_static_field (struct value *val,
   common_val_print (val, stream, recurse, &opts, current_language);
 }
 
+void _initialize_pascal_valprint ();
 void
-_initialize_pascal_valprint (void)
+_initialize_pascal_valprint ()
 {
   add_setshow_boolean_cmd ("pascal_static-members", class_support,
    &user_print_options.pascal_static_field_print, _("\
diff --git a/gdb/parse.c b/gdb/parse.c
index 65e3c6008cdf..b4d9005de55d 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -1436,8 +1436,9 @@ increase_expout_size (struct expr_builder *ps, size_t lenelt)
     }
 }
 
+void _initialize_parse ();
 void
-_initialize_parse (void)
+_initialize_parse ()
 {
   add_setshow_zuinteger_cmd ("expression", class_maintenance,
      &expressiondebug,
diff --git a/gdb/ppc-fbsd-nat.c b/gdb/ppc-fbsd-nat.c
index 5643fab82e7f..a1b268ab2892 100644
--- a/gdb/ppc-fbsd-nat.c
+++ b/gdb/ppc-fbsd-nat.c
@@ -201,8 +201,9 @@ ppcfbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }
 
+void _initialize_ppcfbsd_nat ();
 void
-_initialize_ppcfbsd_nat (void)
+_initialize_ppcfbsd_nat ()
 {
   add_inf_child_target (&the_ppc_fbsd_nat_target);
 
diff --git a/gdb/ppc-fbsd-tdep.c b/gdb/ppc-fbsd-tdep.c
index 8ae108438d3b..349396f52b2c 100644
--- a/gdb/ppc-fbsd-tdep.c
+++ b/gdb/ppc-fbsd-tdep.c
@@ -361,8 +361,9 @@ ppcfbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  ppcfbsd_get_thread_local_address);
 }
 
+void _initialize_ppcfbsd_tdep ();
 void
-_initialize_ppcfbsd_tdep (void)
+_initialize_ppcfbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_powerpc, bfd_mach_ppc, GDB_OSABI_FREEBSD,
   ppcfbsd_init_abi);
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index d619971a001d..27fa7f93e2b3 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -2671,8 +2671,9 @@ ppc_linux_nat_target::read_description ()
   return ppc_linux_match_description (features);
 }
 
+void _initialize_ppc_linux_nat ();
 void
-_initialize_ppc_linux_nat (void)
+_initialize_ppc_linux_nat ()
 {
   linux_target = &the_ppc_linux_nat_target;
 
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 901b938f257a..676be7252176 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -2155,8 +2155,9 @@ ppc_linux_init_abi (struct gdbarch_info info,
   ppc_init_linux_record_tdep (&ppc64_linux_record_tdep, 8);
 }
 
+void _initialize_ppc_linux_tdep ();
 void
-_initialize_ppc_linux_tdep (void)
+_initialize_ppc_linux_tdep ()
 {
   /* Register for all sub-families of the POWER/PowerPC: 32-bit and
      64-bit PowerPC, and the older rs6k.  */
diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c
index a6175f9e0685..a2a0c0b958e9 100644
--- a/gdb/ppc-nbsd-nat.c
+++ b/gdb/ppc-nbsd-nat.c
@@ -179,8 +179,9 @@ ppcnbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }
 
+void _initialize_ppcnbsd_nat ();
 void
-_initialize_ppcnbsd_nat (void)
+_initialize_ppcnbsd_nat ()
 {
   /* Support debugging kernel virtual memory images.  */
   bsd_kvm_add_target (ppcnbsd_supply_pcb);
diff --git a/gdb/ppc-nbsd-tdep.c b/gdb/ppc-nbsd-tdep.c
index 387f0221462d..d75930c9f8d7 100644
--- a/gdb/ppc-nbsd-tdep.c
+++ b/gdb/ppc-nbsd-tdep.c
@@ -188,8 +188,9 @@ ppcnbsd_init_abi (struct gdbarch_info info,
   tramp_frame_prepend_unwinder (gdbarch, &ppcnbsd2_sigtramp);
 }
 
+void _initialize_ppcnbsd_tdep ();
 void
-_initialize_ppcnbsd_tdep (void)
+_initialize_ppcnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_NETBSD,
   ppcnbsd_init_abi);
diff --git a/gdb/ppc-obsd-nat.c b/gdb/ppc-obsd-nat.c
index 7c8335c9ad7e..8d36d2b5caf6 100644
--- a/gdb/ppc-obsd-nat.c
+++ b/gdb/ppc-obsd-nat.c
@@ -187,8 +187,9 @@ ppcobsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }
 
+void _initialize_ppcobsd_nat ();
 void
-_initialize_ppcobsd_nat (void)
+_initialize_ppcobsd_nat ()
 {
   add_inf_child_target (&the_ppc_obsd_nat_target);
 
diff --git a/gdb/ppc-obsd-tdep.c b/gdb/ppc-obsd-tdep.c
index 1288766eb48f..5f70d35180c2 100644
--- a/gdb/ppc-obsd-tdep.c
+++ b/gdb/ppc-obsd-tdep.c
@@ -261,8 +261,9 @@ ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_append_unwinder (gdbarch, &ppcobsd_sigtramp_frame_unwind);
 }
 
+void _initialize_ppcobsd_tdep ();
 void
-_initialize_ppcobsd_tdep (void)
+_initialize_ppcobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_OPENBSD,
   ppcobsd_init_abi);
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 281ee4d284a7..5f2678c8c70b 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2737,8 +2737,9 @@ eval_command (const char *arg, int from_tty)
   execute_command (expanded.c_str (), from_tty);
 }
 
+void _initialize_printcmd ();
 void
-_initialize_printcmd (void)
+_initialize_printcmd ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/probe.c b/gdb/probe.c
index d813b3e5e8b6..a21df73d0ec8 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -876,8 +876,9 @@ static const struct internalvar_funcs probe_funcs =
 
 std::vector<const static_probe_ops *> all_static_probe_ops;
 
+void _initialize_probe ();
 void
-_initialize_probe (void)
+_initialize_probe ()
 {
   all_static_probe_ops.push_back (&any_static_probe_ops);
 
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index 4ad1cdc06323..d7ad5031b0a2 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -416,8 +416,9 @@ proc_prettyfprint_status (long flags, int why, int what, int thread)
     }
 }
 
+void _initialize_proc_api ();
 void
-_initialize_proc_api (void)
+_initialize_proc_api ()
 {
   add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\
 Set tracing for /proc api calls."), _("\
diff --git a/gdb/proc-events.c b/gdb/proc-events.c
index 5fd92b5328ec..e921c47f8f05 100644
--- a/gdb/proc-events.c
+++ b/gdb/proc-events.c
@@ -762,8 +762,9 @@ proc_prettyprint_actionset (struct sigaction *actions, int verbose)
 {
 }
 
+void _initialize_proc_events ();
 void
-_initialize_proc_events (void)
+_initialize_proc_events ()
 {
   init_syscall_table ();
 }
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index 86f79ad58389..e0383700a1d7 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -212,8 +212,9 @@ ps_getpid (struct ps_prochandle *ph)
   return ph->thread->ptid.pid ();
 }
 
+void _initialize_proc_service ();
 void
-_initialize_proc_service (void)
+_initialize_proc_service ()
 {
   /* This function solely exists to make sure this module is linked
      into the final binary.  */
diff --git a/gdb/procfs.c b/gdb/procfs.c
index a59e32c6d7ad..09a036f90b98 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3700,8 +3700,9 @@ proc_untrace_sysexit_cmd (const char *args, int from_tty)
   proc_trace_syscalls (args, from_tty, PR_SYSEXIT, FLAG_RESET);
 }
 
+void _initialize_procfs ();
 void
-_initialize_procfs (void)
+_initialize_procfs ()
 {
   gdb::observers::inferior_created.attach (procfs_inferior_created);
 
diff --git a/gdb/producer.c b/gdb/producer.c
index 7e5d4478c8be..735a928f335a 100644
--- a/gdb/producer.c
+++ b/gdb/producer.c
@@ -208,6 +208,7 @@ Version 18.0 Beta";
 }
 #endif
 
+void _initialize_producer ();
 void
 _initialize_producer ()
 {
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 7caf1c6029a9..09231bf981d2 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -2154,8 +2154,9 @@ maintenance_check_psymtabs (const char *ignore, int from_tty)
       }
 }
 
+void _initialize_psymtab ();
 void
-_initialize_psymtab (void)
+_initialize_psymtab ()
 {
   add_cmd ("psymbols", class_maintenance, maintenance_print_psymbols, _("\
 Print dump of current partial symbol definitions.\n\
diff --git a/gdb/python/python.c b/gdb/python/python.c
index bf214fae6e2d..f7aadb1633c8 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1730,8 +1730,9 @@ do_start_initialization ()
 /* See python.h.  */
 cmd_list_element *python_cmd_element = nullptr;
 
+void _initialize_python ();
 void
-_initialize_python (void)
+_initialize_python ()
 {
   add_com ("python-interactive", class_obscure,
    python_interactive_command,
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 59fdfaba7946..5d24c59e9969 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -598,6 +598,7 @@ Support for Ravenscar task/thread switching is disabled\n"));
 /* Module startup initialization function, automagically called by
    init.c.  */
 
+void _initialize_ravenscar ();
 void
 _initialize_ravenscar ()
 {
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 7e5b7860df6e..33ee4e9d8170 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -3147,8 +3147,9 @@ show_record_pt_buffer_size_value (struct ui_file *file, int from_tty,
 
 /* Initialize btrace commands.  */
 
+void _initialize_record_btrace ();
 void
-_initialize_record_btrace (void)
+_initialize_record_btrace ()
 {
   add_prefix_cmd ("btrace", class_obscure, cmd_record_btrace_start,
   _("Start branch trace recording."), &record_btrace_cmdlist,
diff --git a/gdb/record-full.c b/gdb/record-full.c
index f759a5185fd2..16966220e0f0 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -2812,8 +2812,9 @@ show_record_full_command (const char *args, int from_tty)
   cmd_show_list (show_record_full_cmdlist, from_tty, "");
 }
 
+void _initialize_record_full ();
 void
-_initialize_record_full (void)
+_initialize_record_full ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/record.c b/gdb/record.c
index 51d2a94a2bf7..94600eb5e7ee 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -772,8 +772,9 @@ set_record_call_history_size (const char *args, int from_tty,
  &record_call_history_size);
 }
 
+void _initialize_record ();
 void
-_initialize_record (void)
+_initialize_record ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/regcache-dump.c b/gdb/regcache-dump.c
index 7d4455ad57c0..10f6e49a786d 100644
--- a/gdb/regcache-dump.c
+++ b/gdb/regcache-dump.c
@@ -305,8 +305,9 @@ maintenance_print_remote_registers (const char *args, int from_tty)
   regcache_print (args, regcache_dump_remote);
 }
 
+void _initialize_regcache_dump ();
 void
-_initialize_regcache_dump (void)
+_initialize_regcache_dump ()
 {
   add_cmd ("registers", class_maintenance, maintenance_print_registers,
    _("Print the internal register configuration.\n"
diff --git a/gdb/regcache.c b/gdb/regcache.c
index b9f1b0a349fd..4f079c91a7f2 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1854,8 +1854,9 @@ cooked_write_test (struct gdbarch *gdbarch)
 } // namespace selftests
 #endif /* GDB_SELF_TEST */
 
+void _initialize_regcache ();
 void
-_initialize_regcache (void)
+_initialize_regcache ()
 {
   regcache_descr_handle
     = gdbarch_data_register_post_init (init_regcache_descr);
diff --git a/gdb/reggroups.c b/gdb/reggroups.c
index 52b13fc9af88..aaaadd7d3946 100644
--- a/gdb/reggroups.c
+++ b/gdb/reggroups.c
@@ -321,8 +321,9 @@ struct reggroup *const all_reggroup = &all_group;
 struct reggroup *const save_reggroup = &save_group;
 struct reggroup *const restore_reggroup = &restore_group;
 
+void _initialize_reggroup ();
 void
-_initialize_reggroup (void)
+_initialize_reggroup ()
 {
   reggroups_data = gdbarch_data_register_pre_init (reggroups_init);
 
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index b6e70a434806..cc0011f958cf 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -237,8 +237,9 @@ remote_notif_state::~remote_notif_state ()
     delete pending_event[i];
 }
 
+void _initialize_notif ();
 void
-_initialize_notif (void)
+_initialize_notif ()
 {
   add_setshow_boolean_cmd ("notification", no_class, &notif_debug,
    _("\
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 582d206d60c7..6f78350a02c9 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -1294,8 +1294,9 @@ gdbsim_target::has_memory ()
   return true;
 }
 
+void _initialize_remote_sim ();
 void
-_initialize_remote_sim (void)
+_initialize_remote_sim ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/remote.c b/gdb/remote.c
index 665e2773e15b..03a00db0e8ce 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -14312,8 +14312,9 @@ set_range_stepping (const char *ignore_args, int from_tty,
     }
 }
 
+void _initialize_remote ();
 void
-_initialize_remote (void)
+_initialize_remote ()
 {
   struct cmd_list_element *cmd;
   const char *cmd_name;
diff --git a/gdb/reverse.c b/gdb/reverse.c
index fbffa5227dfa..1ccb9d279719 100644
--- a/gdb/reverse.c
+++ b/gdb/reverse.c
@@ -322,8 +322,9 @@ info_bookmarks_command (const char *args, int from_tty)
     }
 }
 
+void _initialize_reverse ();
 void
-_initialize_reverse (void)
+_initialize_reverse ()
 {
   add_com ("reverse-step", class_run, reverse_step, _("\
 Step program backward until it reaches the beginning of another source line.\n\
diff --git a/gdb/riscv-fbsd-nat.c b/gdb/riscv-fbsd-nat.c
index ca30506c12f7..27a093552f29 100644
--- a/gdb/riscv-fbsd-nat.c
+++ b/gdb/riscv-fbsd-nat.c
@@ -128,8 +128,9 @@ riscv_fbsd_nat_target::store_registers (struct regcache *regcache,
     }
 }
 
+void _initialize_riscv_fbsd_nat ();
 void
-_initialize_riscv_fbsd_nat (void)
+_initialize_riscv_fbsd_nat ()
 {
   add_inf_child_target (&the_riscv_fbsd_nat_target);
 }
diff --git a/gdb/riscv-fbsd-tdep.c b/gdb/riscv-fbsd-tdep.c
index 157907373c4e..8a9295904de7 100644
--- a/gdb/riscv-fbsd-tdep.c
+++ b/gdb/riscv-fbsd-tdep.c
@@ -225,8 +225,9 @@ riscv_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  riscv_fbsd_get_thread_local_address);
 }
 
+void _initialize_riscv_fbsd_tdep ();
 void
-_initialize_riscv_fbsd_tdep (void)
+_initialize_riscv_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_riscv, 0, GDB_OSABI_FREEBSD,
   riscv_fbsd_init_abi);
diff --git a/gdb/riscv-linux-nat.c b/gdb/riscv-linux-nat.c
index 2f95cb3951ad..7a96b7b0743a 100644
--- a/gdb/riscv-linux-nat.c
+++ b/gdb/riscv-linux-nat.c
@@ -310,8 +310,9 @@ riscv_linux_nat_target::store_registers (struct regcache *regcache, int regnum)
 
 /* Initialize RISC-V Linux native support.  */
 
+void _initialize_riscv_linux_nat ();
 void
-_initialize_riscv_linux_nat (void)
+_initialize_riscv_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_riscv_linux_nat_target;
diff --git a/gdb/riscv-linux-tdep.c b/gdb/riscv-linux-tdep.c
index 919c7e56e4f8..12c0eef223cb 100644
--- a/gdb/riscv-linux-tdep.c
+++ b/gdb/riscv-linux-tdep.c
@@ -186,8 +186,9 @@ riscv_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
 /* Initialize RISC-V Linux target support.  */
 
+void _initialize_riscv_linux_tdep ();
 void
-_initialize_riscv_linux_tdep (void)
+_initialize_riscv_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_riscv, 0, GDB_OSABI_LINUX,
   riscv_linux_init_abi);
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 9b06f7c08d35..d585b0be5ab0 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -3511,8 +3511,9 @@ riscv_init_reggroups ()
   csr_reggroup = reggroup_new ("csr", USER_REGGROUP);
 }
 
+void _initialize_riscv_tdep ();
 void
-_initialize_riscv_tdep (void)
+_initialize_riscv_tdep ()
 {
   riscv_create_csr_aliases ();
   riscv_init_reggroups ();
diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c
index f34f4c6d7f61..3705efdbe89a 100644
--- a/gdb/rl78-tdep.c
+++ b/gdb/rl78-tdep.c
@@ -1480,8 +1480,9 @@ rl78_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
 /* Register the above initialization routine.  */
 
+void _initialize_rl78_tdep ();
 void
-_initialize_rl78_tdep (void)
+_initialize_rl78_tdep ()
 {
   register_gdbarch_init (bfd_arch_rl78, rl78_gdbarch_init);
 }
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index 45fd7c4e7e9c..b5add6409954 100644
--- a/gdb/rs6000-aix-tdep.c
+++ b/gdb/rs6000-aix-tdep.c
@@ -1177,8 +1177,9 @@ rs6000_aix_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_append_unwinder (gdbarch, &aix_sighandle_frame_unwind);
 }
 
+void _initialize_rs6000_aix_tdep ();
 void
-_initialize_rs6000_aix_tdep (void)
+_initialize_rs6000_aix_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_rs6000,
                                   bfd_target_xcoff_flavour,
diff --git a/gdb/rs6000-lynx178-tdep.c b/gdb/rs6000-lynx178-tdep.c
index bf5d9d859d22..0a20a1783cd5 100644
--- a/gdb/rs6000-lynx178-tdep.c
+++ b/gdb/rs6000-lynx178-tdep.c
@@ -406,8 +406,9 @@ rs6000_lynx178_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
 }
 
+void _initialize_rs6000_lynx178_tdep ();
 void
-_initialize_rs6000_lynx178_tdep (void)
+_initialize_rs6000_lynx178_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_rs6000,
                                   bfd_target_xcoff_flavour,
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 7c916090165b..654e06e3e4bf 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -668,8 +668,9 @@ rs6000_nat_target::xfer_shared_libraries
     }
 }
 
+void _initialize_rs6000_nat ();
 void
-_initialize_rs6000_nat (void)
+_initialize_rs6000_nat ()
 {
   add_inf_child_target (&the_rs6000_nat_target);
 }
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index f61009941da2..ccffc39508a6 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -7307,8 +7307,9 @@ ppc_insn_ds_field (unsigned int insn)
 
 /* Initialization code.  */
 
+void _initialize_rs6000_tdep ();
 void
-_initialize_rs6000_tdep (void)
+_initialize_rs6000_tdep ()
 {
   gdbarch_register (bfd_arch_rs6000, rs6000_gdbarch_init, rs6000_dump_tdep);
   gdbarch_register (bfd_arch_powerpc, rs6000_gdbarch_init, rs6000_dump_tdep);
diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c
index 0676d9d6005e..74ab1e19a57a 100644
--- a/gdb/run-on-main-thread.c
+++ b/gdb/run-on-main-thread.c
@@ -89,6 +89,7 @@ run_on_main_thread (std::function<void ()> &&func)
   serial_event_set (runnable_event);
 }
 
+void _initialize_run_on_main_thread ();
 void
 _initialize_run_on_main_thread ()
 {
diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y
index 3ab9e26246c2..de4a8161635d 100644
--- a/gdb/rust-exp.y
+++ b/gdb/rust-exp.y
@@ -2826,8 +2826,9 @@ rust_lex_tests (void)
 
 #endif /* GDB_SELF_TEST */
 
+void _initialize_rust_exp ();
 void
-_initialize_rust_exp (void)
+_initialize_rust_exp ()
 {
   int code = regcomp (&number_regex, number_regex_text, REG_EXTENDED);
   /* If the regular expression was incorrect, it was a programming
diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c
index f282fa32a430..766eaa06ed3e 100644
--- a/gdb/rx-tdep.c
+++ b/gdb/rx-tdep.c
@@ -1057,8 +1057,9 @@ rx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
 /* Register the above initialization routine.  */
 
+void _initialize_rx_tdep ();
 void
-_initialize_rx_tdep (void)
+_initialize_rx_tdep ()
 {
   register_gdbarch_init (bfd_arch_rx, rx_gdbarch_init);
   initialize_tdesc_rx ();
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index 8fa050589785..922268d1ef21 100644
--- a/gdb/s12z-tdep.c
+++ b/gdb/s12z-tdep.c
@@ -685,8 +685,9 @@ s12z_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_s12z_tdep ();
 void
-_initialize_s12z_tdep (void)
+_initialize_s12z_tdep ()
 {
   gdbarch_register (bfd_arch_s12z, s12z_gdbarch_init, NULL);
 }
diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index d1634bd3a6ae..9ec806f5b591 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -1045,8 +1045,9 @@ s390_linux_nat_target::read_description ()
   tdesc_s390_linux32);
 }
 
+void _initialize_s390_nat ();
 void
-_initialize_s390_nat (void)
+_initialize_s390_nat ()
 {
   /* Register the target.  */
   linux_target = &the_s390_linux_nat_target;
diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c
index 65de27731948..e27ce2781f5f 100644
--- a/gdb/s390-linux-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -1177,8 +1177,9 @@ s390_linux_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_xml_syscall_file_name (gdbarch, XML_SYSCALL_FILENAME_S390X);
 }
 
+void _initialize_s390_linux_tdep ();
 void
-_initialize_s390_linux_tdep (void)
+_initialize_s390_linux_tdep ()
 {
   /* Hook us into the OSABI mechanism.  */
   gdbarch_register_osabi (bfd_arch_s390, bfd_mach_s390_31, GDB_OSABI_LINUX,
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index b08f331b0a1d..e01505549e67 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -7215,8 +7215,9 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_s390_tdep ();
 void
-_initialize_s390_tdep (void)
+_initialize_s390_tdep ()
 {
   /* Hook us into the gdbarch mechanism.  */
   register_gdbarch_init (bfd_arch_s390, s390_gdbarch_init);
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 0ec0e35943a0..14eeee9eb8c1 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -1510,8 +1510,9 @@ score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_score_tdep ();
 void
-_initialize_score_tdep (void)
+_initialize_score_tdep ()
 {
   gdbarch_register (bfd_arch_score, score_gdbarch_init, NULL);
 }
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index a1a8f29c7124..9a5b6dcd0e45 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -915,8 +915,9 @@ info_serial_command (const char *arg, int from_tty)
 #endif
 }
 
+void _initialize_ser_dos ();
 void
-_initialize_ser_dos (void)
+_initialize_ser_dos ()
 {
   serial_add_interface (&dos_ops);
 
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index e6363a1053d9..d204e861a7a8 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -1338,8 +1338,9 @@ static const struct serial_ops tcp_ops =
   net_windows_done_wait_handle
 };
 
+void _initialize_ser_windows ();
 void
-_initialize_ser_windows (void)
+_initialize_ser_windows ()
 {
   WSADATA wsa_data;
 
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index bdc6b054c5d0..db4c8e0e1a4c 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -228,8 +228,9 @@ static const struct serial_ops pipe_ops =
   ser_unix_write_prim
 };
 
+void _initialize_ser_pipe ();
 void
-_initialize_ser_pipe (void)
+_initialize_ser_pipe ()
 {
   serial_add_interface (&pipe_ops);
 }
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index cecdfb2626bb..c5581744f996 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -469,8 +469,9 @@ static const struct serial_ops tcp_ops =
 
 #endif /* USE_WIN32API */
 
+void _initialize_ser_tcp ();
 void
-_initialize_ser_tcp (void)
+_initialize_ser_tcp ()
 {
 #ifdef USE_WIN32API
   /* Do nothing; the TCP serial operations will be initialized in
diff --git a/gdb/ser-uds.c b/gdb/ser-uds.c
index 7d216de13d50..eb4fe2cb44e3 100644
--- a/gdb/ser-uds.c
+++ b/gdb/ser-uds.c
@@ -111,8 +111,9 @@ static const struct serial_ops uds_ops =
   uds_write_prim
 };
 
+void _initialize_ser_socket ();
 void
-_initialize_ser_socket (void)
+_initialize_ser_socket ()
 {
   serial_add_interface (&uds_ops);
 }
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index df6bc4c7c4ce..8000e352a09b 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -498,8 +498,9 @@ static const struct serial_ops hardwire_ops =
   ser_unix_write_prim
 };
 
+void _initialize_ser_hardwire ();
 void
-_initialize_ser_hardwire (void)
+_initialize_ser_hardwire ()
 {
   serial_add_interface (&hardwire_ops);
 
diff --git a/gdb/serial.c b/gdb/serial.c
index a1c3b91c7c2f..e0d64dd627f1 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -676,8 +676,9 @@ set_parity (const char *ignore_args, int from_tty, struct cmd_list_element *c)
     serial_parity = GDBPARITY_NONE;
 }
 
+void _initialize_serial ();
 void
-_initialize_serial (void)
+_initialize_serial ()
 {
 #if 0
   add_com ("connect", class_obscure, connect_command, _("\
diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
index 13c10eeeda65..5d2f38f5801e 100644
--- a/gdb/sh-linux-tdep.c
+++ b/gdb/sh-linux-tdep.c
@@ -208,8 +208,9 @@ sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tramp_frame_prepend_unwinder (gdbarch, &sh_linux_rt_sigreturn_tramp_frame);
 }
 
+void _initialize_sh_linux_tdep ();
 void
-_initialize_sh_linux_tdep (void)
+_initialize_sh_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_LINUX, sh_linux_init_abi);
 }
diff --git a/gdb/sh-nbsd-nat.c b/gdb/sh-nbsd-nat.c
index 873bdba00281..47cae00d4f53 100644
--- a/gdb/sh-nbsd-nat.c
+++ b/gdb/sh-nbsd-nat.c
@@ -96,8 +96,9 @@ sh_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
     }
 }
 
+void _initialize_shnbsd_nat ();
 void
-_initialize_shnbsd_nat (void)
+_initialize_shnbsd_nat ()
 {
   add_inf_child_target (&the_sh_nbsd_nat_target);
 }
diff --git a/gdb/sh-nbsd-tdep.c b/gdb/sh-nbsd-tdep.c
index bdf5e4f61308..aa319261684a 100644
--- a/gdb/sh-nbsd-tdep.c
+++ b/gdb/sh-nbsd-tdep.c
@@ -71,8 +71,9 @@ shnbsd_init_abi (struct gdbarch_info info,
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_shnbsd_tdep ();
 void
-_initialize_shnbsd_tdep (void)
+_initialize_shnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_NETBSD,
   shnbsd_init_abi);
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index e3aee0ac286b..b69313d050ff 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -2422,8 +2422,9 @@ set_sh_command (const char *args, int from_tty)
   help_list (setshcmdlist, "set sh ", all_commands, gdb_stdout);
 }
 
+void _initialize_sh_tdep ();
 void
-_initialize_sh_tdep (void)
+_initialize_sh_tdep ()
 {
   gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL);
 
diff --git a/gdb/skip.c b/gdb/skip.c
index b27bebaa26a5..05be42ab58d7 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -665,8 +665,9 @@ complete_skip_number (cmd_list_element *cmd,
     }
 }
 
+void _initialize_step_skip ();
 void
-_initialize_step_skip (void)
+_initialize_step_skip ()
 {
   static struct cmd_list_element *skiplist = NULL;
   struct cmd_list_element *c;
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index bf2325b6a9e7..333fb961931b 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1190,8 +1190,9 @@ sol_thread_target::get_ada_task_ptid (long lwp, long thread)
   return (thread_info->ptid);
 }
 
+void _initialize_sol_thread ();
 void
-_initialize_sol_thread (void)
+_initialize_sol_thread ()
 {
   void *dlhandle;
 
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index f44ea937d947..125c8960c20c 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -719,8 +719,9 @@ show_solib_aix_debug (struct ui_file *file, int from_tty,
 /* The target_so_ops for AIX targets.  */
 struct target_so_ops solib_aix_so_ops;
 
+void _initialize_solib_aix ();
 void
-_initialize_solib_aix (void)
+_initialize_solib_aix ()
 {
   solib_aix_so_ops.relocate_section_addresses
     = solib_aix_relocate_section_addresses;
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index 1ad781d686bd..03d91d1690a2 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -669,8 +669,9 @@ darwin_bfd_open (const char *pathname)
 
 struct target_so_ops darwin_so_ops;
 
+void _initialize_darwin_solib ();
 void
-_initialize_darwin_solib (void)
+_initialize_darwin_solib ()
 {
   darwin_so_ops.relocate_section_addresses = darwin_relocate_section_addresses;
   darwin_so_ops.free_so = darwin_free_so;
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c
index 52fa0e868aac..2acad96b5d9a 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -1022,8 +1022,9 @@ show_dsbt_debug (struct ui_file *file, int from_tty,
 
 struct target_so_ops dsbt_so_ops;
 
+void _initialize_dsbt_solib ();
 void
-_initialize_dsbt_solib (void)
+_initialize_dsbt_solib ()
 {
   dsbt_so_ops.relocate_section_addresses = dsbt_relocate_section_addresses;
   dsbt_so_ops.free_so = dsbt_free_so;
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index 10476f6250c9..582f2d5ede60 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -1142,8 +1142,9 @@ frv_fetch_objfile_link_map (struct objfile *objfile)
 
 struct target_so_ops frv_so_ops;
 
+void _initialize_frv_solib ();
 void
-_initialize_frv_solib (void)
+_initialize_frv_solib ()
 {
   frv_so_ops.relocate_section_addresses = frv_relocate_section_addresses;
   frv_so_ops.free_so = frv_free_so;
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 3122f06939f5..1c769bb4015b 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -3260,8 +3260,9 @@ svr4_iterate_over_objfiles_in_search_order
     }
 }
 
+void _initialize_svr4_solib ();
 void
-_initialize_svr4_solib (void)
+_initialize_svr4_solib ()
 {
   solib_svr4_data = gdbarch_data_register_pre_init (solib_svr4_init);
 
diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index 625f0990d109..93d95fdda652 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -438,8 +438,9 @@ solib_target_in_dynsym_resolve_code (CORE_ADDR pc)
 
 struct target_so_ops solib_target_so_ops;
 
+void _initialize_solib_target ();
 void
-_initialize_solib_target (void)
+_initialize_solib_target ()
 {
   solib_target_so_ops.relocate_section_addresses
     = solib_target_relocate_section_addresses;
diff --git a/gdb/solib.c b/gdb/solib.c
index 962ce32dcf03..ba388d77e8d0 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1569,8 +1569,9 @@ remove_user_added_objfile (struct objfile *objfile)
     }
 }
 
+void _initialize_solib ();
 void
-_initialize_solib (void)
+_initialize_solib ()
 {
   solib_data = gdbarch_data_register_pre_init (solib_init);
 
diff --git a/gdb/source-cache.c b/gdb/source-cache.c
index 965dc380b14c..d546ae595248 100644
--- a/gdb/source-cache.c
+++ b/gdb/source-cache.c
@@ -329,6 +329,7 @@ static void extract_lines_test ()
 }
 #endif
 
+void _initialize_source_cache ();
 void
 _initialize_source_cache ()
 {
diff --git a/gdb/source.c b/gdb/source.c
index 1bc98d376e55..327e9c1229eb 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1865,8 +1865,9 @@ source_lines_range::source_lines_range (int startline,
 }
 
 
+void _initialize_source ();
 void
-_initialize_source (void)
+_initialize_source ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index 03e2c6ebba80..1489d0980e1c 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -66,8 +66,9 @@ fill_fpregset (const struct regcache *regcache,
   sparc32_collect_fpregset (sparc_fpregmap, regcache, regnum, fpregs);
 }
 
+void _initialize_sparc_linux_nat ();
 void
-_initialize_sparc_linux_nat (void)
+_initialize_sparc_linux_nat ()
 {
   sparc_fpregmap = &sparc32_bsd_fpregmap;
 
diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c
index e1ba8c60b2ea..1c4adb836745 100644
--- a/gdb/sparc-linux-tdep.c
+++ b/gdb/sparc-linux-tdep.c
@@ -465,8 +465,9 @@ sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     sparc32_linux_gdb_signal_to_target);
 }
 
+void _initialize_sparc_linux_tdep ();
 void
-_initialize_sparc_linux_tdep (void)
+_initialize_sparc_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_LINUX,
   sparc32_linux_init_abi);
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 81d16cecfdc3..dff0f5215657 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -305,8 +305,9 @@ sparc_xfer_wcookie (enum target_object object,
 }
 
 
+void _initialize_sparc_nat ();
 void
-_initialize_sparc_nat (void)
+_initialize_sparc_nat ()
 {
   /* Default to using SunOS 4 register sets.  */
   if (sparc_gregmap == NULL)
diff --git a/gdb/sparc-nbsd-nat.c b/gdb/sparc-nbsd-nat.c
index cf940f658378..7138d7df7376 100644
--- a/gdb/sparc-nbsd-nat.c
+++ b/gdb/sparc-nbsd-nat.c
@@ -57,8 +57,9 @@ sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 
 static sparc_target<inf_ptrace_target> the_sparc_nbsd_nat_target;
 
+void _initialize_sparcnbsd_nat ();
 void
-_initialize_sparcnbsd_nat (void)
+_initialize_sparcnbsd_nat ()
 {
   sparc_gregmap = &sparc32nbsd_gregmap;
   sparc_fpregmap = &sparc32_bsd_fpregmap;
diff --git a/gdb/sparc-nbsd-tdep.c b/gdb/sparc-nbsd-tdep.c
index c1574bbdc617..7aba6020d27e 100644
--- a/gdb/sparc-nbsd-tdep.c
+++ b/gdb/sparc-nbsd-tdep.c
@@ -315,8 +315,9 @@ sparc32nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_sparcnbsd_tdep ();
 void
-_initialize_sparcnbsd_tdep (void)
+_initialize_sparcnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_NETBSD,
   sparc32nbsd_init_abi);
diff --git a/gdb/sparc-obsd-tdep.c b/gdb/sparc-obsd-tdep.c
index b5392d2aed16..53bdf6c15124 100644
--- a/gdb/sparc-obsd-tdep.c
+++ b/gdb/sparc-obsd-tdep.c
@@ -246,8 +246,9 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   bsd_uthread_set_collect_uthread (gdbarch, sparc32obsd_collect_uthread);
 }
 
+void _initialize_sparc32obsd_tdep ();
 void
-_initialize_sparc32obsd_tdep (void)
+_initialize_sparc32obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_OPENBSD,
   sparc32obsd_init_abi);
diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c
index a886449902dd..2df66d512cef 100644
--- a/gdb/sparc-sol2-tdep.c
+++ b/gdb/sparc-sol2-tdep.c
@@ -293,8 +293,9 @@ sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
 }
 
+void _initialize_sparc_sol2_tdep ();
 void
-_initialize_sparc_sol2_tdep (void)
+_initialize_sparc_sol2_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0,
   GDB_OSABI_SOLARIS, sparc32_sol2_init_abi);
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 16d1c48755d3..e048f872c2a2 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -2258,8 +2258,9 @@ const struct sparc_fpregmap sparc32_bsd_fpregmap =
   32 * 4, /* %fsr */
 };
 
+void _initialize_sparc_tdep ();
 void
-_initialize_sparc_tdep (void)
+_initialize_sparc_tdep ()
 {
   register_gdbarch_init (bfd_arch_sparc, sparc32_gdbarch_init);
 }
diff --git a/gdb/sparc64-fbsd-nat.c b/gdb/sparc64-fbsd-nat.c
index d7d874836700..a3ca6705b084 100644
--- a/gdb/sparc64-fbsd-nat.c
+++ b/gdb/sparc64-fbsd-nat.c
@@ -62,8 +62,9 @@ sparc64fbsd_kvm_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 /* Add some extra features to the generic SPARC target.  */
 static sparc_target<fbsd_nat_target> the_sparc64_fbsd_nat_target;
 
+void _initialize_sparc64fbsd_nat ();
 void
-_initialize_sparc64fbsd_nat (void)
+_initialize_sparc64fbsd_nat ()
 {
   add_inf_child_target (&the_sparc64_fbsd_nat_target);
 
diff --git a/gdb/sparc64-fbsd-tdep.c b/gdb/sparc64-fbsd-tdep.c
index 873a888a25fd..0b4cbfaa3735 100644
--- a/gdb/sparc64-fbsd-tdep.c
+++ b/gdb/sparc64-fbsd-tdep.c
@@ -242,8 +242,9 @@ sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
+void _initialize_sparc64fbsd_tdep ();
 void
-_initialize_sparc64fbsd_tdep (void)
+_initialize_sparc64fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_FREEBSD, sparc64fbsd_init_abi);
diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c
index bb2bc7175e48..b7f27792b8f3 100644
--- a/gdb/sparc64-linux-nat.c
+++ b/gdb/sparc64-linux-nat.c
@@ -88,8 +88,9 @@ fill_fpregset (const struct regcache *regcache,
   sparc64_collect_fpregset (&sparc64_bsd_fpregmap, regcache, regnum, fpregs);
 }
 
+void _initialize_sparc64_linux_nat ();
 void
-_initialize_sparc64_linux_nat (void)
+_initialize_sparc64_linux_nat ()
 {
   sparc_fpregmap = &sparc64_bsd_fpregmap;
 
diff --git a/gdb/sparc64-linux-tdep.c b/gdb/sparc64-linux-tdep.c
index 78de22a3bfdd..de6c04790099 100644
--- a/gdb/sparc64-linux-tdep.c
+++ b/gdb/sparc64-linux-tdep.c
@@ -408,8 +408,9 @@ sparc64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  sparc64_linux_handle_segmentation_fault);
 }
 
+void _initialize_sparc64_linux_tdep ();
 void
-_initialize_sparc64_linux_tdep (void)
+_initialize_sparc64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_LINUX, sparc64_linux_init_abi);
diff --git a/gdb/sparc64-nat.c b/gdb/sparc64-nat.c
index 50c312f262a0..fa34c8ca04c9 100644
--- a/gdb/sparc64-nat.c
+++ b/gdb/sparc64-nat.c
@@ -69,8 +69,9 @@ sparc64_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum)
   return 0;
 }
 
+void _initialize_sparc64_nat ();
 void
-_initialize_sparc64_nat (void)
+_initialize_sparc64_nat ()
 {
   sparc_supply_gregset = sparc64_supply_gregset;
   sparc_collect_gregset = sparc64_collect_gregset;
diff --git a/gdb/sparc64-nbsd-nat.c b/gdb/sparc64-nbsd-nat.c
index 65ca2fb1b8e9..5e249b629d16 100644
--- a/gdb/sparc64-nbsd-nat.c
+++ b/gdb/sparc64-nbsd-nat.c
@@ -170,8 +170,9 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 /* We've got nothing to add to the generic SPARC target.  */
 static sparc_target<inf_ptrace_target> the_sparc64_nbsd_nat_target;
 
+void _initialize_sparc64nbsd_nat ();
 void
-_initialize_sparc64nbsd_nat (void)
+_initialize_sparc64nbsd_nat ()
 {
   sparc_supply_gregset = sparc64nbsd_supply_gregset;
   sparc_collect_gregset = sparc64nbsd_collect_gregset;
diff --git a/gdb/sparc64-nbsd-tdep.c b/gdb/sparc64-nbsd-tdep.c
index a292bf13c1a0..cd5bfe89410f 100644
--- a/gdb/sparc64-nbsd-tdep.c
+++ b/gdb/sparc64-nbsd-tdep.c
@@ -268,8 +268,9 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }
 
+void _initialize_sparc64nbsd_tdep ();
 void
-_initialize_sparc64nbsd_tdep (void)
+_initialize_sparc64nbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_NETBSD, sparc64nbsd_init_abi);
diff --git a/gdb/sparc64-obsd-nat.c b/gdb/sparc64-obsd-nat.c
index 6c2a02d6ed7f..502599badec1 100644
--- a/gdb/sparc64-obsd-nat.c
+++ b/gdb/sparc64-obsd-nat.c
@@ -109,8 +109,9 @@ sparc64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 /* Add some extra features to the generic SPARC target.  */
 static sparc_target<obsd_nat_target> the_sparc64_obsd_nat_target;
 
+void _initialize_sparc64obsd_nat ();
 void
-_initialize_sparc64obsd_nat (void)
+_initialize_sparc64obsd_nat ()
 {
   sparc_supply_gregset = sparc64_supply_gregset;
   sparc_collect_gregset = sparc64_collect_gregset;
diff --git a/gdb/sparc64-obsd-tdep.c b/gdb/sparc64-obsd-tdep.c
index 19715c26a500..fe55124ea022 100644
--- a/gdb/sparc64-obsd-tdep.c
+++ b/gdb/sparc64-obsd-tdep.c
@@ -440,8 +440,9 @@ sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   bsd_uthread_set_collect_uthread (gdbarch, sparc64obsd_collect_uthread);
 }
 
+void _initialize_sparc64obsd_tdep ();
 void
-_initialize_sparc64obsd_tdep (void)
+_initialize_sparc64obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_OPENBSD, sparc64obsd_init_abi);
diff --git a/gdb/sparc64-sol2-tdep.c b/gdb/sparc64-sol2-tdep.c
index a1367423c35f..550fed724fc3 100644
--- a/gdb/sparc64-sol2-tdep.c
+++ b/gdb/sparc64-sol2-tdep.c
@@ -243,8 +243,9 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
 }
 
+void _initialize_sparc64_sol2_tdep ();
 void
-_initialize_sparc64_sol2_tdep (void)
+_initialize_sparc64_sol2_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_SOLARIS, sparc64_sol2_init_abi);
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 25de497d9221..a11da6ab2e80 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -534,8 +534,9 @@ adi_assign_command (const char *args, int from_tty)
   do_assign (next_address, cnt, version);
 }
 
+void _initialize_sparc64_adi_tdep ();
 void
-_initialize_sparc64_adi_tdep (void)
+_initialize_sparc64_adi_tdep ()
 {
 
   add_prefix_cmd ("adi", class_support, info_adi_command,
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 736839a0b0ed..a23ebf6b6061 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -4779,8 +4779,9 @@ hashname (const char *name)
 
 /* Initializer for this module.  */
 
+void _initialize_stabsread ();
 void
-_initialize_stabsread (void)
+_initialize_stabsread ()
 {
   undef_types_allocated = 20;
   undef_types_length = 0;
diff --git a/gdb/stack.c b/gdb/stack.c
index 92784c933968..af30405f29ef 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -3339,8 +3339,9 @@ static struct cmd_list_element *select_frame_cmd_list = NULL;
 /* Commands with a prefix of `info frame'.  */
 static struct cmd_list_element *info_frame_cmd_list = NULL;
 
+void _initialize_stack ();
 void
-_initialize_stack (void)
+_initialize_stack ()
 {
   struct cmd_list_element *cmd;
 
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 50f6d518133a..2d1521225163 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1709,8 +1709,9 @@ info_probes_stap_command (const char *arg, int from_tty)
   info_probes_for_spops (arg, from_tty, &stap_static_probe_ops);
 }
 
+void _initialize_stap_probe ();
 void
-_initialize_stap_probe (void)
+_initialize_stap_probe ()
 {
   all_static_probe_ops.push_back (&stap_static_probe_ops);
 
diff --git a/gdb/std-regs.c b/gdb/std-regs.c
index b9c906b9c3f4..c4220733a819 100644
--- a/gdb/std-regs.c
+++ b/gdb/std-regs.c
@@ -91,8 +91,9 @@ value_of_builtin_frame_ps_reg (struct frame_info *frame, const void *baton)
   error (_("Standard register ``$ps'' is not available for this target"));
 }
 
+void _initialize_frame_reg ();
 void
-_initialize_frame_reg (void)
+_initialize_frame_reg ()
 {
   /* Frame based $fp, $pc, $sp and $ps.  These only come into play
      when the target does not define its own version of these
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index f233b963062f..53a77a5405dc 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -645,8 +645,9 @@ show_debug_symfile (struct ui_file *file, int from_tty,
   fprintf_filtered (file, _("Symfile debugging is %s.\n"), value);
 }
 
+void _initialize_symfile_debug ();
 void
-_initialize_symfile_debug (void)
+_initialize_symfile_debug ()
 {
   add_setshow_boolean_cmd ("symfile", no_class, &debug_symfile, _("\
 Set debugging of the symfile functions."), _("\
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c
index 6dcd6555eda9..a62d0d0c8f47 100644
--- a/gdb/symfile-mem.c
+++ b/gdb/symfile-mem.c
@@ -203,8 +203,9 @@ add_vsyscall_page (struct target_ops *target, int from_tty)
     }
 }
 
+void _initialize_symfile_mem ();
 void
-_initialize_symfile_mem (void)
+_initialize_symfile_mem ()
 {
   add_cmd ("add-symbol-file-from-memory", class_files,
            add_symbol_file_from_memory_command,
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d5a797a32cba..f7bada75f350 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3864,8 +3864,9 @@ test_set_ext_lang_command ()
 
 #endif /* GDB_SELF_TEST */
 
+void _initialize_symfile ();
 void
-_initialize_symfile (void)
+_initialize_symfile ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index a5b17ffa3810..393a0343b90b 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -1040,8 +1040,9 @@ maintenance_info_line_tables (const char *regexp, int from_tty)
 
 /* Do early runtime initializations.  */
 
+void _initialize_symmisc ();
 void
-_initialize_symmisc (void)
+_initialize_symmisc ()
 {
   std_in = stdin;
   std_out = stdout;
diff --git a/gdb/symtab.c b/gdb/symtab.c
index cdd9f2e4c12c..d5ba249ced60 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -6689,8 +6689,9 @@ info_module_var_func_command_completer (struct cmd_list_element *ignore,
 
 
 
+void _initialize_symtab ();
 void
-_initialize_symtab (void)
+_initialize_symtab ()
 {
   cmd_list_element *c;
 
diff --git a/gdb/target-dcache.c b/gdb/target-dcache.c
index 9bdc3df79880..0226d6727808 100644
--- a/gdb/target-dcache.c
+++ b/gdb/target-dcache.c
@@ -152,8 +152,9 @@ code_cache_enabled_p (void)
   return code_cache_enabled;
 }
 
+void _initialize_target_dcache ();
 void
-_initialize_target_dcache (void)
+_initialize_target_dcache ()
 {
   add_setshow_boolean_cmd ("stack-cache", class_support,
    &stack_cache_enabled_1, _("\
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 46b123cd5921..04711ba2fa52 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -1824,8 +1824,9 @@ maintenance_check_xml_descriptions (const char *dir, int from_tty)
    (long) selftests::xml_tdesc.size (), failed);
 }
 
+void _initialize_target_descriptions ();
 void
-_initialize_target_descriptions (void)
+_initialize_target_descriptions ()
 {
   tdesc_data = gdbarch_data_register_pre_init (tdesc_data_init);
 
diff --git a/gdb/thread.c b/gdb/thread.c
index 03fdc05140c1..001fdd42c5e9 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -2189,8 +2189,9 @@ static const struct internalvar_funcs gthread_funcs =
   NULL
 };
 
+void _initialize_thread ();
 void
-_initialize_thread (void)
+_initialize_thread ()
 {
   static struct cmd_list_element *thread_apply_list = NULL;
   cmd_list_element *c;
diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c
index 2dfd40df3265..1b626b5a174d 100644
--- a/gdb/tic6x-linux-tdep.c
+++ b/gdb/tic6x-linux-tdep.c
@@ -204,8 +204,9 @@ tic6x_uclinux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  &tic6x_linux_rt_sigreturn_tramp_frame);
 }
 
+void _initialize_tic6x_linux_tdep ();
 void
-_initialize_tic6x_linux_tdep (void)
+_initialize_tic6x_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_tic6x, 0, GDB_OSABI_LINUX,
   tic6x_uclinux_init_abi);
diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c
index 35a85129fda3..a05675c570cc 100644
--- a/gdb/tic6x-tdep.c
+++ b/gdb/tic6x-tdep.c
@@ -1301,8 +1301,9 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_tic6x_tdep ();
 void
-_initialize_tic6x_tdep (void)
+_initialize_tic6x_tdep ()
 {
   register_gdbarch_init (bfd_arch_tic6x, tic6x_gdbarch_init);
 }
diff --git a/gdb/tilegx-linux-nat.c b/gdb/tilegx-linux-nat.c
index ac40baf4482c..219693b966fd 100644
--- a/gdb/tilegx-linux-nat.c
+++ b/gdb/tilegx-linux-nat.c
@@ -164,8 +164,9 @@ tilegx_linux_nat_target::store_registers (struct regcache *regcache,
     perror_with_name (_("Couldn't write registers"));
 }
 
+void _initialize_tile_linux_nat ();
 void
-_initialize_tile_linux_nat (void)
+_initialize_tile_linux_nat ()
 {
   linux_target = &the_tilegx_linux_nat_target;
   add_inf_child_target (&the_tilegx_linux_nat_target);
diff --git a/gdb/tilegx-linux-tdep.c b/gdb/tilegx-linux-tdep.c
index db82bc78f52a..e656187849cb 100644
--- a/gdb/tilegx-linux-tdep.c
+++ b/gdb/tilegx-linux-tdep.c
@@ -135,8 +135,9 @@ tilegx_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver);
 }
 
+void _initialize_tilegx_linux_tdep ();
 void
-_initialize_tilegx_linux_tdep (void)
+_initialize_tilegx_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_tilegx, bfd_mach_tilegx, GDB_OSABI_LINUX,
   tilegx_linux_init_abi);
diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c
index 13dfc2b36b08..9290bc3878b7 100644
--- a/gdb/tilegx-tdep.c
+++ b/gdb/tilegx-tdep.c
@@ -1032,8 +1032,9 @@ tilegx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_tilegx_tdep ();
 void
-_initialize_tilegx_tdep (void)
+_initialize_tilegx_tdep ()
 {
   register_gdbarch_init (bfd_arch_tilegx, tilegx_gdbarch_init);
 }
diff --git a/gdb/tracectf.c b/gdb/tracectf.c
index 374e9bbcc507..1c7003c2c9a9 100644
--- a/gdb/tracectf.c
+++ b/gdb/tracectf.c
@@ -1721,8 +1721,9 @@ ctf_target::traceframe_info ()
 
 /* module initialization */
 
+void _initialize_ctf ();
 void
-_initialize_ctf (void)
+_initialize_ctf ()
 {
 #if HAVE_LIBBABELTRACE
   add_target (ctf_target_info, ctf_target_open, filename_completer);
diff --git a/gdb/tracefile-tfile.c b/gdb/tracefile-tfile.c
index c1a4a4933724..ea1917747517 100644
--- a/gdb/tracefile-tfile.c
+++ b/gdb/tracefile-tfile.c
@@ -1131,8 +1131,9 @@ tfile_append_tdesc_line (const char *line)
   buffer_grow_str (&trace_tdesc, "\n");
 }
 
+void _initialize_tracefile_tfile ();
 void
-_initialize_tracefile_tfile (void)
+_initialize_tracefile_tfile ()
 {
   add_target (tfile_target_info, tfile_target_open, filename_completer);
 }
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index df00b56ba9ce..7f1a25a2cc29 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -471,8 +471,9 @@ tracefile_target::get_trace_status (struct trace_status *ts)
   return -1;
 }
 
+void _initialize_tracefile ();
 void
-_initialize_tracefile (void)
+_initialize_tracefile ()
 {
   add_com ("tsave", class_trace, tsave_command, _("\
 Save the trace data to a file.\n\
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index a934e56d3b97..aa6bea4a8f4a 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3980,8 +3980,9 @@ static const struct internalvar_funcs sdata_funcs =
 cmd_list_element *while_stepping_cmd_element = nullptr;
 
 /* module initialization */
+void _initialize_tracepoint ();
 void
-_initialize_tracepoint (void)
+_initialize_tracepoint ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index 76a50fc4b2bf..0e45e0e7507f 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -277,8 +277,9 @@ tui_remove_hooks (void)
   tui_attach_detach_observers (false);
 }
 
+void _initialize_tui_hooks ();
 void
-_initialize_tui_hooks (void)
+_initialize_tui_hooks ()
 {
   /* Install the permanent hooks.  */
   gdb::observers::new_objfile.attach (tui_new_objfile_hook);
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 808a77dfd10c..978b5022152b 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -306,8 +306,9 @@ tui_interp_factory (const char *name)
   return new tui_interp (name);
 }
 
+void _initialize_tui_interp ();
 void
-_initialize_tui_interp (void)
+_initialize_tui_interp ()
 {
   interp_factory_register (INTERP_TUI, tui_interp_factory);
 
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 3720d3edc3c2..01961f550c26 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -790,8 +790,9 @@ initialize_layouts ()
 /* Function to initialize gdb commands, for tui window layout
    manipulation.  */
 
+void _initialize_tui_layout ();
 void
-_initialize_tui_layout (void)
+_initialize_tui_layout ()
 {
   struct cmd_list_element *cmd;
 
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 50b3e72e5103..80d1a270e637 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -650,8 +650,9 @@ tui_reggroup_completer (struct cmd_list_element *ignore,
     }
 }
 
+void _initialize_tui_regs ();
 void
-_initialize_tui_regs (void)
+_initialize_tui_regs ()
 {
   struct cmd_list_element **tuicmd, *cmd;
 
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 18e918827703..7758f2f40d59 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -370,8 +370,9 @@ tui_update_command (const char *arg, int from_tty)
 /* Function to initialize gdb commands, for tui window stack
    manipulation.  */
 
+void _initialize_tui_stack ();
 void
-_initialize_tui_stack (void)
+_initialize_tui_stack ()
 {
   add_com ("update", class_tui, tui_update_command,
    _("Update the source window and locator to "
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index df9bf43681e9..8b7c39916a3c 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1012,8 +1012,9 @@ parse_scrolling_args (const char *arg,
 /* Function to initialize gdb commands, for tui window
    manipulation.  */
 
+void _initialize_tui_win ();
 void
-_initialize_tui_win (void)
+_initialize_tui_win ()
 {
   static struct cmd_list_element *tui_setlist;
   static struct cmd_list_element *tui_showlist;
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 99d30a55a153..be19ef701d7b 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -605,8 +605,9 @@ tui_get_command_dimension (unsigned int *width,
   return true;
 }
 
+void _initialize_tui ();
 void
-_initialize_tui (void)
+_initialize_tui ()
 {
   struct cmd_list_element **tuicmd;
 
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index effc511e5bb6..e58cd5da289c 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -798,8 +798,9 @@ show_print_type_nested_types  (struct ui_file *file, int from_tty,
     }
 }
 
+void _initialize_typeprint ();
 void
-_initialize_typeprint (void)
+_initialize_typeprint ()
 {
   struct cmd_list_element *c;
 
diff --git a/gdb/ui-style.c b/gdb/ui-style.c
index 28024f57b6f4..2d6640bc700c 100644
--- a/gdb/ui-style.c
+++ b/gdb/ui-style.c
@@ -404,6 +404,7 @@ skip_ansi_escape (const char *buf, int *n_read)
   return true;
 }
 
+void _initialize_ui_style ();
 void
 _initialize_ui_style ()
 {
diff --git a/gdb/unittests/array-view-selftests.c b/gdb/unittests/array-view-selftests.c
index c1079bd505bb..b4fc86646ef5 100644
--- a/gdb/unittests/array-view-selftests.c
+++ b/gdb/unittests/array-view-selftests.c
@@ -523,6 +523,7 @@ run_tests ()
 } /* namespace array_view_tests */
 } /* namespace selftests */
 
+void _initialize_array_view_selftests ();
 void
 _initialize_array_view_selftests ()
 {
diff --git a/gdb/unittests/child-path-selftests.c b/gdb/unittests/child-path-selftests.c
index fdd692d736b0..24b918aef08d 100644
--- a/gdb/unittests/child-path-selftests.c
+++ b/gdb/unittests/child-path-selftests.c
@@ -59,6 +59,7 @@ test ()
 }
 }
 
+void _initialize_child_path_selftests ();
 void
 _initialize_child_path_selftests ()
 {
diff --git a/gdb/unittests/cli-utils-selftests.c b/gdb/unittests/cli-utils-selftests.c
index bc308f60b6d1..09c8565ce927 100644
--- a/gdb/unittests/cli-utils-selftests.c
+++ b/gdb/unittests/cli-utils-selftests.c
@@ -110,6 +110,7 @@ test_cli_utils ()
 }
 }
 
+void _initialize_cli_utils_selftests ();
 void
 _initialize_cli_utils_selftests ()
 {
diff --git a/gdb/unittests/common-utils-selftests.c b/gdb/unittests/common-utils-selftests.c
index 8934a3da4121..e24c3fdf0b47 100644
--- a/gdb/unittests/common-utils-selftests.c
+++ b/gdb/unittests/common-utils-selftests.c
@@ -125,6 +125,7 @@ string_vappendf_tests ()
 
 } /* namespace selftests */
 
+void _initialize_common_utils_selftests ();
 void
 _initialize_common_utils_selftests ()
 {
diff --git a/gdb/unittests/copy_bitwise-selftests.c b/gdb/unittests/copy_bitwise-selftests.c
index 80e09e711df6..d9e9132cf095 100644
--- a/gdb/unittests/copy_bitwise-selftests.c
+++ b/gdb/unittests/copy_bitwise-selftests.c
@@ -152,6 +152,7 @@ copy_bitwise_tests (void)
 
 } /* namespace selftests */
 
+void _initialize_copy_bitwise_utils_selftests ();
 void
 _initialize_copy_bitwise_utils_selftests ()
 {
diff --git a/gdb/unittests/environ-selftests.c b/gdb/unittests/environ-selftests.c
index 65a9c66bcee3..55318605a3b8 100644
--- a/gdb/unittests/environ-selftests.c
+++ b/gdb/unittests/environ-selftests.c
@@ -298,6 +298,7 @@ run_tests ()
 } /* namespace gdb_environ */
 } /* namespace selftests */
 
+void _initialize_environ_selftests ();
 void
 _initialize_environ_selftests ()
 {
diff --git a/gdb/unittests/filtered_iterator-selftests.c b/gdb/unittests/filtered_iterator-selftests.c
index 604d3c5d72d4..14060e1d0afb 100644
--- a/gdb/unittests/filtered_iterator-selftests.c
+++ b/gdb/unittests/filtered_iterator-selftests.c
@@ -155,6 +155,7 @@ test_filtered_iterator_eq ()
 
 } /* namespace selftests */
 
+void _initialize_filtered_iterator_selftests ();
 void
 _initialize_filtered_iterator_selftests ()
 {
diff --git a/gdb/unittests/format_pieces-selftests.c b/gdb/unittests/format_pieces-selftests.c
index bc1bc15c9338..80b408aae11f 100644
--- a/gdb/unittests/format_pieces-selftests.c
+++ b/gdb/unittests/format_pieces-selftests.c
@@ -142,6 +142,7 @@ run_tests ()
 } /* namespace format_pieces */
 } /* namespace selftests */
 
+void _initialize_format_pieces_selftests ();
 void
 _initialize_format_pieces_selftests ()
 {
diff --git a/gdb/unittests/function-view-selftests.c b/gdb/unittests/function-view-selftests.c
index fd0f81222fc5..610b53cb4837 100644
--- a/gdb/unittests/function-view-selftests.c
+++ b/gdb/unittests/function-view-selftests.c
@@ -171,6 +171,7 @@ run_tests ()
 } /* namespace function_view */
 } /* namespace selftests */
 
+void _initialize_function_view_selftests ();
 void
 _initialize_function_view_selftests ()
 {
diff --git a/gdb/unittests/help-doc-selftests.c b/gdb/unittests/help-doc-selftests.c
index 77b6d015bb9a..16ffc4f99073 100644
--- a/gdb/unittests/help-doc-selftests.c
+++ b/gdb/unittests/help-doc-selftests.c
@@ -98,6 +98,7 @@ help_doc_invariants_tests ()
 } /* namespace help_doc_tests */
 } /* namespace selftests */
 
+void _initialize_help_doc_selftests ();
 void
 _initialize_help_doc_selftests ()
 {
diff --git a/gdb/unittests/lookup_name_info-selftests.c b/gdb/unittests/lookup_name_info-selftests.c
index d5f26a4b0d33..002fc6979550 100644
--- a/gdb/unittests/lookup_name_info-selftests.c
+++ b/gdb/unittests/lookup_name_info-selftests.c
@@ -103,6 +103,7 @@ run_tests ()
 
 }} // namespace selftests::lookup_name
 
+void _initialize_lookup_name_info_selftests ();
 void
 _initialize_lookup_name_info_selftests ()
 {
diff --git a/gdb/unittests/main-thread-selftests.c b/gdb/unittests/main-thread-selftests.c
index 7f50ab43da5b..c51f34ef41d2 100644
--- a/gdb/unittests/main-thread-selftests.c
+++ b/gdb/unittests/main-thread-selftests.c
@@ -70,6 +70,7 @@ run_tests ()
 }
 }
 
+void _initialize_main_thread_selftests ();
 void
 _initialize_main_thread_selftests ()
 {
diff --git a/gdb/unittests/memory-map-selftests.c b/gdb/unittests/memory-map-selftests.c
index 904a306aabe2..42b5db6974ac 100644
--- a/gdb/unittests/memory-map-selftests.c
+++ b/gdb/unittests/memory-map-selftests.c
@@ -76,6 +76,7 @@ parse_memory_map_tests ()
 
 #endif /* HAVE_LIBEXPAT */
 
+void _initialize_memory_map_selftests ();
 void
 _initialize_memory_map_selftests ()
 {
diff --git a/gdb/unittests/memrange-selftests.c b/gdb/unittests/memrange-selftests.c
index e8b4dece93e1..b0402685d38a 100644
--- a/gdb/unittests/memrange-selftests.c
+++ b/gdb/unittests/memrange-selftests.c
@@ -106,6 +106,7 @@ normalize_mem_ranges_tests ()
 } /* namespace memrange_tests */
 } /* namespace selftests */
 
+void _initialize_memrange_selftests ();
 void
 _initialize_memrange_selftests ()
 {
diff --git a/gdb/unittests/mkdir-recursive-selftests.c b/gdb/unittests/mkdir-recursive-selftests.c
index a0e9341ca325..8647515e0625 100644
--- a/gdb/unittests/mkdir-recursive-selftests.c
+++ b/gdb/unittests/mkdir-recursive-selftests.c
@@ -81,6 +81,7 @@ test ()
 }
 }
 
+void _initialize_mkdir_recursive_selftests ();
 void
 _initialize_mkdir_recursive_selftests ()
 {
diff --git a/gdb/unittests/observable-selftests.c b/gdb/unittests/observable-selftests.c
index 7e3235b6ec0e..b14c3b71112c 100644
--- a/gdb/unittests/observable-selftests.c
+++ b/gdb/unittests/observable-selftests.c
@@ -127,6 +127,7 @@ run_tests ()
 } /* namespace observers */
 } /* namespace selftests */
 
+void _initialize_observer_selftest ();
 void
 _initialize_observer_selftest ()
 {
diff --git a/gdb/unittests/offset-type-selftests.c b/gdb/unittests/offset-type-selftests.c
index 86dac3e1d66c..1e0428bfd4cb 100644
--- a/gdb/unittests/offset-type-selftests.c
+++ b/gdb/unittests/offset-type-selftests.c
@@ -171,6 +171,7 @@ run_tests ()
 } /* namespace offset_type */
 } /* namespace selftests */
 
+void _initialize_offset_type_selftests ();
 void
 _initialize_offset_type_selftests ()
 {
diff --git a/gdb/unittests/optional-selftests.c b/gdb/unittests/optional-selftests.c
index ddaaeef261cf..c1b9e53ac410 100644
--- a/gdb/unittests/optional-selftests.c
+++ b/gdb/unittests/optional-selftests.c
@@ -87,6 +87,7 @@ run_tests ()
 } /* namespace optional */
 } /* namespace selftests */
 
+void _initialize_optional_selftests ();
 void
 _initialize_optional_selftests ()
 {
diff --git a/gdb/unittests/parse-connection-spec-selftests.c b/gdb/unittests/parse-connection-spec-selftests.c
index 3f71ec647954..6c0df356425d 100644
--- a/gdb/unittests/parse-connection-spec-selftests.c
+++ b/gdb/unittests/parse-connection-spec-selftests.c
@@ -239,6 +239,7 @@ run_tests ()
 } /* namespace parse_connection_spec_tests */
 } /* namespace selftests */
 
+void _initialize_parse_connection_spec_selftests ();
 void
 _initialize_parse_connection_spec_selftests ()
 {
diff --git a/gdb/unittests/rsp-low-selftests.c b/gdb/unittests/rsp-low-selftests.c
index 9e75c2374f1b..e848e58143ed 100644
--- a/gdb/unittests/rsp-low-selftests.c
+++ b/gdb/unittests/rsp-low-selftests.c
@@ -61,6 +61,7 @@ static void test_hex2str ()
 } /* namespace rsp_low */
 } /* namespace selftests */
 
+void _initialize_rsp_low_selftests ();
 void
 _initialize_rsp_low_selftests ()
 {
diff --git a/gdb/unittests/scoped_fd-selftests.c b/gdb/unittests/scoped_fd-selftests.c
index 73c1e2de5e34..3f0247642453 100644
--- a/gdb/unittests/scoped_fd-selftests.c
+++ b/gdb/unittests/scoped_fd-selftests.c
@@ -93,6 +93,7 @@ run_tests ()
 } /* namespace scoped_fd */
 } /* namespace selftests */
 
+void _initialize_scoped_fd_selftests ();
 void
 _initialize_scoped_fd_selftests ()
 {
diff --git a/gdb/unittests/scoped_mmap-selftests.c b/gdb/unittests/scoped_mmap-selftests.c
index fffad74536d5..fa963d1b47f3 100644
--- a/gdb/unittests/scoped_mmap-selftests.c
+++ b/gdb/unittests/scoped_mmap-selftests.c
@@ -135,6 +135,7 @@ run_tests ()
 
 #endif /* !defined(HAVE_SYS_MMAN_H) */
 
+void _initialize_scoped_mmap_selftests ();
 void
 _initialize_scoped_mmap_selftests ()
 {
diff --git a/gdb/unittests/scoped_restore-selftests.c b/gdb/unittests/scoped_restore-selftests.c
index b92103545fcf..d989678fbf83 100644
--- a/gdb/unittests/scoped_restore-selftests.c
+++ b/gdb/unittests/scoped_restore-selftests.c
@@ -103,6 +103,7 @@ run_tests ()
 } /* namespace scoped_restore_tests */
 } /* namespace selftests */
 
+void _initialize_scoped_restore_selftests ();
 void
 _initialize_scoped_restore_selftests ()
 {
diff --git a/gdb/unittests/string_view-selftests.c b/gdb/unittests/string_view-selftests.c
index 49fc95b7fb9b..a52419bb28a5 100644
--- a/gdb/unittests/string_view-selftests.c
+++ b/gdb/unittests/string_view-selftests.c
@@ -172,6 +172,7 @@ run_tests ()
 
 #endif /* __cplusplus < 201703L */
 
+void _initialize_string_view_selftests ();
 void
 _initialize_string_view_selftests ()
 {
diff --git a/gdb/unittests/style-selftests.c b/gdb/unittests/style-selftests.c
index 2cf6cf6932d5..eeab40f6bc7d 100644
--- a/gdb/unittests/style-selftests.c
+++ b/gdb/unittests/style-selftests.c
@@ -101,6 +101,7 @@ run_tests ()
 } /* namespace style */
 } /* namespace selftests */
 
+void _initialize_style_selftest ();
 void
 _initialize_style_selftest ()
 {
diff --git a/gdb/unittests/tracepoint-selftests.c b/gdb/unittests/tracepoint-selftests.c
index 62172b6bd2b4..63a4784f66d8 100644
--- a/gdb/unittests/tracepoint-selftests.c
+++ b/gdb/unittests/tracepoint-selftests.c
@@ -61,6 +61,7 @@ test_parse_static_tracepoint_marker_definition ()
 } /* namespace tracepoint_tests */
 } /* namespace selftests */
 
+void _initialize_tracepoint_selftests ();
 void
 _initialize_tracepoint_selftests ()
 {
diff --git a/gdb/unittests/tui-selftests.c b/gdb/unittests/tui-selftests.c
index b2dffaf49302..6144e23f3949 100644
--- a/gdb/unittests/tui-selftests.c
+++ b/gdb/unittests/tui-selftests.c
@@ -46,6 +46,7 @@ run_tests ()
 
 #endif /* TUI */
 
+void _initialize_tui_selftest ();
 void
 _initialize_tui_selftest ()
 {
diff --git a/gdb/unittests/unpack-selftests.c b/gdb/unittests/unpack-selftests.c
index 503412ef8d61..b02a79644bb4 100644
--- a/gdb/unittests/unpack-selftests.c
+++ b/gdb/unittests/unpack-selftests.c
@@ -53,6 +53,7 @@ unpack_field_as_long_tests (struct gdbarch *arch)
 }
 }
 
+void _initialize_unpack_selftests ();
 void
 _initialize_unpack_selftests ()
 {
diff --git a/gdb/unittests/utils-selftests.c b/gdb/unittests/utils-selftests.c
index 2b59266befda..f6ea2b9fac00 100644
--- a/gdb/unittests/utils-selftests.c
+++ b/gdb/unittests/utils-selftests.c
@@ -51,6 +51,7 @@ test_substitute_path_component ()
 }
 }
 
+void _initialize_utils_selftests ();
 void
 _initialize_utils_selftests ()
 {
diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c
index 027c1216180e..38e817ae7653 100644
--- a/gdb/unittests/vec-utils-selftests.c
+++ b/gdb/unittests/vec-utils-selftests.c
@@ -66,6 +66,7 @@ unordered_remove_tests ()
 } /* namespace vector_utils_tests */
 } /* amespace selftests */
 
+void _initialize_vec_utils_selftests ();
 void
 _initialize_vec_utils_selftests ()
 {
diff --git a/gdb/unittests/xml-utils-selftests.c b/gdb/unittests/xml-utils-selftests.c
index 88e8dfaac874..421b28ef3f61 100644
--- a/gdb/unittests/xml-utils-selftests.c
+++ b/gdb/unittests/xml-utils-selftests.c
@@ -48,6 +48,7 @@ static void test_xml_escape_text_append ()
 }
 }
 
+void _initialize_xml_utils ();
 void
 _initialize_xml_utils ()
 {
diff --git a/gdb/user-regs.c b/gdb/user-regs.c
index 4117067a0f81..a232b1eb0005 100644
--- a/gdb/user-regs.c
+++ b/gdb/user-regs.c
@@ -233,8 +233,9 @@ maintenance_print_user_registers (const char *args, int from_tty)
     fprintf_unfiltered (gdb_stdout, " %-11s %3d\n", reg->name, regnum);
 }
 
+void _initialize_user_regs ();
 void
-_initialize_user_regs (void)
+_initialize_user_regs ()
 {
   user_regs_data = gdbarch_data_register_post_init (user_regs_init);
 
diff --git a/gdb/utils.c b/gdb/utils.c
index 508c114687ea..fe874fb7844d 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3415,8 +3415,9 @@ copy_bitwise (gdb_byte *dest, ULONGEST dest_offset,
     }
 }
 
+void _initialize_utils ();
 void
-_initialize_utils (void)
+_initialize_utils ()
 {
   add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\
 Set number of characters where GDB should wrap lines of its output."), _("\
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index e5625a3f14ef..9b2e9b62e717 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -1453,8 +1453,9 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }
 
+void _initialize_v850_tdep ();
 void
-_initialize_v850_tdep (void)
+_initialize_v850_tdep ()
 {
   register_gdbarch_init (bfd_arch_v850, v850_gdbarch_init);
   register_gdbarch_init (bfd_arch_v850_rh850, v850_gdbarch_init);
diff --git a/gdb/valops.c b/gdb/valops.c
index 8488576ef810..7fc555a81088 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -3909,8 +3909,9 @@ cast_into_complex (struct type *type, struct value *val)
     error (_("cannot cast non-number to complex"));
 }
 
+void _initialize_valops ();
 void
-_initialize_valops (void)
+_initialize_valops ()
 {
   add_setshow_boolean_cmd ("overload-resolution", class_support,
    &overload_resolution, _("\
diff --git a/gdb/valprint.c b/gdb/valprint.c
index f7088d4d4984..f26a87da3bd4 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -3262,8 +3262,9 @@ make_value_print_options_def_group (value_print_options *opts)
   return {{value_print_option_defs}, opts};
 }
 
+void _initialize_valprint ();
 void
-_initialize_valprint (void)
+_initialize_valprint ()
 {
   cmd_list_element *cmd;
 
diff --git a/gdb/value.c b/gdb/value.c
index 53b51755d1d9..ceaeb835fa7f 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -4127,8 +4127,9 @@ test_insert_into_bit_range_vector ()
 } /* namespace selftests */
 #endif /* GDB_SELF_TEST */
 
+void _initialize_values ();
 void
-_initialize_values (void)
+_initialize_values ()
 {
   add_cmd ("convenience", no_class, show_convenience, _("\
 Debugger convenience (\"$foo\") variables and functions.\n\
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 48d3c3d9c532..8a7b7108f894 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2520,8 +2520,9 @@ varobj_invalidate (void)
   all_root_varobjs (varobj_invalidate_iter, NULL);
 }
 
+void _initialize_varobj ();
 void
-_initialize_varobj (void)
+_initialize_varobj ()
 {
   varobj_table = XCNEWVEC (struct vlist *, VAROBJ_TABLE_SIZE);
 
diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c
index 0fe8fbc09be0..899f3e3ed9ce 100644
--- a/gdb/vax-bsd-nat.c
+++ b/gdb/vax-bsd-nat.c
@@ -132,8 +132,9 @@ vaxbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }
 
+void _initialize_vaxbsd_nat ();
 void
-_initialize_vaxbsd_nat (void)
+_initialize_vaxbsd_nat ()
 {
   add_inf_child_target (&the_vax_bsd_nat_target);
 
diff --git a/gdb/vax-nbsd-tdep.c b/gdb/vax-nbsd-tdep.c
index 26e8251318e3..c2c08cc16036 100644
--- a/gdb/vax-nbsd-tdep.c
+++ b/gdb/vax-nbsd-tdep.c
@@ -34,8 +34,9 @@ vaxnbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
+void _initialize_vaxnbsd_tdep ();
 void
-_initialize_vaxnbsd_tdep (void)
+_initialize_vaxnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_NETBSD,
   vaxnbsd_elf_init_abi);
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index a83decd6bd62..9373dc848d41 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -507,8 +507,9 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return (gdbarch);
 }
 
+void _initialize_vax_tdep ();
 void
-_initialize_vax_tdep (void)
+_initialize_vax_tdep ()
 {
   gdbarch_register (bfd_arch_vax, vax_gdbarch_init, NULL);
 }
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index be5955d379fb..901e64263c63 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -3056,8 +3056,9 @@ windows_nat_target::thread_name (struct thread_info *thr)
 }
 
 
+void _initialize_windows_nat ();
 void
-_initialize_windows_nat (void)
+_initialize_windows_nat ()
 {
   x86_dr_low.set_control = cygwin_set_dr7;
   x86_dr_low.set_addr = cygwin_set_dr;
@@ -3218,8 +3219,9 @@ windows_nat_target::thread_alive (ptid_t ptid)
   return WaitForSingleObject (thread_rec (tid, FALSE)->h, 0) != WAIT_OBJECT_0;
 }
 
+void _initialize_check_for_gdb_ini ();
 void
-_initialize_check_for_gdb_ini (void)
+_initialize_check_for_gdb_ini ()
 {
   char *homedir;
   if (inhibit_gdbinit)
@@ -3315,8 +3317,9 @@ bad_GetConsoleFontSize (HANDLE w, DWORD nFont)
 /* Load any functions which may not be available in ancient versions
    of Windows.  */
 
+void _initialize_loadable ();
 void
-_initialize_loadable (void)
+_initialize_loadable ()
 {
   HMODULE hm = NULL;
 
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c
index b6e5b9ff7c26..12438e87af36 100644
--- a/gdb/windows-tdep.c
+++ b/gdb/windows-tdep.c
@@ -619,8 +619,9 @@ static const struct internalvar_funcs tlb_funcs =
   NULL
 };
 
+void _initialize_windows_tdep ();
 void
-_initialize_windows_tdep (void)
+_initialize_windows_tdep ()
 {
   init_w32_command_list ();
   add_cmd ("thread-information-block", class_info, display_tib,
diff --git a/gdb/x86-bsd-nat.c b/gdb/x86-bsd-nat.c
index 3fc6f6278276..2bb8f8a2347d 100644
--- a/gdb/x86-bsd-nat.c
+++ b/gdb/x86-bsd-nat.c
@@ -122,6 +122,7 @@ x86bsd_dr_get_control (void)
 
 #endif /* PT_GETDBREGS */
 
+void _initialize_x86_bsd_nat ();
 void
 _initialize_x86_bsd_nat ()
 {
diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c
index f07ef8582547..fb2c92c425b3 100644
--- a/gdb/x86-linux-nat.c
+++ b/gdb/x86-linux-nat.c
@@ -310,6 +310,7 @@ x86_linux_get_thread_area (pid_t pid, void *addr, unsigned int *base_addr)
 }
 
 
+void _initialize_x86_linux_nat ();
 void
 _initialize_x86_linux_nat ()
 {
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index d0fa90e49fb6..5c6061077f54 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -3128,8 +3128,9 @@ xcoff_get_n_import_files (bfd *abfd)
   return l_nimpid - 1;
 }
 
+void _initialize_xcoffread ();
 void
-_initialize_xcoffread (void)
+_initialize_xcoffread ()
 {
   add_symtab_fns (bfd_target_xcoff_flavour, &xcoff_sym_fns);
 }
diff --git a/gdb/xml-support.c b/gdb/xml-support.c
index bace5243ec08..c906b69fda0b 100644
--- a/gdb/xml-support.c
+++ b/gdb/xml-support.c
@@ -1008,8 +1008,10 @@ xml_fetch_content_from_file (const char *filename, void *baton)
   return text;
 }
 
+void _initialize_xml_support ();
+void _initialize_xml_support ();
 void
-_initialize_xml_support (void)
+_initialize_xml_support ()
 {
   add_setshow_boolean_cmd ("xml", class_maintenance, &debug_xml,
    _("Set XML parser debugging."),
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c
index 988d78e6934f..0206af8bebc5 100644
--- a/gdb/xstormy16-tdep.c
+++ b/gdb/xstormy16-tdep.c
@@ -833,8 +833,9 @@ xstormy16_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
    Initializer function for the Sanyo Xstormy16a module.
    Called by gdb at start-up.  */
 
+void _initialize_xstormy16_tdep ();
 void
-_initialize_xstormy16_tdep (void)
+_initialize_xstormy16_tdep ()
 {
   register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init);
 }
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index 097d7bd6f968..57ad8a697224 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -328,8 +328,9 @@ ps_get_thread_area (struct ps_prochandle *ph,
   return PS_OK;
 }
 
+void _initialize_xtensa_linux_nat ();
 void
-_initialize_xtensa_linux_nat (void)
+_initialize_xtensa_linux_nat ()
 {
   const xtensa_regtable_t *ptr;
 
diff --git a/gdb/xtensa-linux-tdep.c b/gdb/xtensa-linux-tdep.c
index ab07eedd0e8e..028c8ea034c9 100644
--- a/gdb/xtensa-linux-tdep.c
+++ b/gdb/xtensa-linux-tdep.c
@@ -125,8 +125,9 @@ xtensa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }
 
+void _initialize_xtensa_linux_tdep ();
 void
-_initialize_xtensa_linux_tdep (void)
+_initialize_xtensa_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_xtensa, bfd_mach_xtensa, GDB_OSABI_LINUX,
   xtensa_linux_init_abi);
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index d44c5b52c09f..bbd92d5cf8f0 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -3253,8 +3253,9 @@ xtensa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
   error (_("xtensa_dump_tdep(): not implemented"));
 }
 
+void _initialize_xtensa_tdep ();
 void
-_initialize_xtensa_tdep (void)
+_initialize_xtensa_tdep ()
 {
   gdbarch_register (bfd_arch_xtensa, xtensa_gdbarch_init, xtensa_dump_tdep);
   xtensa_init_reggroups ();
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 2/7] gdb: add declaration to Python init function

Simon Marchi-5
In reply to this post by Simon Marchi-5
When I try to enable -Wmissing-declarations, I get this error:

      CXX    python/python.o
    /home/smarchi/src/binutils-gdb/gdb/python/python.c: In function ‘PyObject* init__gdb_module()’:
    /home/smarchi/src/binutils-gdb/gdb/python/python.c:1582:1: error: no previous declaration for ‘PyObject* init__gdb_module()’ [-Werror=missing-declarations]
     init__gdb_module (void)
     ^~~~~~~~~~~~~~~~

Prevent it by providing a declaration just before the definition.

gdb/ChangeLog:

        * python/python.c (init__gdb_module): Add declaration.

Change-Id: I394bc691b7db624708cc4cb2cda28a56ab85a82b
---
 gdb/python/python.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/python/python.c b/gdb/python/python.c
index f7aadb1633c8..e0c05f1d0689 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1555,6 +1555,7 @@ finalize_python (void *ignore)
 /* This is called via the PyImport_AppendInittab mechanism called
    during initialization, to make the built-in _gdb module known to
    Python.  */
+PyMODINIT_FUNC init__gdb_module (void);
 PyMODINIT_FUNC
 init__gdb_module (void)
 {
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 3/7] gdbserver: include hostio.h in hostio-errno.c

Simon Marchi-5
In reply to this post by Simon Marchi-5
... so that the definition of hostio_last_error_from_errno in hostio-errno.c
sees the declaration in hostio.h.

Fix this error:

      CXX    hostio-errno.o
    /home/smarchi/src/binutils-gdb/gdb/gdbserver/hostio-errno.c: In function ‘void hostio_last_error_from_errno(char*)’:
    /home/smarchi/src/binutils-gdb/gdb/gdbserver/hostio-errno.c:28:1: error: no previous declaration for ‘void hostio_last_error_from_errno(char*)’ [-Werror=missing-declarations]
     hostio_last_error_from_errno (char *buf)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

gdb/gdbserver/ChangeLog:

        * hostio-errno.c: Include hostio.h.

Change-Id: I056308fd4ce12810d0a1b826c423bd0c7eeb8944
---
 gdb/gdbserver/hostio-errno.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/gdbserver/hostio-errno.c b/gdb/gdbserver/hostio-errno.c
index a4c25e04a604..b75e64d212e7 100644
--- a/gdb/gdbserver/hostio-errno.c
+++ b/gdb/gdbserver/hostio-errno.c
@@ -22,6 +22,9 @@
    on top of errno.  */
 
 #include "server.h"
+
+#include "hostio.h"
+
 #include "gdbsupport/fileio.h"
 
 void
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 4/7] gdbserver: include gdbsupport/common-inferior.h in inferiors.c

Simon Marchi-5
In reply to this post by Simon Marchi-5
So that the definitions of get_inferior_cwd/set_inferior_cwd see their
declarations.

      CXX    inferiors.o
    /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c: In function ‘const char* get_inferior_cwd()’:
    /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c:228:1: error: no previous declaration for ‘const char* get_inferior_cwd()’ [-Werror=missing-declarations]
     get_inferior_cwd ()
     ^~~~~~~~~~~~~~~~
    /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c: In function ‘void set_inferior_cwd(const char*)’:
    /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c:236:1: error: no previous declaration for ‘void set_inferior_cwd(const char*)’ [-Werror=missing-declarations]
     set_inferior_cwd (const char *cwd)
     ^~~~~~~~~~~~~~~~

gdb/gdbserver/ChangeLog:

        * inferiors.c: Include gdbsupport/common-inferior.h.

Change-Id: Iae5ccb3e1dc37ce79f03f08465f603a0411e7af0
---
 gdb/gdbserver/inferiors.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index cf6e914863b6..88adb16eac20 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -19,6 +19,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "server.h"
+#include "gdbsupport/common-inferior.h"
 #include "gdbthread.h"
 #include "dll.h"
 
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 5/7] gdbserver: make some functions static in linux-x86-low.c

Simon Marchi-5
In reply to this post by Simon Marchi-5
These functions are only used in this file, so should be static.

Change-Id: I703da41867735aefadd49140e80cd60f6ab9ad39
---
 gdb/gdbserver/linux-x86-low.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c
index 047eb1376abc..09ec22ff678f 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdb/gdbserver/linux-x86-low.c
@@ -961,7 +961,7 @@ static struct regs_info i386_linux_regs_info =
     &x86_regsets_info
   };
 
-const struct regs_info *
+static const struct regs_info *
 x86_linux_regs_info (void)
 {
 #ifdef __x86_64__
@@ -1970,7 +1970,7 @@ amd64_emit_void_call_2 (CORE_ADDR fn, int arg1)
     "pop %rax");
 }
 
-void
+static void
 amd64_emit_eq_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM (amd64_eq,
@@ -1990,7 +1990,7 @@ amd64_emit_eq_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 amd64_emit_ne_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM (amd64_ne,
@@ -2010,7 +2010,7 @@ amd64_emit_ne_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 amd64_emit_lt_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM (amd64_lt,
@@ -2030,7 +2030,7 @@ amd64_emit_lt_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 amd64_emit_le_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM (amd64_le,
@@ -2050,7 +2050,7 @@ amd64_emit_le_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 amd64_emit_gt_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM (amd64_gt,
@@ -2070,7 +2070,7 @@ amd64_emit_gt_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 amd64_emit_ge_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM (amd64_ge,
@@ -2605,7 +2605,7 @@ i386_emit_void_call_2 (CORE_ADDR fn, int arg1)
 }
 
 
-void
+static void
 i386_emit_eq_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM32 (eq,
@@ -2630,7 +2630,7 @@ i386_emit_eq_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 i386_emit_ne_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM32 (ne,
@@ -2656,7 +2656,7 @@ i386_emit_ne_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 i386_emit_lt_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM32 (lt,
@@ -2682,7 +2682,7 @@ i386_emit_lt_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 i386_emit_le_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM32 (le,
@@ -2708,7 +2708,7 @@ i386_emit_le_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 i386_emit_gt_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM32 (gt,
@@ -2734,7 +2734,7 @@ i386_emit_gt_goto (int *offset_p, int *size_p)
     *size_p = 4;
 }
 
-void
+static void
 i386_emit_ge_goto (int *offset_p, int *size_p)
 {
   EMIT_ASM32 (ge,
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 6/7] gdbserver: set IP_AGENT_EXPORT_FUNC to static when not building IPA, add declarations

Simon Marchi-5
In reply to this post by Simon Marchi-5
Fixing the -Wmissing-declarations errors in gdbserver's tracepoint.c is
a bit tricky, because some functions are compiled for both gdbserver, in
which case they should be static, since they are only used in that file,
and for libinproctrace.so, in which case they should be externally
visible, since they need to be looked up.  In the case where they are
externally visible, -Wmissing-declarations requires that a declaration
exists (that's the point of the warning).

I've reused the IP_AGENT_EXPORT_FUNC macro to mark the functions as
static when compiled for gdbserver.  Some seemingly unnecessary
declarations are added for when compiling libinproctrace.so (thanks to
Tom for the suggestion).

gdb/gdbserver/ChangeLog:

        * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
        Define to static.
        * tracepoint.c (stop_tracing, flush_trace_buffer,
        about_to_request_buffer_space, get_trace_state_variable_value,
        set_trace_state_variable_value, gdb_collect): Add declaration.

Change-Id: If9c66151bd00c3b9c5caa27a7c21c5a3a952de2a
---
 gdb/gdbserver/tracepoint.c | 20 ++++++++++++++++++++
 gdb/gdbserver/tracepoint.h |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index 2ef94e6998d1..bbca48b2efd3 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -370,6 +370,9 @@ read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
 #  define UNKNOWN_SIDE_EFFECTS() do {} while (0)
 #endif
 
+/* This is needed for -Wmissing-declarations.  */
+IP_AGENT_EXPORT_FUNC void stop_tracing (void);
+
 IP_AGENT_EXPORT_FUNC void
 stop_tracing (void)
 {
@@ -377,6 +380,9 @@ stop_tracing (void)
   UNKNOWN_SIDE_EFFECTS();
 }
 
+/* This is needed for -Wmissing-declarations.  */
+IP_AGENT_EXPORT_FUNC void flush_trace_buffer (void);
+
 IP_AGENT_EXPORT_FUNC void
 flush_trace_buffer (void)
 {
@@ -1496,6 +1502,9 @@ init_trace_buffer (LONGEST bufsize)
 
 #ifdef IN_PROCESS_AGENT
 
+/* This is needed for -Wmissing-declarations.  */
+IP_AGENT_EXPORT_FUNC void about_to_request_buffer_space (void);
+
 IP_AGENT_EXPORT_FUNC void
 about_to_request_buffer_space (void)
 {
@@ -2091,6 +2100,9 @@ create_trace_state_variable (int num, int gdb)
   return tsv;
 }
 
+/* This is needed for -Wmissing-declarations.  */
+IP_AGENT_EXPORT_FUNC LONGEST get_trace_state_variable_value (int num);
+
 IP_AGENT_EXPORT_FUNC LONGEST
 get_trace_state_variable_value (int num)
 {
@@ -2117,6 +2129,10 @@ get_trace_state_variable_value (int num)
   return tsv->value;
 }
 
+/* This is needed for -Wmissing-declarations.  */
+IP_AGENT_EXPORT_FUNC void set_trace_state_variable_value (int num,
+  LONGEST val);
+
 IP_AGENT_EXPORT_FUNC void
 set_trace_state_variable_value (int num, LONGEST val)
 {
@@ -5786,6 +5802,10 @@ EXTERN_C_PUSH
 IP_AGENT_EXPORT_VAR collecting_t *collecting;
 EXTERN_C_POP
 
+/* This is needed for -Wmissing-declarations.  */
+IP_AGENT_EXPORT_FUNC void gdb_collect (struct tracepoint *tpoint,
+       unsigned char *regs);
+
 /* This routine, called from the jump pad (in asm) is designed to be
    called from the jump pads of fast tracepoints, thus it is on the
    critical path.  */
diff --git a/gdb/gdbserver/tracepoint.h b/gdb/gdbserver/tracepoint.h
index a56e8bf5131e..030b2a923445 100644
--- a/gdb/gdbserver/tracepoint.h
+++ b/gdb/gdbserver/tracepoint.h
@@ -62,7 +62,7 @@ void initialize_tracepoint (void);
 # define IP_AGENT_EXPORT_VAR EXPORTED_SYMBOL ATTR_USED
 # define IP_AGENT_EXPORT_VAR_DECL EXTERN_C EXPORTED_SYMBOL
 #else
-# define IP_AGENT_EXPORT_FUNC
+# define IP_AGENT_EXPORT_FUNC static
 # define IP_AGENT_EXPORT_VAR
 # define IP_AGENT_EXPORT_VAR_DECL extern
 #endif
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

[PATCH v2 7/7] Enable -Wmissing-declarations diagnostic

Simon Marchi-5
In reply to this post by Simon Marchi-5
Now that most warnings of this kind are fixed, we can enable
-Wmissing-declarations.  I say "most", because it is likely that there
are some more in some configurations I am not able to build, but they
should be pretty easy to fix.

gdb/ChangeLog:

        * warning.m4: Add -Wmissing-declarations to build_warnings.
        * configure: Re-generate.

Change-Id: Iae9b59f22eb5dd1965d09f34c5c9e212cddf67ba
---
 gdb/configure           | 3 ++-
 gdb/gdbserver/configure | 3 ++-
 gdb/warning.m4          | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/gdb/configure b/gdb/configure
index b572d414ca51..aa53c097ca8f 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -16105,7 +16105,8 @@ build_warnings="-Wall -Wpointer-arith \
 -Wshadow=local \
 -Wdeprecated-copy \
 -Wdeprecated-copy-dtor \
--Wredundant-move"
+-Wredundant-move \
+-Wmissing-declarations"
 
 case "${host}" in
   *-*-mingw32*)
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index 4de751b44915..f70b3d552156 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -8094,7 +8094,8 @@ build_warnings="-Wall -Wpointer-arith \
 -Wshadow=local \
 -Wdeprecated-copy \
 -Wdeprecated-copy-dtor \
--Wredundant-move"
+-Wredundant-move \
+-Wmissing-declarations"
 
 case "${host}" in
   *-*-mingw32*)
diff --git a/gdb/warning.m4 b/gdb/warning.m4
index 00bcdfa7ea50..e2b8a43ddbd5 100644
--- a/gdb/warning.m4
+++ b/gdb/warning.m4
@@ -49,7 +49,8 @@ build_warnings="-Wall -Wpointer-arith \
 -Wshadow=local \
 -Wdeprecated-copy \
 -Wdeprecated-copy-dtor \
--Wredundant-move"
+-Wredundant-move \
+-Wmissing-declarations"
 
 case "${host}" in
   *-*-mingw32*)
--
2.24.1

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH v2 1/7] gdb: add back declarations for _initialize functions

Simon Marchi-4
In reply to this post by Simon Marchi-5
On 2020-01-10 5:00 p.m., Simon Marchi wrote:

> I'd like to enable the -Wmissing-declarations warning.  However, it
> warns for every _initialize function, for example:
>
>       CXX    dcache.o
>     /home/smarchi/src/binutils-gdb/gdb/dcache.c: In function ‘void _initialize_dcache()’:
>     /home/smarchi/src/binutils-gdb/gdb/dcache.c:688:1: error: no previous declaration for ‘void _initialize_dcache()’ [-Werror=missing-declarations]
>      _initialize_dcache (void)
>      ^~~~~~~~~~~~~~~~~~
>
> The only practical way forward I found is to add back the declarations,
> which were removed by this commit:
>
>     commit 481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9
>     Author: John Baldwin <[hidden email]>
>     Date:   Sat Sep 9 11:02:37 2017 -0700
>
>         Remove unnecessary function prototypes.
>
> I don't think it's a big problem to have the declarations for these
> functions, but if anybody has a better solution for this, I'll be happy
> to use it.

Here's an updated version of the patch, following the merge of Pedro's
multi-target branch.

From a118918c7131914b7c5b50a62b8f9ab01d0d2335 Mon Sep 17 00:00:00 2001
From: Simon Marchi <[hidden email]>
Date: Fri, 10 Jan 2020 17:00:21 -0500
Subject: [PATCH] gdb: add back declarations for _initialize functions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

I'd like to enable the -Wmissing-declarations warning.  However, it
warns for every _initialize function, for example:

      CXX    dcache.o
    /home/smarchi/src/binutils-gdb/gdb/dcache.c: In function ‘void _initialize_dcache()’:
    /home/smarchi/src/binutils-gdb/gdb/dcache.c:688:1: error: no previous declaration for ‘void _initialize_dcache()’ [-Werror=missing-declarations]
     _initialize_dcache (void)
     ^~~~~~~~~~~~~~~~~~

The only practical way forward I found is to add back the declarations,
which were removed by this commit:

    commit 481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9
    Author: John Baldwin <[hidden email]>
    Date:   Sat Sep 9 11:02:37 2017 -0700

        Remove unnecessary function prototypes.

I don't think it's a big problem to have the declarations for these
functions, but if anybody has a better solution for this, I'll be happy
to use it.

gdb/ChangeLog:

        * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
        * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
        * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
        * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
        * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
        * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
        * ada-exp.y (_initialize_ada_exp): Add declaration.
        * ada-lang.c (_initialize_ada_language): Add declaration.
        * ada-tasks.c (_initialize_tasks): Add declaration.
        * agent.c (_initialize_agent): Add declaration.
        * aix-thread.c (_initialize_aix_thread): Add declaration.
        * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
        * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
        * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
        * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
        * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
        * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
        * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
        * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
        * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
        * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
        * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
        * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
        * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
        * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
        * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
        * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
        * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
        * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
        * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
        * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
        * annotate.c (_initialize_annotate): Add declaration.
        * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
        * arc-tdep.c (_initialize_arc_tdep): Add declaration.
        * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
        * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
        * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
        * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
        * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
        * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
        * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
        * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
        * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
        * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
        * arm-tdep.c (_initialize_arm_tdep): Add declaration.
        * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
        * auto-load.c (_initialize_auto_load): Add declaration.
        * auxv.c (_initialize_auxv): Add declaration.
        * avr-tdep.c (_initialize_avr_tdep): Add declaration.
        * ax-gdb.c (_initialize_ax_gdb): Add declaration.
        * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
        * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
        * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
        * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
        * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
        * breakpoint.c (_initialize_breakpoint): Add declaration.
        * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
        * btrace.c (_initialize_btrace): Add declaration.
        * charset.c (_initialize_charset): Add declaration.
        * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
        * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
        * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
        * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
        * cli/cli-script.c (_initialize_cli_script): Add declaration.
        * cli/cli-style.c (_initialize_cli_style): Add declaration.
        * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
        * coffread.c (_initialize_coffread): Add declaration.
        * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
        * compile/compile.c (_initialize_compile): Add declaration.
        * complaints.c (_initialize_complaints): Add declaration.
        * completer.c (_initialize_completer): Add declaration.
        * copying.c (_initialize_copying): Add declaration.
        * corefile.c (_initialize_core): Add declaration.
        * corelow.c (_initialize_corelow): Add declaration.
        * cp-abi.c (_initialize_cp_abi): Add declaration.
        * cp-namespace.c (_initialize_cp_namespace): Add declaration.
        * cp-support.c (_initialize_cp_support): Add declaration.
        * cp-valprint.c (_initialize_cp_valprint): Add declaration.
        * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
        * cris-tdep.c (_initialize_cris_tdep): Add declaration.
        * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
        * csky-tdep.c (_initialize_csky_tdep): Add declaration.
        * ctfread.c (_initialize_ctfread): Add declaration.
        * d-lang.c (_initialize_d_language): Add declaration.
        * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
        * darwin-nat.c (_initialize_darwin_nat): Add declaration.
        * dbxread.c (_initialize_dbxread): Add declaration.
        * dcache.c (_initialize_dcache): Add declaration.
        * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
        * disasm.c (_initialize_disasm): Add declaration.
        * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
        * dummy-frame.c (_initialize_dummy_frame): Add declaration.
        * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
        * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
        * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
        * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
        * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
        * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
        * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
        * elfread.c (_initialize_elfread): Add declaration.
        * exec.c (_initialize_exec): Add declaration.
        * extension.c (_initialize_extension): Add declaration.
        * f-lang.c (_initialize_f_language): Add declaration.
        * f-valprint.c (_initialize_f_valprint): Add declaration.
        * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
        * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
        * filesystem.c (_initialize_filesystem): Add declaration.
        * findcmd.c (_initialize_mem_search): Add declaration.
        * findvar.c (_initialize_findvar): Add declaration.
        * fork-child.c (_initialize_fork_child): Add declaration.
        * frame-base.c (_initialize_frame_base): Add declaration.
        * frame-unwind.c (_initialize_frame_unwind): Add declaration.
        * frame.c (_initialize_frame): Add declaration.
        * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
        * frv-tdep.c (_initialize_frv_tdep): Add declaration.
        * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
        * gcore.c (_initialize_gcore): Add declaration.
        * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
        * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
        * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
        * gdbarch.c (_initialize_gdbarch): Add declaration.
        * gdbtypes.c (_initialize_gdbtypes): Add declaration.
        * gnu-nat.c (_initialize_gnu_nat): Add declaration.
        * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
        * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
        * go-lang.c (_initialize_go_language): Add declaration.
        * go32-nat.c (_initialize_go32_nat): Add declaration.
        * guile/guile.c (_initialize_guile): Add declaration.
        * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
        * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
        * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
        * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
        * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
        * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
        * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
        * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
        * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
        * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
        * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
        * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
        * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
        * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
        * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
        * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
        * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
        * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
        * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
        * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
        * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
        * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
        * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
        * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
        * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
        * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
        * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
        * i386-tdep.c (_initialize_i386_tdep): Add declaration.
        * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
        * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
        * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
        * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
        * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
        * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
        * infcall.c (_initialize_infcall): Add declaration.
        * infcmd.c (_initialize_infcmd): Add declaration.
        * inflow.c (_initialize_inflow): Add declaration.
        * infrun.c (_initialize_infrun): Add declaration.
        * interps.c (_initialize_interpreter): Add declaration.
        * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
        * jit.c (_initialize_jit): Add declaration.
        * language.c (_initialize_language): Add declaration.
        * linux-fork.c (_initialize_linux_fork): Add declaration.
        * linux-nat.c (_initialize_linux_nat): Add declaration.
        * linux-tdep.c (_initialize_linux_tdep): Add declaration.
        * linux-thread-db.c (_initialize_thread_db): Add declaration.
        * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
        * m2-lang.c (_initialize_m2_language): Add declaration.
        * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
        * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
        * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
        * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
        * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
        * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
        * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
        * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
        * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
        * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
        * machoread.c (_initialize_machoread): Add declaration.
        * macrocmd.c (_initialize_macrocmd): Add declaration.
        * macroscope.c (_initialize_macroscope): Add declaration.
        * maint-test-options.c (_initialize_maint_test_options): Add declaration.
        * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
        * maint.c (_initialize_maint_cmds): Add declaration.
        * mdebugread.c (_initialize_mdebugread): Add declaration.
        * memattr.c (_initialize_mem): Add declaration.
        * mep-tdep.c (_initialize_mep_tdep): Add declaration.
        * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
        * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
        * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
        * mi/mi-main.c (_initialize_mi_main): Add declaration.
        * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
        * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
        * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
        * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
        * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
        * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
        * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
        * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
        * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
        * mips-tdep.c (_initialize_mips_tdep): Add declaration.
        * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
        * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
        * mipsread.c (_initialize_mipsread): Add declaration.
        * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
        * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
        * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
        * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
        * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
        * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
        * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
        * nto-procfs.c (_initialize_procfs): Add declaration.
        * objc-lang.c (_initialize_objc_language): Add declaration.
        * observable.c (_initialize_observer): Add declaration.
        * opencl-lang.c (_initialize_opencl_language): Add declaration.
        * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
        * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
        * osabi.c (_initialize_gdb_osabi): Add declaration.
        * osdata.c (_initialize_osdata): Add declaration.
        * p-valprint.c (_initialize_pascal_valprint): Add declaration.
        * parse.c (_initialize_parse): Add declaration.
        * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
        * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
        * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
        * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
        * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
        * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
        * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
        * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
        * printcmd.c (_initialize_printcmd): Add declaration.
        * probe.c (_initialize_probe): Add declaration.
        * proc-api.c (_initialize_proc_api): Add declaration.
        * proc-events.c (_initialize_proc_events): Add declaration.
        * proc-service.c (_initialize_proc_service): Add declaration.
        * procfs.c (_initialize_procfs): Add declaration.
        * producer.c (_initialize_producer): Add declaration.
        * psymtab.c (_initialize_psymtab): Add declaration.
        * python/python.c (_initialize_python): Add declaration.
        * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
        * record-btrace.c (_initialize_record_btrace): Add declaration.
        * record-full.c (_initialize_record_full): Add declaration.
        * record.c (_initialize_record): Add declaration.
        * regcache-dump.c (_initialize_regcache_dump): Add declaration.
        * regcache.c (_initialize_regcache): Add declaration.
        * reggroups.c (_initialize_reggroup): Add declaration.
        * remote-notif.c (_initialize_notif): Add declaration.
        * remote-sim.c (_initialize_remote_sim): Add declaration.
        * remote.c (_initialize_remote): Add declaration.
        * reverse.c (_initialize_reverse): Add declaration.
        * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
        * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
        * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
        * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
        * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
        * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
        * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
        * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
        Add declaration.
        * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
        * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
        * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
        * rust-exp.y (_initialize_rust_exp): Add declaration.
        * rx-tdep.c (_initialize_rx_tdep): Add declaration.
        * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
        * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
        * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
        * s390-tdep.c (_initialize_s390_tdep): Add declaration.
        * score-tdep.c (_initialize_score_tdep): Add declaration.
        * ser-go32.c (_initialize_ser_dos): Add declaration.
        * ser-mingw.c (_initialize_ser_windows): Add declaration.
        * ser-pipe.c (_initialize_ser_pipe): Add declaration.
        * ser-tcp.c (_initialize_ser_tcp): Add declaration.
        * ser-uds.c (_initialize_ser_socket): Add declaration.
        * ser-unix.c (_initialize_ser_hardwire): Add declaration.
        * serial.c (_initialize_serial): Add declaration.
        * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
        * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
        * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
        * sh-tdep.c (_initialize_sh_tdep): Add declaration.
        * skip.c (_initialize_step_skip): Add declaration.
        * sol-thread.c (_initialize_sol_thread): Add declaration.
        * solib-aix.c (_initialize_solib_aix): Add declaration.
        * solib-darwin.c (_initialize_darwin_solib): Add declaration.
        * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
        * solib-frv.c (_initialize_frv_solib): Add declaration.
        * solib-svr4.c (_initialize_svr4_solib): Add declaration.
        * solib-target.c (_initialize_solib_target): Add declaration.
        * solib.c (_initialize_solib): Add declaration.
        * source-cache.c (_initialize_source_cache): Add declaration.
        * source.c (_initialize_source): Add declaration.
        * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
        * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
        * sparc-nat.c (_initialize_sparc_nat): Add declaration.
        * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
        * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
        * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
        * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
        * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
        * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
        * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
        * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
        * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
        * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
        * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
        * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
        * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
        * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
        * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
        * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
        * stabsread.c (_initialize_stabsread): Add declaration.
        * stack.c (_initialize_stack): Add declaration.
        * stap-probe.c (_initialize_stap_probe): Add declaration.
        * std-regs.c (_initialize_frame_reg): Add declaration.
        * symfile-debug.c (_initialize_symfile_debug): Add declaration.
        * symfile-mem.c (_initialize_symfile_mem): Add declaration.
        * symfile.c (_initialize_symfile): Add declaration.
        * symmisc.c (_initialize_symmisc): Add declaration.
        * symtab.c (_initialize_symtab): Add declaration.
        * target.c (_initialize_target): Add declaration.
        * target-connection.c (_initialize_target_connection): Add
        declaration.
        * target-dcache.c (_initialize_target_dcache): Add declaration.
        * target-descriptions.c (_initialize_target_descriptions): Add declaration.
        * thread.c (_initialize_thread): Add declaration.
        * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
        * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
        * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
        * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
        * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
        * tracectf.c (_initialize_ctf): Add declaration.
        * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
        * tracefile.c (_initialize_tracefile): Add declaration.
        * tracepoint.c (_initialize_tracepoint): Add declaration.
        * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
        * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
        * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
        * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
        * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
        * tui/tui-win.c (_initialize_tui_win): Add declaration.
        * tui/tui.c (_initialize_tui): Add declaration.
        * typeprint.c (_initialize_typeprint): Add declaration.
        * ui-style.c (_initialize_ui_style): Add declaration.
        * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
        * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
        * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
        * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
        * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
        * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
        * unittests/filtered_iterator-selftests.c
        (_initialize_filtered_iterator_selftests): Add declaration.
        * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
        * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
        * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
        * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
        * unittests/main-thread-selftests.c
        (_initialize_main_thread_selftests): Add declaration.
        * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
        * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
        * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
        * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
        * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
        * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
        * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
        * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
        * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
        * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
        * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
        * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
        * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
        * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
        * unittests/tui-selftests.c (_initialize_tui_selftest): Add
        declaration.
        * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
        * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
        * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
        * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
        * user-regs.c (_initialize_user_regs): Add declaration.
        * utils.c (_initialize_utils): Add declaration.
        * v850-tdep.c (_initialize_v850_tdep): Add declaration.
        * valops.c (_initialize_valops): Add declaration.
        * valprint.c (_initialize_valprint): Add declaration.
        * value.c (_initialize_values): Add declaration.
        * varobj.c (_initialize_varobj): Add declaration.
        * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
        * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
        * vax-tdep.c (_initialize_vax_tdep): Add declaration.
        * windows-nat.c (_initialize_windows_nat): Add declaration.
        (_initialize_check_for_gdb_ini): Add declaration.
        (_initialize_loadable): Add declaration.
        * windows-tdep.c (_initialize_windows_tdep): Add declaration.
        * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
        * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
        * xcoffread.c (_initialize_xcoffread): Add declaration.
        * xml-support.c (_initialize_xml_support): Add declaration.
        * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
        * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
        * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
        * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.

Change-Id: I13eec7e0ed2b3c427377a7bdb055cf46da64def9
---
 gdb/aarch64-fbsd-nat.c                          | 3 ++-
 gdb/aarch64-fbsd-tdep.c                         | 3 ++-
 gdb/aarch64-linux-nat.c                         | 3 ++-
 gdb/aarch64-linux-tdep.c                        | 3 ++-
 gdb/aarch64-newlib-tdep.c                       | 3 ++-
 gdb/aarch64-tdep.c                              | 3 ++-
 gdb/ada-exp.y                                   | 3 ++-
 gdb/ada-lang.c                                  | 3 ++-
 gdb/ada-tasks.c                                 | 3 ++-
 gdb/agent.c                                     | 3 ++-
 gdb/aix-thread.c                                | 3 ++-
 gdb/alpha-bsd-nat.c                             | 3 ++-
 gdb/alpha-linux-nat.c                           | 3 ++-
 gdb/alpha-linux-tdep.c                          | 3 ++-
 gdb/alpha-nbsd-tdep.c                           | 3 ++-
 gdb/alpha-obsd-tdep.c                           | 3 ++-
 gdb/alpha-tdep.c                                | 3 ++-
 gdb/amd64-darwin-tdep.c                         | 3 ++-
 gdb/amd64-dicos-tdep.c                          | 3 ++-
 gdb/amd64-fbsd-nat.c                            | 3 ++-
 gdb/amd64-fbsd-tdep.c                           | 3 ++-
 gdb/amd64-linux-nat.c                           | 3 ++-
 gdb/amd64-linux-tdep.c                          | 3 ++-
 gdb/amd64-nbsd-nat.c                            | 3 ++-
 gdb/amd64-nbsd-tdep.c                           | 3 ++-
 gdb/amd64-obsd-nat.c                            | 3 ++-
 gdb/amd64-obsd-tdep.c                           | 3 ++-
 gdb/amd64-sol2-tdep.c                           | 3 ++-
 gdb/amd64-tdep.c                                | 3 ++-
 gdb/amd64-windows-nat.c                         | 3 ++-
 gdb/amd64-windows-tdep.c                        | 3 ++-
 gdb/annotate.c                                  | 3 ++-
 gdb/arc-newlib-tdep.c                           | 3 ++-
 gdb/arc-tdep.c                                  | 3 ++-
 gdb/arch-utils.c                                | 3 ++-
 gdb/arm-fbsd-nat.c                              | 3 ++-
 gdb/arm-fbsd-tdep.c                             | 3 ++-
 gdb/arm-linux-nat.c                             | 3 ++-
 gdb/arm-linux-tdep.c                            | 3 ++-
 gdb/arm-nbsd-nat.c                              | 3 ++-
 gdb/arm-nbsd-tdep.c                             | 3 ++-
 gdb/arm-obsd-tdep.c                             | 3 ++-
 gdb/arm-pikeos-tdep.c                           | 3 ++-
 gdb/arm-symbian-tdep.c                          | 3 ++-
 gdb/arm-tdep.c                                  | 3 ++-
 gdb/arm-wince-tdep.c                            | 3 ++-
 gdb/auto-load.c                                 | 3 ++-
 gdb/auxv.c                                      | 3 ++-
 gdb/avr-tdep.c                                  | 3 ++-
 gdb/ax-gdb.c                                    | 3 ++-
 gdb/bfin-linux-tdep.c                           | 3 ++-
 gdb/bfin-tdep.c                                 | 3 ++-
 gdb/break-catch-sig.c                           | 3 ++-
 gdb/break-catch-syscall.c                       | 3 ++-
 gdb/break-catch-throw.c                         | 3 ++-
 gdb/breakpoint.c                                | 3 ++-
 gdb/bsd-uthread.c                               | 3 ++-
 gdb/btrace.c                                    | 3 ++-
 gdb/charset.c                                   | 3 ++-
 gdb/cli/cli-cmds.c                              | 3 ++-
 gdb/cli/cli-dump.c                              | 3 ++-
 gdb/cli/cli-interp.c                            | 3 ++-
 gdb/cli/cli-logging.c                           | 3 ++-
 gdb/cli/cli-script.c                            | 3 ++-
 gdb/cli/cli-style.c                             | 1 +
 gdb/coff-pe-read.c                              | 3 ++-
 gdb/coffread.c                                  | 3 ++-
 gdb/compile/compile-cplus-types.c               | 1 +
 gdb/compile/compile.c                           | 3 ++-
 gdb/complaints.c                                | 3 ++-
 gdb/completer.c                                 | 3 ++-
 gdb/copying.c                                   | 3 ++-
 gdb/corefile.c                                  | 3 ++-
 gdb/corelow.c                                   | 3 ++-
 gdb/cp-abi.c                                    | 3 ++-
 gdb/cp-namespace.c                              | 3 ++-
 gdb/cp-support.c                                | 3 ++-
 gdb/cp-valprint.c                               | 3 ++-
 gdb/cris-linux-tdep.c                           | 3 ++-
 gdb/cris-tdep.c                                 | 3 ++-
 gdb/csky-linux-tdep.c                           | 3 ++-
 gdb/csky-tdep.c                                 | 3 ++-
 gdb/ctfread.c                                   | 3 ++-
 gdb/d-lang.c                                    | 3 ++-
 gdb/darwin-nat-info.c                           | 3 ++-
 gdb/darwin-nat.c                                | 1 +
 gdb/dbxread.c                                   | 3 ++-
 gdb/dcache.c                                    | 3 ++-
 gdb/disasm-selftests.c                          | 3 ++-
 gdb/disasm.c                                    | 3 ++-
 gdb/dtrace-probe.c                              | 3 ++-
 gdb/dummy-frame.c                               | 3 ++-
 gdb/dwarf-index-cache.c                         | 1 +
 gdb/dwarf-index-write.c                         | 1 +
 gdb/dwarf2-frame-tailcall.c                     | 3 ++-
 gdb/dwarf2-frame.c                              | 3 ++-
 gdb/dwarf2expr.c                                | 3 ++-
 gdb/dwarf2loc.c                                 | 3 ++-
 gdb/dwarf2read.c                                | 3 ++-
 gdb/elfread.c                                   | 3 ++-
 gdb/exec.c                                      | 3 ++-
 gdb/extension.c                                 | 3 ++-
 gdb/f-lang.c                                    | 3 ++-
 gdb/f-valprint.c                                | 3 ++-
 gdb/fbsd-nat.c                                  | 3 ++-
 gdb/fbsd-tdep.c                                 | 3 ++-
 gdb/filesystem.c                                | 3 ++-
 gdb/findcmd.c                                   | 3 ++-
 gdb/findvar.c                                   | 3 ++-
 gdb/fork-child.c                                | 3 ++-
 gdb/frame-base.c                                | 3 ++-
 gdb/frame-unwind.c                              | 3 ++-
 gdb/frame.c                                     | 3 ++-
 gdb/frv-linux-tdep.c                            | 3 ++-
 gdb/frv-tdep.c                                  | 3 ++-
 gdb/ft32-tdep.c                                 | 3 ++-
 gdb/gcore.c                                     | 3 ++-
 gdb/gdb-demangle.c                              | 3 ++-
 gdb/gdb_bfd.c                                   | 3 ++-
 gdb/gdbarch-selftests.c                         | 3 ++-
 gdb/gdbarch.c                                   | 3 ++-
 gdb/gdbtypes.c                                  | 3 ++-
 gdb/gnu-nat.c                                   | 3 ++-
 gdb/gnu-v2-abi.c                                | 3 ++-
 gdb/gnu-v3-abi.c                                | 3 ++-
 gdb/go-lang.c                                   | 3 ++-
 gdb/go32-nat.c                                  | 3 ++-
 gdb/guile/guile.c                               | 3 ++-
 gdb/h8300-tdep.c                                | 3 ++-
 gdb/hppa-linux-nat.c                            | 3 ++-
 gdb/hppa-linux-tdep.c                           | 3 ++-
 gdb/hppa-nbsd-nat.c                             | 3 ++-
 gdb/hppa-nbsd-tdep.c                            | 3 ++-
 gdb/hppa-obsd-nat.c                             | 3 ++-
 gdb/hppa-obsd-tdep.c                            | 3 ++-
 gdb/hppa-tdep.c                                 | 3 ++-
 gdb/i386-bsd-nat.c                              | 3 ++-
 gdb/i386-cygwin-tdep.c                          | 3 ++-
 gdb/i386-darwin-nat.c                           | 3 ++-
 gdb/i386-darwin-tdep.c                          | 3 ++-
 gdb/i386-dicos-tdep.c                           | 3 ++-
 gdb/i386-fbsd-nat.c                             | 3 ++-
 gdb/i386-fbsd-tdep.c                            | 3 ++-
 gdb/i386-gnu-nat.c                              | 3 ++-
 gdb/i386-gnu-tdep.c                             | 3 ++-
 gdb/i386-go32-tdep.c                            | 1 +
 gdb/i386-linux-nat.c                            | 3 ++-
 gdb/i386-linux-tdep.c                           | 3 ++-
 gdb/i386-nbsd-nat.c                             | 3 ++-
 gdb/i386-nbsd-tdep.c                            | 3 ++-
 gdb/i386-nto-tdep.c                             | 3 ++-
 gdb/i386-obsd-nat.c                             | 3 ++-
 gdb/i386-obsd-tdep.c                            | 3 ++-
 gdb/i386-sol2-nat.c                             | 3 ++-
 gdb/i386-sol2-tdep.c                            | 3 ++-
 gdb/i386-tdep.c                                 | 3 ++-
 gdb/i386-windows-nat.c                          | 3 ++-
 gdb/ia64-libunwind-tdep.c                       | 3 ++-
 gdb/ia64-linux-nat.c                            | 3 ++-
 gdb/ia64-linux-tdep.c                           | 3 ++-
 gdb/ia64-tdep.c                                 | 3 ++-
 gdb/ia64-vms-tdep.c                             | 3 ++-
 gdb/infcall.c                                   | 3 ++-
 gdb/infcmd.c                                    | 3 ++-
 gdb/inflow.c                                    | 3 ++-
 gdb/infrun.c                                    | 3 ++-
 gdb/interps.c                                   | 3 ++-
 gdb/iq2000-tdep.c                               | 3 ++-
 gdb/jit.c                                       | 3 ++-
 gdb/language.c                                  | 3 ++-
 gdb/linux-fork.c                                | 3 ++-
 gdb/linux-nat.c                                 | 3 ++-
 gdb/linux-tdep.c                                | 3 ++-
 gdb/linux-thread-db.c                           | 3 ++-
 gdb/lm32-tdep.c                                 | 3 ++-
 gdb/m2-lang.c                                   | 3 ++-
 gdb/m32c-tdep.c                                 | 3 ++-
 gdb/m32r-linux-nat.c                            | 3 ++-
 gdb/m32r-linux-tdep.c                           | 3 ++-
 gdb/m32r-tdep.c                                 | 3 ++-
 gdb/m68hc11-tdep.c                              | 3 ++-
 gdb/m68k-bsd-nat.c                              | 3 ++-
 gdb/m68k-bsd-tdep.c                             | 3 ++-
 gdb/m68k-linux-nat.c                            | 3 ++-
 gdb/m68k-linux-tdep.c                           | 3 ++-
 gdb/m68k-tdep.c                                 | 3 ++-
 gdb/machoread.c                                 | 3 ++-
 gdb/macrocmd.c                                  | 3 ++-
 gdb/macroscope.c                                | 3 ++-
 gdb/maint-test-options.c                        | 1 +
 gdb/maint-test-settings.c                       | 3 ++-
 gdb/maint.c                                     | 3 ++-
 gdb/mdebugread.c                                | 3 ++-
 gdb/memattr.c                                   | 3 ++-
 gdb/mep-tdep.c                                  | 3 ++-
 gdb/mi/mi-cmd-env.c                             | 3 ++-
 gdb/mi/mi-cmds.c                                | 3 ++-
 gdb/mi/mi-interp.c                              | 3 ++-
 gdb/mi/mi-main.c                                | 3 ++-
 gdb/microblaze-linux-tdep.c                     | 3 ++-
 gdb/microblaze-tdep.c                           | 3 ++-
 gdb/mips-fbsd-nat.c                             | 3 ++-
 gdb/mips-fbsd-tdep.c                            | 3 ++-
 gdb/mips-linux-nat.c                            | 3 ++-
 gdb/mips-linux-tdep.c                           | 3 ++-
 gdb/mips-nbsd-nat.c                             | 3 ++-
 gdb/mips-nbsd-tdep.c                            | 3 ++-
 gdb/mips-sde-tdep.c                             | 3 ++-
 gdb/mips-tdep.c                                 | 3 ++-
 gdb/mips64-obsd-nat.c                           | 3 ++-
 gdb/mips64-obsd-tdep.c                          | 3 ++-
 gdb/mipsread.c                                  | 3 ++-
 gdb/mn10300-linux-tdep.c                        | 3 ++-
 gdb/mn10300-tdep.c                              | 3 ++-
 gdb/moxie-tdep.c                                | 3 ++-
 gdb/msp430-tdep.c                               | 3 ++-
 gdb/nds32-tdep.c                                | 3 ++-
 gdb/nios2-linux-tdep.c                          | 3 ++-
 gdb/nios2-tdep.c                                | 3 ++-
 gdb/nto-procfs.c                                | 3 ++-
 gdb/objc-lang.c                                 | 3 ++-
 gdb/observable.c                                | 3 ++-
 gdb/opencl-lang.c                               | 3 ++-
 gdb/or1k-linux-tdep.c                           | 3 ++-
 gdb/or1k-tdep.c                                 | 3 ++-
 gdb/osabi.c                                     | 3 ++-
 gdb/osdata.c                                    | 3 ++-
 gdb/p-valprint.c                                | 3 ++-
 gdb/parse.c                                     | 3 ++-
 gdb/ppc-fbsd-nat.c                              | 3 ++-
 gdb/ppc-fbsd-tdep.c                             | 3 ++-
 gdb/ppc-linux-nat.c                             | 3 ++-
 gdb/ppc-linux-tdep.c                            | 3 ++-
 gdb/ppc-nbsd-nat.c                              | 3 ++-
 gdb/ppc-nbsd-tdep.c                             | 3 ++-
 gdb/ppc-obsd-nat.c                              | 3 ++-
 gdb/ppc-obsd-tdep.c                             | 3 ++-
 gdb/printcmd.c                                  | 3 ++-
 gdb/probe.c                                     | 3 ++-
 gdb/proc-api.c                                  | 3 ++-
 gdb/proc-events.c                               | 3 ++-
 gdb/proc-service.c                              | 3 ++-
 gdb/procfs.c                                    | 3 ++-
 gdb/producer.c                                  | 1 +
 gdb/psymtab.c                                   | 3 ++-
 gdb/python/python.c                             | 3 ++-
 gdb/ravenscar-thread.c                          | 1 +
 gdb/record-btrace.c                             | 3 ++-
 gdb/record-full.c                               | 3 ++-
 gdb/record.c                                    | 3 ++-
 gdb/regcache-dump.c                             | 3 ++-
 gdb/regcache.c                                  | 3 ++-
 gdb/reggroups.c                                 | 3 ++-
 gdb/remote-notif.c                              | 3 ++-
 gdb/remote-sim.c                                | 3 ++-
 gdb/remote.c                                    | 3 ++-
 gdb/reverse.c                                   | 3 ++-
 gdb/riscv-fbsd-nat.c                            | 3 ++-
 gdb/riscv-fbsd-tdep.c                           | 3 ++-
 gdb/riscv-linux-nat.c                           | 3 ++-
 gdb/riscv-linux-tdep.c                          | 3 ++-
 gdb/riscv-tdep.c                                | 3 ++-
 gdb/rl78-tdep.c                                 | 3 ++-
 gdb/rs6000-aix-tdep.c                           | 3 ++-
 gdb/rs6000-lynx178-tdep.c                       | 3 ++-
 gdb/rs6000-nat.c                                | 3 ++-
 gdb/rs6000-tdep.c                               | 3 ++-
 gdb/run-on-main-thread.c                        | 1 +
 gdb/rust-exp.y                                  | 3 ++-
 gdb/rx-tdep.c                                   | 3 ++-
 gdb/s12z-tdep.c                                 | 3 ++-
 gdb/s390-linux-nat.c                            | 3 ++-
 gdb/s390-linux-tdep.c                           | 3 ++-
 gdb/s390-tdep.c                                 | 3 ++-
 gdb/score-tdep.c                                | 3 ++-
 gdb/ser-go32.c                                  | 3 ++-
 gdb/ser-mingw.c                                 | 3 ++-
 gdb/ser-pipe.c                                  | 3 ++-
 gdb/ser-tcp.c                                   | 3 ++-
 gdb/ser-uds.c                                   | 3 ++-
 gdb/ser-unix.c                                  | 3 ++-
 gdb/serial.c                                    | 3 ++-
 gdb/sh-linux-tdep.c                             | 3 ++-
 gdb/sh-nbsd-nat.c                               | 3 ++-
 gdb/sh-nbsd-tdep.c                              | 3 ++-
 gdb/sh-tdep.c                                   | 3 ++-
 gdb/skip.c                                      | 3 ++-
 gdb/sol-thread.c                                | 3 ++-
 gdb/solib-aix.c                                 | 3 ++-
 gdb/solib-darwin.c                              | 3 ++-
 gdb/solib-dsbt.c                                | 3 ++-
 gdb/solib-frv.c                                 | 3 ++-
 gdb/solib-svr4.c                                | 3 ++-
 gdb/solib-target.c                              | 3 ++-
 gdb/solib.c                                     | 3 ++-
 gdb/source-cache.c                              | 1 +
 gdb/source.c                                    | 3 ++-
 gdb/sparc-linux-nat.c                           | 3 ++-
 gdb/sparc-linux-tdep.c                          | 3 ++-
 gdb/sparc-nat.c                                 | 3 ++-
 gdb/sparc-nbsd-nat.c                            | 3 ++-
 gdb/sparc-nbsd-tdep.c                           | 3 ++-
 gdb/sparc-obsd-tdep.c                           | 3 ++-
 gdb/sparc-sol2-tdep.c                           | 3 ++-
 gdb/sparc-tdep.c                                | 3 ++-
 gdb/sparc64-fbsd-nat.c                          | 3 ++-
 gdb/sparc64-fbsd-tdep.c                         | 3 ++-
 gdb/sparc64-linux-nat.c                         | 3 ++-
 gdb/sparc64-linux-tdep.c                        | 3 ++-
 gdb/sparc64-nat.c                               | 3 ++-
 gdb/sparc64-nbsd-nat.c                          | 3 ++-
 gdb/sparc64-nbsd-tdep.c                         | 3 ++-
 gdb/sparc64-obsd-nat.c                          | 3 ++-
 gdb/sparc64-obsd-tdep.c                         | 3 ++-
 gdb/sparc64-sol2-tdep.c                         | 3 ++-
 gdb/sparc64-tdep.c                              | 3 ++-
 gdb/stabsread.c                                 | 3 ++-
 gdb/stack.c                                     | 3 ++-
 gdb/stap-probe.c                                | 3 ++-
 gdb/std-regs.c                                  | 3 ++-
 gdb/symfile-debug.c                             | 3 ++-
 gdb/symfile-mem.c                               | 3 ++-
 gdb/symfile.c                                   | 3 ++-
 gdb/symmisc.c                                   | 3 ++-
 gdb/symtab.c                                    | 3 ++-
 gdb/target-connection.c                         | 2 ++
 gdb/target-dcache.c                             | 3 ++-
 gdb/target-descriptions.c                       | 3 ++-
 gdb/target.c                                    | 2 ++
 gdb/thread.c                                    | 3 ++-
 gdb/tic6x-linux-tdep.c                          | 3 ++-
 gdb/tic6x-tdep.c                                | 3 ++-
 gdb/tilegx-linux-nat.c                          | 3 ++-
 gdb/tilegx-linux-tdep.c                         | 3 ++-
 gdb/tilegx-tdep.c                               | 3 ++-
 gdb/tracectf.c                                  | 3 ++-
 gdb/tracefile-tfile.c                           | 3 ++-
 gdb/tracefile.c                                 | 3 ++-
 gdb/tracepoint.c                                | 3 ++-
 gdb/tui/tui-hooks.c                             | 3 ++-
 gdb/tui/tui-interp.c                            | 3 ++-
 gdb/tui/tui-layout.c                            | 3 ++-
 gdb/tui/tui-regs.c                              | 3 ++-
 gdb/tui/tui-stack.c                             | 3 ++-
 gdb/tui/tui-win.c                               | 3 ++-
 gdb/tui/tui.c                                   | 3 ++-
 gdb/typeprint.c                                 | 3 ++-
 gdb/ui-style.c                                  | 1 +
 gdb/unittests/array-view-selftests.c            | 1 +
 gdb/unittests/child-path-selftests.c            | 1 +
 gdb/unittests/cli-utils-selftests.c             | 1 +
 gdb/unittests/common-utils-selftests.c          | 1 +
 gdb/unittests/copy_bitwise-selftests.c          | 1 +
 gdb/unittests/environ-selftests.c               | 1 +
 gdb/unittests/filtered_iterator-selftests.c     | 1 +
 gdb/unittests/format_pieces-selftests.c         | 1 +
 gdb/unittests/function-view-selftests.c         | 1 +
 gdb/unittests/help-doc-selftests.c              | 1 +
 gdb/unittests/lookup_name_info-selftests.c      | 1 +
 gdb/unittests/main-thread-selftests.c           | 1 +
 gdb/unittests/memory-map-selftests.c            | 1 +
 gdb/unittests/memrange-selftests.c              | 1 +
 gdb/unittests/mkdir-recursive-selftests.c       | 1 +
 gdb/unittests/observable-selftests.c            | 1 +
 gdb/unittests/offset-type-selftests.c           | 1 +
 gdb/unittests/optional-selftests.c              | 1 +
 gdb/unittests/parse-connection-spec-selftests.c | 1 +
 gdb/unittests/rsp-low-selftests.c               | 1 +
 gdb/unittests/scoped_fd-selftests.c             | 1 +
 gdb/unittests/scoped_mmap-selftests.c           | 1 +
 gdb/unittests/scoped_restore-selftests.c        | 1 +
 gdb/unittests/string_view-selftests.c           | 1 +
 gdb/unittests/style-selftests.c                 | 1 +
 gdb/unittests/tracepoint-selftests.c            | 1 +
 gdb/unittests/tui-selftests.c                   | 1 +
 gdb/unittests/unpack-selftests.c                | 1 +
 gdb/unittests/utils-selftests.c                 | 1 +
 gdb/unittests/vec-utils-selftests.c             | 1 +
 gdb/unittests/xml-utils-selftests.c             | 1 +
 gdb/user-regs.c                                 | 3 ++-
 gdb/utils.c                                     | 3 ++-
 gdb/v850-tdep.c                                 | 3 ++-
 gdb/valops.c                                    | 3 ++-
 gdb/valprint.c                                  | 3 ++-
 gdb/value.c                                     | 3 ++-
 gdb/varobj.c                                    | 3 ++-
 gdb/vax-bsd-nat.c                               | 3 ++-
 gdb/vax-nbsd-tdep.c                             | 3 ++-
 gdb/vax-tdep.c                                  | 3 ++-
 gdb/windows-nat.c                               | 9 ++++++---
 gdb/windows-tdep.c                              | 3 ++-
 gdb/x86-bsd-nat.c                               | 1 +
 gdb/x86-linux-nat.c                             | 1 +
 gdb/xcoffread.c                                 | 3 ++-
 gdb/xml-support.c                               | 4 +++-
 gdb/xstormy16-tdep.c                            | 3 ++-
 gdb/xtensa-linux-nat.c                          | 3 ++-
 gdb/xtensa-linux-tdep.c                         | 3 ++-
 gdb/xtensa-tdep.c                               | 3 ++-
 399 files changed, 758 insertions(+), 354 deletions(-)

diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index 51fd85800274..5cd2ccd46bff 100644
--- a/gdb/aarch64-fbsd-nat.c
+++ b/gdb/aarch64-fbsd-nat.c
@@ -124,8 +124,9 @@ aarch64_fbsd_nat_target::store_registers (struct regcache *regcache,
     }
 }

+void _initialize_aarch64_fbsd_nat ();
 void
-_initialize_aarch64_fbsd_nat (void)
+_initialize_aarch64_fbsd_nat ()
 {
   add_inf_child_target (&the_aarch64_fbsd_nat_target);
 }
diff --git a/gdb/aarch64-fbsd-tdep.c b/gdb/aarch64-fbsd-tdep.c
index 68ecfc30e8d2..b923c5c47404 100644
--- a/gdb/aarch64-fbsd-tdep.c
+++ b/gdb/aarch64-fbsd-tdep.c
@@ -170,8 +170,9 @@ aarch64_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, aarch64_fbsd_iterate_over_regset_sections);
 }

+void _initialize_aarch64_fbsd_tdep ();
 void
-_initialize_aarch64_fbsd_tdep (void)
+_initialize_aarch64_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_FREEBSD,
   aarch64_fbsd_init_abi);
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index b385b5866c0d..77d5863a56aa 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -996,8 +996,9 @@ triggers a breakpoint or watchpoint."),
    &maintenance_show_cmdlist);
 }

+void _initialize_aarch64_linux_nat ();
 void
-_initialize_aarch64_linux_nat (void)
+_initialize_aarch64_linux_nat ()
 {
   add_show_debug_regs_command ();

diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index b854dcdd58cb..67046c4271a3 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -1665,8 +1665,9 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_gcc_target_options (gdbarch, aarch64_linux_gcc_target_options);
 }

+void _initialize_aarch64_linux_tdep ();
 void
-_initialize_aarch64_linux_tdep (void)
+_initialize_aarch64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_LINUX,
   aarch64_linux_init_abi);
diff --git a/gdb/aarch64-newlib-tdep.c b/gdb/aarch64-newlib-tdep.c
index 15537bd8d8c0..456bae529fe6 100644
--- a/gdb/aarch64-newlib-tdep.c
+++ b/gdb/aarch64-newlib-tdep.c
@@ -36,8 +36,9 @@ aarch64_newlib_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->jb_pc = 11;
 }

+void _initialize_aarch64_newlib_tdep ();
 void
-_initialize_aarch64_newlib_tdep (void)
+_initialize_aarch64_newlib_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_NEWLIB,
   aarch64_newlib_init_abi);
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index da41e2213076..8451a916dc3e 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -3406,8 +3406,9 @@ static void aarch64_process_record_test (void);
 }
 #endif

+void _initialize_aarch64_tdep ();
 void
-_initialize_aarch64_tdep (void)
+_initialize_aarch64_tdep ()
 {
   gdbarch_register (bfd_arch_aarch64, aarch64_gdbarch_init,
     aarch64_dump_tdep);
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 01b5c2387509..c5e1e14299ec 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1456,8 +1456,9 @@ type_system_address (struct parser_state *par_state)
   return  type != NULL ? type : parse_type (par_state)->builtin_data_ptr;
 }

+void _initialize_ada_exp ();
 void
-_initialize_ada_exp (void)
+_initialize_ada_exp ()
 {
   obstack_init (&temp_parse_space);
 }
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 334f2917e3dd..c5b5fdf169f5 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -14229,8 +14229,9 @@ ada_free_objfile_observer (struct objfile *objfile)
   ada_clear_symbol_cache ();
 }

+void _initialize_ada_language ();
 void
-_initialize_ada_language (void)
+_initialize_ada_language ()
 {
   initialize_ada_catchpoint_ops ();

diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 0b7a8eb4ad46..0a81c3c6922e 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -1455,8 +1455,9 @@ ada_tasks_new_objfile_observer (struct objfile *objfile)
       ada_tasks_invalidate_inferior_data (inf);
 }

+void _initialize_tasks ();
 void
-_initialize_tasks (void)
+_initialize_tasks ()
 {
   /* Attach various observers.  */
   gdb::observers::normal_stop.attach (ada_tasks_normal_stop_observer);
diff --git a/gdb/agent.c b/gdb/agent.c
index ccf8c44a3612..77ece234996e 100644
--- a/gdb/agent.c
+++ b/gdb/agent.c
@@ -74,8 +74,9 @@ agent_new_objfile (struct objfile *objfile)
   agent_look_up_symbols (objfile);
 }

+void _initialize_agent ();
 void
-_initialize_agent (void)
+_initialize_agent ()
 {
   gdb::observers::new_objfile.attach (agent_new_objfile);

diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index b9b25d5e3cb6..f2bd05fef22b 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1834,8 +1834,9 @@ aix_thread_target::get_ada_task_ptid (long lwp, long thread)
 /* Module startup initialization function, automagically called by
    init.c.  */

+void _initialize_aix_thread ();
 void
-_initialize_aix_thread (void)
+_initialize_aix_thread ()
 {
   /* Notice when object files get loaded and unloaded.  */
   gdb::observers::new_objfile.attach (new_objfile);
diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c
index 71ae8e1419c4..747c3c5abb68 100644
--- a/gdb/alpha-bsd-nat.c
+++ b/gdb/alpha-bsd-nat.c
@@ -192,8 +192,9 @@ alphabsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 }
 

+void _initialize_alphabsd_nat ();
 void
-_initialize_alphabsd_nat (void)
+_initialize_alphabsd_nat ()
 {
   add_inf_child_target (&the_alpha_bsd_nat_target);

diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c
index 4f881532cebe..5fd7a932ce13 100644
--- a/gdb/alpha-linux-nat.c
+++ b/gdb/alpha-linux-nat.c
@@ -101,8 +101,9 @@ alpha_linux_nat_target::register_u_offset (struct gdbarch *gdbarch,
     return FPR_BASE + regno - gdbarch_fp0_regnum (gdbarch);
 }

+void _initialize_alpha_linux_nat ();
 void
-_initialize_alpha_linux_nat (void)
+_initialize_alpha_linux_nat ()
 {
   linux_target = &the_alpha_linux_nat_target;
   add_inf_child_target (&the_alpha_linux_nat_target);
diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c
index aa0342164f2e..589b89567053 100644
--- a/gdb/alpha-linux-tdep.c
+++ b/gdb/alpha-linux-tdep.c
@@ -389,8 +389,9 @@ alpha_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     alpha_linux_gdb_signal_to_target);
 }

+void _initialize_alpha_linux_tdep ();
 void
-_initialize_alpha_linux_tdep (void)
+_initialize_alpha_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_LINUX,
                           alpha_linux_init_abi);
diff --git a/gdb/alpha-nbsd-tdep.c b/gdb/alpha-nbsd-tdep.c
index 8e8c45341922..ab9240e35daa 100644
--- a/gdb/alpha-nbsd-tdep.c
+++ b/gdb/alpha-nbsd-tdep.c
@@ -278,8 +278,9 @@ alphanbsd_init_abi (struct gdbarch_info info,
 }
 

+void _initialize_alphanbsd_tdep ();
 void
-_initialize_alphanbsd_tdep (void)
+_initialize_alphanbsd_tdep ()
 {
   /* Even though NetBSD/alpha used ELF since day one, it used the
      traditional a.out-style core dump format before NetBSD 1.6, but
diff --git a/gdb/alpha-obsd-tdep.c b/gdb/alpha-obsd-tdep.c
index 340e804b4c77..99d9855c7c26 100644
--- a/gdb/alpha-obsd-tdep.c
+++ b/gdb/alpha-obsd-tdep.c
@@ -126,8 +126,9 @@ alphaobsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
 }
 

+void _initialize_alphaobsd_tdep ();
 void
-_initialize_alphaobsd_tdep (void)
+_initialize_alphaobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD,
                           alphaobsd_init_abi);
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index 25acd18a1f83..390f865edad2 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -1821,8 +1821,9 @@ alpha_dwarf2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_base_append_sniffer (gdbarch, dwarf2_frame_base_sniffer);
 }

+void _initialize_alpha_tdep ();
 void
-_initialize_alpha_tdep (void)
+_initialize_alpha_tdep ()
 {

   gdbarch_register (bfd_arch_alpha, alpha_gdbarch_init, NULL);
diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c
index 912ef3182854..5e8f352ffc9c 100644
--- a/gdb/amd64-darwin-tdep.c
+++ b/gdb/amd64-darwin-tdep.c
@@ -116,8 +116,9 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_solib_ops (gdbarch, &darwin_so_ops);
 }

+void _initialize_amd64_darwin_tdep ();
 void
-_initialize_amd64_darwin_tdep (void)
+_initialize_amd64_darwin_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
                           GDB_OSABI_DARWIN, x86_darwin_init_abi_64);
diff --git a/gdb/amd64-dicos-tdep.c b/gdb/amd64-dicos-tdep.c
index e3aa5a29d903..687d1f26cba9 100644
--- a/gdb/amd64-dicos-tdep.c
+++ b/gdb/amd64-dicos-tdep.c
@@ -46,8 +46,9 @@ amd64_dicos_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }

+void _initialize_amd64_dicos_tdep ();
 void
-_initialize_amd64_dicos_tdep (void)
+_initialize_amd64_dicos_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
   amd64_dicos_osabi_sniffer);
diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c
index 662008bf6811..7f85b6a44894 100644
--- a/gdb/amd64-fbsd-nat.c
+++ b/gdb/amd64-fbsd-nat.c
@@ -209,8 +209,9 @@ amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
 }
 #endif

+void _initialize_amd64fbsd_nat ();
 void
-_initialize_amd64fbsd_nat (void)
+_initialize_amd64fbsd_nat ()
 {
   int offset;

diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c
index b0639ed95a67..7c3e33644e10 100644
--- a/gdb/amd64-fbsd-tdep.c
+++ b/gdb/amd64-fbsd-tdep.c
@@ -270,8 +270,9 @@ amd64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  amd64fbsd_get_thread_local_address);
 }

+void _initialize_amd64fbsd_tdep ();
 void
-_initialize_amd64fbsd_tdep (void)
+_initialize_amd64fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
   GDB_OSABI_FREEBSD, amd64fbsd_init_abi);
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index 27748ff98600..63fc84b0b143 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -478,8 +478,9 @@ amd64_linux_nat_target::low_siginfo_fixup (siginfo_t *ptrace,
     return false;
 }

+void _initialize_amd64_linux_nat ();
 void
-_initialize_amd64_linux_nat (void)
+_initialize_amd64_linux_nat ()
 {
   amd64_native_gregset32_reg_offset = amd64_linux_gregset32_reg_offset;
   amd64_native_gregset32_num_regs = I386_LINUX_NUM_REGS;
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 07820a055970..44ecb4e0b338 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -2272,8 +2272,9 @@ amd64_x32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_amd64_linux_tdep ();
 void
-_initialize_amd64_linux_tdep (void)
+_initialize_amd64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
   GDB_OSABI_LINUX, amd64_linux_init_abi);
diff --git a/gdb/amd64-nbsd-nat.c b/gdb/amd64-nbsd-nat.c
index 1d97cc59571e..7a4c00573526 100644
--- a/gdb/amd64-nbsd-nat.c
+++ b/gdb/amd64-nbsd-nat.c
@@ -56,8 +56,9 @@ static int amd64nbsd32_r_reg_offset[] =

 static amd64_bsd_nat_target<nbsd_nat_target> the_amd64_nbsd_nat_target;

+void _initialize_amd64nbsd_nat ();
 void
-_initialize_amd64nbsd_nat (void)
+_initialize_amd64nbsd_nat ()
 {
   amd64_native_gregset32_reg_offset = amd64nbsd32_r_reg_offset;
   amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64nbsd32_r_reg_offset);
diff --git a/gdb/amd64-nbsd-tdep.c b/gdb/amd64-nbsd-tdep.c
index 65f587cf827d..89d07236b857 100644
--- a/gdb/amd64-nbsd-tdep.c
+++ b/gdb/amd64-nbsd-tdep.c
@@ -120,8 +120,9 @@ amd64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }

+void _initialize_amd64nbsd_tdep ();
 void
-_initialize_amd64nbsd_tdep (void)
+_initialize_amd64nbsd_tdep ()
 {
   /* The NetBSD/amd64 native dependent code makes this assumption.  */
   gdb_assert (ARRAY_SIZE (amd64nbsd_r_reg_offset) == AMD64_NUM_GREGS);
diff --git a/gdb/amd64-obsd-nat.c b/gdb/amd64-obsd-nat.c
index f0d8ecf39523..a19f7a19fec8 100644
--- a/gdb/amd64-obsd-nat.c
+++ b/gdb/amd64-obsd-nat.c
@@ -128,8 +128,9 @@ amd64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)

 static amd64_bsd_nat_target<obsd_nat_target> the_amd64_obsd_nat_target;

+void _initialize_amd64obsd_nat ();
 void
-_initialize_amd64obsd_nat (void)
+_initialize_amd64obsd_nat ()
 {
   amd64_native_gregset32_reg_offset = amd64obsd32_r_reg_offset;
   amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64obsd32_r_reg_offset);
diff --git a/gdb/amd64-obsd-tdep.c b/gdb/amd64-obsd-tdep.c
index fb3366589095..d5f84fcc5f0c 100644
--- a/gdb/amd64-obsd-tdep.c
+++ b/gdb/amd64-obsd-tdep.c
@@ -448,8 +448,9 @@ amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_prepend_unwinder (gdbarch, &amd64obsd_trapframe_unwind);
 }

+void _initialize_amd64obsd_tdep ();
 void
-_initialize_amd64obsd_tdep (void)
+_initialize_amd64obsd_tdep ()
 {
   /* The OpenBSD/amd64 native dependent code makes this assumption.  */
   gdb_assert (ARRAY_SIZE (amd64obsd_r_reg_offset) == AMD64_NUM_GREGS);
diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c
index 86f9f60e28f1..8d8600b2cad8 100644
--- a/gdb/amd64-sol2-tdep.c
+++ b/gdb/amd64-sol2-tdep.c
@@ -118,8 +118,9 @@ amd64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
 }

+void _initialize_amd64_sol2_tdep ();
 void
-_initialize_amd64_sol2_tdep (void)
+_initialize_amd64_sol2_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
   GDB_OSABI_SOLARIS, amd64_sol2_init_abi);
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 157a5d0c3348..f5ec40f37e8c 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -3334,8 +3334,9 @@ amd64_target_description (uint64_t xcr0, bool segments)
   return *tdesc;
 }

+void _initialize_amd64_tdep ();
 void
-_initialize_amd64_tdep (void)
+_initialize_amd64_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_NONE,
   amd64_none_init_abi);
diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c
index 67b869110317..5b2c261aba75 100644
--- a/gdb/amd64-windows-nat.c
+++ b/gdb/amd64-windows-nat.c
@@ -95,8 +95,9 @@ amd64_windows_segment_register_p (int regnum)
   return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM;
 }

+void _initialize_amd64_windows_nat ();
 void
-_initialize_amd64_windows_nat (void)
+_initialize_amd64_windows_nat ()
 {
   windows_set_context_register_offsets (mappings);
   windows_set_segment_register_p (amd64_windows_segment_register_p);
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index e1e777c4355e..b2155f347a50 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -1245,8 +1245,9 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_auto_wide_charset (gdbarch, amd64_windows_auto_wide_charset);
 }

+void _initialize_amd64_windows_tdep ();
 void
-_initialize_amd64_windows_tdep (void)
+_initialize_amd64_windows_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_CYGWIN,
                           amd64_windows_init_abi);
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 28dd23196fd6..cf9e88cee512 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -614,8 +614,9 @@ breakpoint_changed (struct breakpoint *b)
   annotate_breakpoints_invalid ();
 }

+void _initialize_annotate ();
 void
-_initialize_annotate (void)
+_initialize_annotate ()
 {
   gdb::observers::breakpoint_created.attach (breakpoint_changed);
   gdb::observers::breakpoint_deleted.attach (breakpoint_changed);
diff --git a/gdb/arc-newlib-tdep.c b/gdb/arc-newlib-tdep.c
index 18e07d618856..70e2c5b0546c 100644
--- a/gdb/arc-newlib-tdep.c
+++ b/gdb/arc-newlib-tdep.c
@@ -56,8 +56,9 @@ arc_newlib_osabi_sniffer (bfd *abfd)
     return GDB_OSABI_UNKNOWN;
 }

+void _initialize_arc_newlib_tdep ();
 void
-_initialize_arc_newlib_tdep (void)
+_initialize_arc_newlib_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_arc, bfd_target_elf_flavour,
   arc_newlib_osabi_sniffer);
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 021cbb008e8a..13da0226f786 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -2145,8 +2145,9 @@ dump_arc_instruction_command (const char *args, int from_tty)
   arc_insn_dump (insn);
 }

+void _initialize_arc_tdep ();
 void
-_initialize_arc_tdep (void)
+_initialize_arc_tdep ()
 {
   gdbarch_register (bfd_arch_arc, arc_gdbarch_init, arc_dump_tdep);

diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 55b115c13550..92d7153ccb26 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -1004,8 +1004,9 @@ default_get_pc_address_flags (frame_info *frame, CORE_ADDR pc)
   return "";
 }

+void _initialize_gdbarch_utils ();
 void
-_initialize_gdbarch_utils (void)
+_initialize_gdbarch_utils ()
 {
   add_setshow_enum_cmd ("endian", class_support,
  endian_enum, &set_endian_string,
diff --git a/gdb/arm-fbsd-nat.c b/gdb/arm-fbsd-nat.c
index 14160be0180d..3470f817a796 100644
--- a/gdb/arm-fbsd-nat.c
+++ b/gdb/arm-fbsd-nat.c
@@ -143,8 +143,9 @@ arm_fbsd_nat_target::read_description ()
   return desc;
 }

+void _initialize_arm_fbsd_nat ();
 void
-_initialize_arm_fbsd_nat (void)
+_initialize_arm_fbsd_nat ()
 {
   add_inf_child_target (&the_arm_fbsd_nat_target);
 }
diff --git a/gdb/arm-fbsd-tdep.c b/gdb/arm-fbsd-tdep.c
index ec0e9d58230b..417a805e672f 100644
--- a/gdb/arm-fbsd-tdep.c
+++ b/gdb/arm-fbsd-tdep.c
@@ -235,8 +235,9 @@ arm_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_software_single_step (gdbarch, arm_software_single_step);
 }

+void _initialize_arm_fbsd_tdep ();
 void
-_initialize_arm_fbsd_tdep (void)
+_initialize_arm_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_FREEBSD,
   arm_fbsd_init_abi);
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index 0b27281783f0..8bbaed5cf886 100644
--- a/gdb/arm-linux-nat.c
+++ b/gdb/arm-linux-nat.c
@@ -1299,8 +1299,9 @@ arm_linux_nat_target::low_new_fork (struct lwp_info *parent, pid_t child_pid)
   *child_state = *parent_state;
 }

+void _initialize_arm_linux_nat ();
 void
-_initialize_arm_linux_nat (void)
+_initialize_arm_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_arm_linux_nat_target;
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 8bfcea6c52f1..363e67161c84 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -2001,8 +2001,9 @@ arm_linux_init_abi (struct gdbarch_info info,
   set_gdbarch_gcc_target_options (gdbarch, arm_linux_gcc_target_options);
 }

+void _initialize_arm_linux_tdep ();
 void
-_initialize_arm_linux_tdep (void)
+_initialize_arm_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_LINUX,
   arm_linux_init_abi);
diff --git a/gdb/arm-nbsd-nat.c b/gdb/arm-nbsd-nat.c
index 4dacd577ba1c..1d058a99ac1a 100644
--- a/gdb/arm-nbsd-nat.c
+++ b/gdb/arm-nbsd-nat.c
@@ -444,8 +444,9 @@ static struct core_fns arm_netbsd_elfcore_fns =
   NULL
 };

+void _initialize_arm_netbsd_nat ();
 void
-_initialize_arm_netbsd_nat (void)
+_initialize_arm_netbsd_nat ()
 {
   add_inf_child_target (&the_arm_netbsd_nat_target);

diff --git a/gdb/arm-nbsd-tdep.c b/gdb/arm-nbsd-tdep.c
index 397d21d7f564..2642024022ee 100644
--- a/gdb/arm-nbsd-tdep.c
+++ b/gdb/arm-nbsd-tdep.c
@@ -85,8 +85,9 @@ arm_netbsd_elf_init_abi (struct gdbarch_info info,
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_arm_netbsd_tdep ();
 void
-_initialize_arm_netbsd_tdep (void)
+_initialize_arm_netbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_NETBSD,
                           arm_netbsd_elf_init_abi);
diff --git a/gdb/arm-obsd-tdep.c b/gdb/arm-obsd-tdep.c
index 3ef0957f9d5f..b3b1e2f7e66b 100644
--- a/gdb/arm-obsd-tdep.c
+++ b/gdb/arm-obsd-tdep.c
@@ -115,8 +115,9 @@ armobsd_init_abi (struct gdbarch_info info,
     }
 }

+void _initialize_armobsd_tdep ();
 void
-_initialize_armobsd_tdep (void)
+_initialize_armobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_OPENBSD,
   armobsd_init_abi);
diff --git a/gdb/arm-pikeos-tdep.c b/gdb/arm-pikeos-tdep.c
index 64c3640f06bb..a993b90e5de7 100644
--- a/gdb/arm-pikeos-tdep.c
+++ b/gdb/arm-pikeos-tdep.c
@@ -81,8 +81,9 @@ arm_pikeos_osabi_sniffer (bfd *abfd)
     return GDB_OSABI_UNKNOWN;
 }

+void _initialize_arm_pikeos_tdep ();
 void
-_initialize_arm_pikeos_tdep (void)
+_initialize_arm_pikeos_tdep ()
 {
   /* Register the sniffer for the PikeOS targets.  */
   gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_elf_flavour,
diff --git a/gdb/arm-symbian-tdep.c b/gdb/arm-symbian-tdep.c
index 6d8236c24222..b17f9c60eb94 100644
--- a/gdb/arm-symbian-tdep.c
+++ b/gdb/arm-symbian-tdep.c
@@ -119,8 +119,9 @@ arm_symbian_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_SYMBIAN;
 }

+void _initialize_arm_symbian_tdep ();
 void
-_initialize_arm_symbian_tdep (void)
+_initialize_arm_symbian_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_arm,
   bfd_target_elf_flavour,
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 91701c25d205..0e72bcc651a4 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9479,8 +9479,9 @@ static void arm_record_test (void);
 }
 #endif

+void _initialize_arm_tdep ();
 void
-_initialize_arm_tdep (void)
+_initialize_arm_tdep ()
 {
   long length;
   int i, j;
diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c
index 188174ab9446..5971b29bd596 100644
--- a/gdb/arm-wince-tdep.c
+++ b/gdb/arm-wince-tdep.c
@@ -154,8 +154,9 @@ arm_wince_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }

+void _initialize_arm_wince_tdep ();
 void
-_initialize_arm_wince_tdep (void)
+_initialize_arm_wince_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_coff_flavour,
                                   arm_wince_osabi_sniffer);
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 5a9f47f0785a..36ec0d11b403 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -1530,8 +1530,9 @@ found and/or loaded."),
   return &retval;
 }

+void _initialize_auto_load ();
 void
-_initialize_auto_load (void)
+_initialize_auto_load ()
 {
   struct cmd_list_element *cmd;
   char *scripts_directory_help, *gdb_name_help, *python_name_help;
diff --git a/gdb/auxv.c b/gdb/auxv.c
index e8925cf70e70..eb1233527e50 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -546,8 +546,9 @@ info_auxv_command (const char *cmd, int from_tty)
     }
 }

+void _initialize_auxv ();
 void
-_initialize_auxv (void)
+_initialize_auxv ()
 {
   add_info ("auxv", info_auxv_command,
     _("Display the inferior's auxiliary vector.\n\
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index 381c7903fc60..d823c87a3cf8 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -1616,8 +1616,9 @@ avr_io_reg_read_command (const char *args, int from_tty)
     }
 }

+void _initialize_avr_tdep ();
 void
-_initialize_avr_tdep (void)
+_initialize_avr_tdep ()
 {
   register_gdbarch_init (bfd_arch_avr, avr_gdbarch_init);

diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index a77c770aad89..14765bd1d865 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -2743,8 +2743,9 @@ maint_agent_printf_command (const char *cmdrest, int from_tty)

 /* Initialization code.  */

+void _initialize_ax_gdb ();
 void
-_initialize_ax_gdb (void)
+_initialize_ax_gdb ()
 {
   add_cmd ("agent", class_maintenance, agent_command,
    _("\
diff --git a/gdb/bfin-linux-tdep.c b/gdb/bfin-linux-tdep.c
index 147223b283e8..f77f099ccb46 100644
--- a/gdb/bfin-linux-tdep.c
+++ b/gdb/bfin-linux-tdep.c
@@ -161,8 +161,9 @@ bfin_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                   bfin_linux_get_syscall_number);
 }

+void _initialize_bfin_linux_tdep ();
 void
-_initialize_bfin_linux_tdep (void)
+_initialize_bfin_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_bfin, 0, GDB_OSABI_LINUX,
                           bfin_linux_init_abi);
diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c
index cb5650d5d93b..23591d4a5f0a 100644
--- a/gdb/bfin-tdep.c
+++ b/gdb/bfin-tdep.c
@@ -833,8 +833,9 @@ bfin_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_bfin_tdep ();
 void
-_initialize_bfin_tdep (void)
+_initialize_bfin_tdep ()
 {
   register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init);
 }
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c
index c645746aa834..e3e6f6fd8c9d 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -424,8 +424,9 @@ initialize_signal_catchpoint_ops (void)
   ops->explains_signal = signal_catchpoint_explains_signal;
 }

+void _initialize_break_catch_sig ();
 void
-_initialize_break_catch_sig (void)
+_initialize_break_catch_sig ()
 {
   initialize_signal_catchpoint_ops ();

diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c
index 553c01cb3203..7e98a293900e 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -599,8 +599,9 @@ initialize_syscall_catchpoint_ops (void)
   ops->print_recreate = print_recreate_catch_syscall;
 }

+void _initialize_break_catch_syscall ();
 void
-_initialize_break_catch_syscall (void)
+_initialize_break_catch_syscall ()
 {
   initialize_syscall_catchpoint_ops ();

diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c
index 87b38b3b6017..07dcc7dc0e73 100644
--- a/gdb/break-catch-throw.c
+++ b/gdb/break-catch-throw.c
@@ -532,8 +532,9 @@ initialize_throw_catchpoint_ops (void)
   ops->allocate_location = allocate_location_exception_catchpoint;
 }

+void _initialize_break_catch_throw ();
 void
-_initialize_break_catch_throw (void)
+_initialize_break_catch_throw ()
 {
   initialize_throw_catchpoint_ops ();

diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 5b734abf1c16..a7a378131a9b 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -15409,8 +15409,9 @@ static struct cmd_list_element *enablebreaklist = NULL;

 cmd_list_element *commands_cmd_element = nullptr;

+void _initialize_breakpoint ();
 void
-_initialize_breakpoint (void)
+_initialize_breakpoint ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c
index a8622a8b0e47..15d538c16db5 100644
--- a/gdb/bsd-uthread.c
+++ b/gdb/bsd-uthread.c
@@ -544,8 +544,9 @@ bsd_uthread_target::pid_to_str (ptid_t ptid)
   return normal_pid_to_str (ptid);
 }

+void _initialize_bsd_uthread ();
 void
-_initialize_bsd_uthread (void)
+_initialize_bsd_uthread ()
 {
   bsd_uthread_data = gdbarch_data_register_pre_init (bsd_uthread_init);

diff --git a/gdb/btrace.c b/gdb/btrace.c
index a91a67681302..0c7becd34906 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -3471,8 +3471,9 @@ show_maint_btrace_pt_skip_pad  (struct ui_file *file, int from_tty,

 /* Initialize btrace maintenance commands.  */

+void _initialize_btrace ();
 void
-_initialize_btrace (void)
+_initialize_btrace ()
 {
   add_cmd ("btrace", class_maintenance, maint_info_btrace_cmd,
    _("Info about branch tracing data."), &maintenanceinfolist);
diff --git a/gdb/charset.c b/gdb/charset.c
index 1af43fffa058..480ed366a492 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -994,8 +994,9 @@ intermediate_encoding (void)

 #endif /* USE_INTERMEDIATE_ENCODING_FUNCTION */

+void _initialize_charset ();
 void
-_initialize_charset (void)
+_initialize_charset ()
 {
   /* The first element is always "auto".  */
   charsets.charsets.push_back (xstrdup ("auto"));
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index c2ba3a4238ab..6f324410e169 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -2113,8 +2113,9 @@ gdb_maint_setting_str_internal_fn (struct gdbarch *gdbarch,
  gdbarch);
 }

+void _initialize_cli_cmds ();
 void
-_initialize_cli_cmds (void)
+_initialize_cli_cmds ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 182e6c71667b..ae047ac75de8 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -622,8 +622,9 @@ binary_append_command (const char *cmd, int from_tty)
      gdb_stdout);
 }

+void _initialize_cli_dump ();
 void
-_initialize_cli_dump (void)
+_initialize_cli_dump ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c
index acec367b5f3d..8cdd2d21c007 100644
--- a/gdb/cli/cli-interp.c
+++ b/gdb/cli/cli-interp.c
@@ -467,8 +467,9 @@ cli_interp_factory (const char *name)

 /* Standard gdb initialization hook.  */

+void _initialize_cli_interp ();
 void
-_initialize_cli_interp (void)
+_initialize_cli_interp ()
 {
   interp_factory_register (INTERP_CONSOLE, cli_interp_factory);

diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index 247334cb52da..d7c1b779bfe4 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -202,8 +202,9 @@ show_logging_command (const char *args, int from_tty)
     printf_unfiltered (_("Debug output will be logged and displayed.\n"));
 }

+void _initialize_cli_logging ();
 void
-_initialize_cli_logging (void)
+_initialize_cli_logging ()
 {
   static struct cmd_list_element *set_logging_cmdlist, *show_logging_cmdlist;

diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index f70ebed20210..c9d23789068d 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1667,8 +1667,9 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name,

 }

+void _initialize_cli_script ();
 void
-_initialize_cli_script (void)
+_initialize_cli_script ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index f3d98ae40910..917a7f6c8fe5 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -313,6 +313,7 @@ set_style_name (const char *name)
   return result;
 }

+void _initialize_cli_style ();
 void
 _initialize_cli_style ()
 {
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index b7f7b81ca882..047f2e5ea4c0 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -691,8 +691,9 @@ show_debug_coff_pe_read (struct ui_file *file, int from_tty,

 /* Adds "Set/show debug coff_pe_read" commands.  */

+void _initialize_coff_pe_read ();
 void
-_initialize_coff_pe_read (void)
+_initialize_coff_pe_read ()
 {
   add_setshow_zuinteger_cmd ("coff-pe-read", class_maintenance,
      &debug_coff_pe_read,
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 60efb59b1a34..227cf866b844 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -2188,8 +2188,9 @@ static const struct sym_fns coff_sym_fns =
   &psym_functions
 };

+void _initialize_coffread ();
 void
-_initialize_coffread (void)
+_initialize_coffread ()
 {
   add_symtab_fns (bfd_target_coff_flavour, &coff_sym_fns);

diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c
index 89c3c7234d42..a179bd6fe527 100644
--- a/gdb/compile/compile-cplus-types.c
+++ b/gdb/compile/compile-cplus-types.c
@@ -1404,6 +1404,7 @@ gcc_cp_plugin::pop_binding_level (const char *debug_name)
   return pop_binding_level ();
 }

+void _initialize_compile_cplus_types ();
 void
 _initialize_compile_cplus_types ()
 {
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c
index a5978b457994..8d134d9cf18e 100644
--- a/gdb/compile/compile.c
+++ b/gdb/compile/compile.c
@@ -957,8 +957,9 @@ compile_instance::compile (const char *filename, int verbose_level)
 /* See compile.h.  */
 cmd_list_element *compile_cmd_element = nullptr;

+void _initialize_compile ();
 void
-_initialize_compile (void)
+_initialize_compile ()
 {
   struct cmd_list_element *c = NULL;

diff --git a/gdb/complaints.c b/gdb/complaints.c
index bda5a998e0bd..45f3e5027d87 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -74,8 +74,9 @@ complaints_show_value (struct ui_file *file, int from_tty,
     value);
 }

+void _initialize_complaints ();
 void
-_initialize_complaints (void)
+_initialize_complaints ()
 {
   add_setshow_zinteger_cmd ("complaints", class_support,
     &stop_whining, _("\
diff --git a/gdb/completer.c b/gdb/completer.c
index 3a17445004d9..619fb8a0285f 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -2935,8 +2935,9 @@ gdb_display_match_list (char **matches, int len, int max,
     }
 }

+void _initialize_completer ();
 void
-_initialize_completer (void)
+_initialize_completer ()
 {
   add_setshow_zuinteger_unlimited_cmd ("max-completions", no_class,
        &max_completions, _("\
diff --git a/gdb/copying.c b/gdb/copying.c
index 8e4077ccb910..63183450a0e0 100644
--- a/gdb/copying.c
+++ b/gdb/copying.c
@@ -640,8 +640,9 @@ show_warranty_command (const char *ignore, int from_tty)
   printf_filtered ("\n");
 }

+void _initialize_copying ();
 void
-_initialize_copying (void)
+_initialize_copying ()
 {
   add_cmd ("copying", no_set_class, show_copying_command,
    _("Conditions for redistributing copies of GDB."),
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 498628c5af6a..3b9f8c760527 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -478,8 +478,9 @@ set_gnutarget (const char *newtarget)
   set_gnutarget_command (NULL, 0, NULL);
 }

+void _initialize_core ();
 void
-_initialize_core (void)
+_initialize_core ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/corelow.c b/gdb/corelow.c
index c53bf1df8fd8..f162a1b7de0b 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -994,8 +994,9 @@ core_target::info_proc (const char *args, enum info_proc_what request)
   return true;
 }

+void _initialize_corelow ();
 void
-_initialize_corelow (void)
+_initialize_corelow ()
 {
   add_target (core_target_info, core_target_open, filename_completer);
 }
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index fd967c3096b8..6997a7bdbe9b 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -391,8 +391,9 @@ show_cp_abi_cmd (const char *args, int from_tty)
   uiout->text (").\n");
 }

+void _initialize_cp_abi ();
 void
-_initialize_cp_abi (void)
+_initialize_cp_abi ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index ad7e3bcc3b74..3a2100d84cf5 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -1061,8 +1061,9 @@ maintenance_cplus_namespace (const char *args, int from_tty)
   printf_unfiltered (_("The `maint namespace' command was removed.\n"));
 }

+void _initialize_cp_namespace ();
 void
-_initialize_cp_namespace (void)
+_initialize_cp_namespace ()
 {
   struct cmd_list_element *cmd;

diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index c1d62f1711ef..91e7d2ddc686 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -2163,8 +2163,9 @@ info_vtbl_command (const char *arg, int from_tty)
   cplus_print_vtable (value);
 }

+void _initialize_cp_support ();
 void
-_initialize_cp_support (void)
+_initialize_cp_support ()
 {
   add_prefix_cmd ("cplus", class_maintenance,
   maint_cplus_command,
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 9f29eee13a01..288ebafec728 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -789,8 +789,9 @@ cp_print_class_member (const gdb_byte *valaddr, struct type *type,
 }


+void _initialize_cp_valprint ();
 void
-_initialize_cp_valprint (void)
+_initialize_cp_valprint ()
 {
   obstack_begin (&dont_print_stat_array_obstack,
  32 * sizeof (struct type *));
diff --git a/gdb/cris-linux-tdep.c b/gdb/cris-linux-tdep.c
index 4ae127b8ec03..9093cc300f4e 100644
--- a/gdb/cris-linux-tdep.c
+++ b/gdb/cris-linux-tdep.c
@@ -47,8 +47,9 @@ cris_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)

 }

+void _initialize_cris_linux_tdep ();
 void
-_initialize_cris_linux_tdep (void)
+_initialize_cris_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_cris, 0, GDB_OSABI_LINUX,
   cris_linux_init_abi);
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 0b2fb91f8cce..22b4db917ca0 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3829,8 +3829,9 @@ static struct core_fns cris_elf_core_fns =
   NULL                                  /* next */
 };

+void _initialize_cris_tdep ();
 void
-_initialize_cris_tdep (void)
+_initialize_cris_tdep ()
 {
   gdbarch_register (bfd_arch_cris, cris_gdbarch_init, cris_dump_tdep);

diff --git a/gdb/csky-linux-tdep.c b/gdb/csky-linux-tdep.c
index b52207948876..fb4310204463 100644
--- a/gdb/csky-linux-tdep.c
+++ b/gdb/csky-linux-tdep.c
@@ -255,8 +255,9 @@ csky_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  &csky_linux_rt_sigreturn_tramp_frame);
 }

+void _initialize_csky_linux_tdep ();
 void
-_initialize_csky_linux_tdep (void)
+_initialize_csky_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_csky, 0, GDB_OSABI_LINUX,
   csky_linux_init_abi);
diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c
index f720a053fbc3..583298ce74c8 100644
--- a/gdb/csky-tdep.c
+++ b/gdb/csky-tdep.c
@@ -2240,8 +2240,9 @@ csky_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_csky_tdep ();
 void
-_initialize_csky_tdep (void)
+_initialize_csky_tdep ()
 {

   register_gdbarch_init (bfd_arch_csky, csky_gdbarch_init);
diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index ebf1eec6a576..bfca2703c552 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -1475,7 +1475,8 @@ elfctf_build_psymtabs (struct objfile *of)
   scan_partial_symbols (fp, of);
 }

+void _initialize_ctfread ();
 void
-_initialize_ctfread (void)
+_initialize_ctfread ()
 {
 }
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 7ed5ad4a9ee7..76d173b61eab 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -344,8 +344,9 @@ builtin_d_type (struct gdbarch *gdbarch)
   return (const struct builtin_d_type *) gdbarch_data (gdbarch, d_type_data);
 }

+void _initialize_d_language ();
 void
-_initialize_d_language (void)
+_initialize_d_language ()
 {
   d_type_data = gdbarch_data_register_post_init (build_d_types);
 }
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index d800309686d3..93d1554b9770 100644
--- a/gdb/darwin-nat-info.c
+++ b/gdb/darwin-nat-info.c
@@ -838,8 +838,9 @@ info_mach_exceptions_command (const char *args, int from_tty)
     }
 }

+void _initialize_darwin_info_commands ();
 void
-_initialize_darwin_info_commands (void)
+_initialize_darwin_info_commands ()
 {
   add_info ("mach-tasks", info_mach_tasks_command,
             _("Get list of tasks in system."));
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 2a33a7d522f2..9baa1e91d539 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -2482,6 +2482,7 @@ darwin_nat_target::supports_multi_process ()
   return true;
 }

+void _initialize_darwin_nat ();
 void
 _initialize_darwin_nat ()
 {
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 0909c67ccbb4..bec622a10f5f 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -3180,8 +3180,9 @@ static const struct sym_fns aout_sym_fns =
   &psym_functions
 };

+void _initialize_dbxread ();
 void
-_initialize_dbxread (void)
+_initialize_dbxread ()
 {
   add_symtab_fns (bfd_target_aout_flavour, &aout_sym_fns);
 }
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 76d14a2443dd..f018882bf95d 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -684,8 +684,9 @@ show_dcache_command (const char *args, int from_tty)
   cmd_show_list (dcache_show_list, from_tty, "");
 }

+void _initialize_dcache ();
 void
-_initialize_dcache (void)
+_initialize_dcache ()
 {
   add_setshow_boolean_cmd ("remotecache", class_support,
    &dcache_enabled_p, _("\
diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c
index ab6058c2a331..b63a35ab1e5a 100644
--- a/gdb/disasm-selftests.c
+++ b/gdb/disasm-selftests.c
@@ -210,8 +210,9 @@ memory_error_test (struct gdbarch *gdbarch)
 } // namespace selftests
 #endif /* GDB_SELF_TEST */

+void _initialize_disasm_selftests ();
 void
-_initialize_disasm_selftests (void)
+_initialize_disasm_selftests ()
 {
 #if GDB_SELF_TEST
   selftests::register_test_foreach_arch ("print_one_insn",
diff --git a/gdb/disasm.c b/gdb/disasm.c
index 39052f7fd36a..7dfbd2fb4721 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -1128,8 +1128,9 @@ disassembler_options_completer (struct cmd_list_element *ignore,

 /* Initialization code.  */

+void _initialize_disasm ();
 void
-_initialize_disasm (void)
+_initialize_disasm ()
 {
   struct cmd_list_element *cmd;

diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
index 85f6c01b6ab0..71d627bcbd07 100644
--- a/gdb/dtrace-probe.c
+++ b/gdb/dtrace-probe.c
@@ -897,8 +897,9 @@ info_probes_dtrace_command (const char *arg, int from_tty)
   info_probes_for_spops (arg, from_tty, &dtrace_static_probe_ops);
 }

+void _initialize_dtrace_probe ();
 void
-_initialize_dtrace_probe (void)
+_initialize_dtrace_probe ()
 {
   all_static_probe_ops.push_back (&dtrace_static_probe_ops);

diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 2fe578ee6bfd..d47cfd2d9a2d 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -431,8 +431,9 @@ maintenance_print_dummy_frames (const char *args, int from_tty)
     }
 }

+void _initialize_dummy_frame ();
 void
-_initialize_dummy_frame (void)
+_initialize_dummy_frame ()
 {
   add_cmd ("dummy-frames", class_maintenance, maintenance_print_dummy_frames,
    _("Print the contents of the internal dummy-frame stack."),
diff --git a/gdb/dwarf-index-cache.c b/gdb/dwarf-index-cache.c
index a2f0c42aad4b..977fcc1b20c2 100644
--- a/gdb/dwarf-index-cache.c
+++ b/gdb/dwarf-index-cache.c
@@ -325,6 +325,7 @@ show_index_cache_stats_command (const char *arg, int from_tty)
      indent, global_index_cache.n_misses ());
 }

+void _initialize_index_cache ();
 void
 _initialize_index_cache ()
 {
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index f2abe70e1554..fd222628cf56 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -1781,6 +1781,7 @@ save_gdb_index_command (const char *arg, int from_tty)
     }
 }

+void _initialize_dwarf_index_write ();
 void
 _initialize_dwarf_index_write ()
 {
diff --git a/gdb/dwarf2-frame-tailcall.c b/gdb/dwarf2-frame-tailcall.c
index 9c167c1d96fb..fca1d3d0235b 100644
--- a/gdb/dwarf2-frame-tailcall.c
+++ b/gdb/dwarf2-frame-tailcall.c
@@ -467,8 +467,9 @@ const struct frame_unwind dwarf2_tailcall_frame_unwind =
   tailcall_frame_prev_arch
 };

+void _initialize_tailcall_frame ();
 void
-_initialize_tailcall_frame (void)
+_initialize_tailcall_frame ()
 {
   cache_htab = htab_create_alloc (50, cache_hash, cache_eq, NULL, xcalloc,
   xfree);
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index baa47c943898..a043d48217bf 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -2354,8 +2354,9 @@ show_dwarf_unwinders_enabled_p (struct ui_file *file, int from_tty,
     value);
 }

+void _initialize_dwarf2_frame ();
 void
-_initialize_dwarf2_frame (void)
+_initialize_dwarf2_frame ()
 {
   dwarf2_frame_data = gdbarch_data_register_pre_init (dwarf2_frame_init);

diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 3c81cba3dfc1..ad82cbec2f70 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -1419,8 +1419,9 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr,
   gdb_assert (this->recursion_depth >= 0);
 }

+void _initialize_dwarf2expr ();
 void
-_initialize_dwarf2expr (void)
+_initialize_dwarf2expr ()
 {
   dwarf_arch_cookie
     = gdbarch_data_register_post_init (dwarf_gdbarch_types_init);
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 99cac03a5474..1fe6829100db 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -4514,8 +4514,9 @@ const struct symbol_computed_ops dwarf2_loclist_funcs = {
   loclist_generate_c_location
 };

+void _initialize_dwarf2loc ();
 void
-_initialize_dwarf2loc (void)
+_initialize_dwarf2loc ()
 {
   add_setshow_zuinteger_cmd ("entry-values", class_maintenance,
      &entry_values_debug,
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 04979f3d12fa..216601a61ab5 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -26133,8 +26133,9 @@ show_check_physname (struct ui_file *file, int from_tty,
     value);
 }

+void _initialize_dwarf2_read ();
 void
-_initialize_dwarf2_read (void)
+_initialize_dwarf2_read ()
 {
   add_prefix_cmd ("dwarf", class_maintenance, set_dwarf_cmd, _("\
 Set DWARF specific variables.\n\
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 618e4cd566ca..9a6ce0ee3716 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1469,8 +1469,9 @@ static const struct gnu_ifunc_fns elf_gnu_ifunc_fns =
   elf_gnu_ifunc_resolver_return_stop
 };

+void _initialize_elfread ();
 void
-_initialize_elfread (void)
+_initialize_elfread ()
 {
   add_symtab_fns (bfd_target_elf_flavour, &elf_sym_fns);

diff --git a/gdb/exec.c b/gdb/exec.c
index 468f9f57f76c..eb07b51dda74 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -1063,8 +1063,9 @@ exec_target::find_memory_regions (find_memory_region_ftype func, void *data)
   return objfile_find_memory_regions (this, func, data);
 }

+void _initialize_exec ();
 void
-_initialize_exec (void)
+_initialize_exec ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/extension.c b/gdb/extension.c
index f9418de43115..947e440c12c8 100644
--- a/gdb/extension.c
+++ b/gdb/extension.c
@@ -934,8 +934,9 @@ ext_lang_before_prompt (const char *current_gdb_prompt)
     }
 }

+void _initialize_extension ();
 void
-_initialize_extension (void)
+_initialize_extension ()
 {
   gdb::observers::before_prompt.attach (ext_lang_before_prompt);
 }
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index c7c47cf8dcfe..e767f52fc210 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -761,8 +761,9 @@ builtin_f_type (struct gdbarch *gdbarch)
   return (const struct builtin_f_type *) gdbarch_data (gdbarch, f_type_data);
 }

+void _initialize_f_language ();
 void
-_initialize_f_language (void)
+_initialize_f_language ()
 {
   f_type_data = gdbarch_data_register_post_init (build_fortran_types);
 }
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 60611fef4948..168957f6fb85 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -479,8 +479,9 @@ info_common_command (const char *comname, int from_tty)
     }
 }

+void _initialize_f_valprint ();
 void
-_initialize_f_valprint (void)
+_initialize_f_valprint ()
 {
   add_info ("common", info_common_command,
     _("Print out the values contained in a Fortran COMMON block."));
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 698d1f0b35e1..0e4afb29a009 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1669,8 +1669,9 @@ fbsd_nat_target::set_syscall_catchpoint (int pid, bool needed,
 #endif
 #endif

+void _initialize_fbsd_nat ();
 void
-_initialize_fbsd_nat (void)
+_initialize_fbsd_nat ()
 {
 #ifdef PT_LWPINFO
   add_setshow_boolean_cmd ("fbsd-lwp", class_maintenance,
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index 9e5d23a4bc8d..bc1b5afd020c 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -2085,8 +2085,9 @@ fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_get_syscall_number (gdbarch, fbsd_get_syscall_number);
 }

+void _initialize_fbsd_tdep ();
 void
-_initialize_fbsd_tdep (void)
+_initialize_fbsd_tdep ()
 {
   fbsd_gdbarch_data_handle =
     gdbarch_data_register_post_init (init_fbsd_gdbarch_data);
diff --git a/gdb/filesystem.c b/gdb/filesystem.c
index 359b42f1bd15..94a1a9cac056 100644
--- a/gdb/filesystem.c
+++ b/gdb/filesystem.c
@@ -76,8 +76,9 @@ is \"%s\".\n"),
       value);
 }

+void _initialize_filesystem ();
 void
-_initialize_filesystem (void)
+_initialize_filesystem ()
 {
   add_setshow_enum_cmd ("target-file-system-kind",
  class_files,
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 1f3b3dfc2a33..c8631571f209 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -280,8 +280,9 @@ find_command (const char *args, int from_tty)
      found_count > 1 ? "s" : "");
 }

+void _initialize_mem_search ();
 void
-_initialize_mem_search (void)
+_initialize_mem_search ()
 {
   add_cmd ("find", class_vars, find_command, _("\
 Search memory for a sequence of bytes.\n\
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 987c8e301a75..5cf1cd4137b8 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -1088,8 +1088,9 @@ copy_integer_to_size_test ()

 #endif

+void _initialize_findvar ();
 void
-_initialize_findvar (void)
+_initialize_findvar ()
 {
 #if GDB_SELF_TEST
   selftests::register_test
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 65a189e04878..010414cc781b 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -157,8 +157,9 @@ show_startup_with_shell (struct ui_file *file, int from_tty,
     value);
 }

+void _initialize_fork_child ();
 void
-_initialize_fork_child (void)
+_initialize_fork_child ()
 {
   add_setshow_filename_cmd ("exec-wrapper", class_run, &exec_wrapper, _("\
 Set a wrapper for running programs.\n\
diff --git a/gdb/frame-base.c b/gdb/frame-base.c
index b36c5e3bac4f..9d8dd52daa7a 100644
--- a/gdb/frame-base.c
+++ b/gdb/frame-base.c
@@ -121,8 +121,9 @@ frame_base_find_by_frame (struct frame_info *this_frame)
   return table->default_base;
 }

+void _initialize_frame_base ();
 void
-_initialize_frame_base (void)
+_initialize_frame_base ()
 {
   frame_base_data = gdbarch_data_register_pre_init (frame_base_init);
 }
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c
index 079a411c2055..35f2e82c57dd 100644
--- a/gdb/frame-unwind.c
+++ b/gdb/frame-unwind.c
@@ -305,8 +305,9 @@ frame_unwind_got_address (struct frame_info *frame, int regnum,
   return reg_val;
 }

+void _initialize_frame_unwind ();
 void
-_initialize_frame_unwind (void)
+_initialize_frame_unwind ()
 {
   frame_unwind_data = gdbarch_data_register_pre_init (frame_unwind_init);
 }
diff --git a/gdb/frame.c b/gdb/frame.c
index c746a6a231ed..9ec93eb4c740 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -2958,8 +2958,9 @@ the rest of the stack trace."),
   },
 };

+void _initialize_frame ();
 void
-_initialize_frame (void)
+_initialize_frame ()
 {
   obstack_init (&frame_cache_obstack);

diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c
index 54ea43478b23..5014c3ebbf3d 100644
--- a/gdb/frv-linux-tdep.c
+++ b/gdb/frv-linux-tdep.c
@@ -481,8 +481,9 @@ frv_linux_elf_osabi_sniffer (bfd *abfd)
     return GDB_OSABI_UNKNOWN;
 }

+void _initialize_frv_linux_tdep ();
 void
-_initialize_frv_linux_tdep (void)
+_initialize_frv_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_frv, 0, GDB_OSABI_LINUX,
   frv_linux_init_abi);
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c
index ca5ffe3c1a13..ae383e7aaf8f 100644
--- a/gdb/frv-tdep.c
+++ b/gdb/frv-tdep.c
@@ -1573,8 +1573,9 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_frv_tdep ();
 void
-_initialize_frv_tdep (void)
+_initialize_frv_tdep ()
 {
   register_gdbarch_init (bfd_arch_frv, frv_gdbarch_init);
 }
diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c
index 2d18b0ac3f1b..99ef69de770f 100644
--- a/gdb/ft32-tdep.c
+++ b/gdb/ft32-tdep.c
@@ -616,8 +616,9 @@ ft32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)

 /* Register this machine's init routine.  */

+void _initialize_ft32_tdep ();
 void
-_initialize_ft32_tdep (void)
+_initialize_ft32_tdep ()
 {
   register_gdbarch_init (bfd_arch_ft32, ft32_gdbarch_init);
 }
diff --git a/gdb/gcore.c b/gdb/gcore.c
index d3f1b47644aa..d12011e9021d 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -590,8 +590,9 @@ gcore_memory_sections (bfd *obfd)
   return 1;
 }

+void _initialize_gcore ();
 void
-_initialize_gcore (void)
+_initialize_gcore ()
 {
   add_com ("generate-core-file", class_files, gcore_command, _("\
 Save a core file with the current state of the debugged process.\n\
diff --git a/gdb/gdb-demangle.c b/gdb/gdb-demangle.c
index debe395e9315..6a664e99bfc4 100644
--- a/gdb/gdb-demangle.c
+++ b/gdb/gdb-demangle.c
@@ -212,8 +212,9 @@ demangle_command (const char *args, int from_tty)
     error (_("Can't demangle \"%s\""), name);
 }

+void _initialize_gdb_demangle ();
 void
-_initialize_gdb_demangle (void)
+_initialize_gdb_demangle ()
 {
   int i, ndems;

diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index c82191ee97b1..5a6dee2d51a8 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -962,8 +962,9 @@ maintenance_info_bfds (const char *arg, int from_tty)
   htab_traverse (all_bfds, print_one_bfd, uiout);
 }

+void _initialize_gdb_bfd ();
 void
-_initialize_gdb_bfd (void)
+_initialize_gdb_bfd ()
 {
   all_bfds = htab_create_alloc (10, htab_hash_pointer, htab_eq_pointer,
  NULL, xcalloc, xfree);
diff --git a/gdb/gdbarch-selftests.c b/gdb/gdbarch-selftests.c
index 47f4d99d18c9..c99a900dbfb2 100644
--- a/gdb/gdbarch-selftests.c
+++ b/gdb/gdbarch-selftests.c
@@ -160,8 +160,9 @@ register_to_value_test (struct gdbarch *gdbarch)
 } // namespace selftests
 #endif /* GDB_SELF_TEST */

+void _initialize_gdbarch_selftests ();
 void
-_initialize_gdbarch_selftests (void)
+_initialize_gdbarch_selftests ()
 {
 #if GDB_SELF_TEST
   selftests::register_test_foreach_arch ("register_to_value",
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index ab9bf1f5f485..cc8569f5c959 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -5548,8 +5548,9 @@ target_gdbarch (void)
   return current_inferior ()->gdbarch;
 }

+void _initialize_gdbarch ();
 void
-_initialize_gdbarch (void)
+_initialize_gdbarch ()
 {
   add_setshow_zuinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\
 Set architecture debugging."), _("\
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 827c622dbf4b..1d5bfd4bc205 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5694,8 +5694,9 @@ objfile_type (struct objfile *objfile)
   return objfile_type;
 }

+void _initialize_gdbtypes ();
 void
-_initialize_gdbtypes (void)
+_initialize_gdbtypes ()
 {
   gdbtypes_data = gdbarch_data_register_post_init (gdbtypes_post_init);

diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 74a96f1154f5..3b438a9a4346 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3500,8 +3500,9 @@ to the thread's initial suspend-count when gdb notices the threads."),
    &thread_cmd_list);
 }

+void _initialize_gnu_nat ();
 void
-_initialize_gnu_nat (void)
+_initialize_gnu_nat ()
 {
   proc_server = getproc ();

diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c
index 987f1c33743c..a9b2e0aa8c00 100644
--- a/gdb/gnu-v2-abi.c
+++ b/gdb/gnu-v2-abi.c
@@ -413,8 +413,9 @@ init_gnuv2_ops (void)
   gnu_v2_abi_ops.baseclass_offset = gnuv2_baseclass_offset;
 }

+void _initialize_gnu_v2_abi ();
 void
-_initialize_gnu_v2_abi (void)
+_initialize_gnu_v2_abi ()
 {
   init_gnuv2_ops ();
   register_cp_abi (&gnu_v2_abi_ops);
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 88543396526b..89574ec9ed51 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1568,8 +1568,9 @@ init_gnuv3_ops (void)
   gnu_v3_abi_ops.pass_by_reference = gnuv3_pass_by_reference;
 }

+void _initialize_gnu_v3_abi ();
 void
-_initialize_gnu_v3_abi (void)
+_initialize_gnu_v3_abi ()
 {
   init_gnuv3_ops ();

diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index fe60b2904111..9ad456f72e8e 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -682,8 +682,9 @@ builtin_go_type (struct gdbarch *gdbarch)
   return (const struct builtin_go_type *) gdbarch_data (gdbarch, go_type_data);
 }

+void _initialize_go_language ();
 void
-_initialize_go_language (void)
+_initialize_go_language ()
 {
   go_type_data = gdbarch_data_register_post_init (build_go_types);
 }
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index bcb400a3e1d7..b3ebd6cf2295 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -2081,8 +2081,9 @@ go32_info_dos_command (const char *args, int from_tty)
   help_list (info_dos_cmdlist, "info dos ", class_info, gdb_stdout);
 }

+void _initialize_go32_nat ();
 void
-_initialize_go32_nat (void)
+_initialize_go32_nat ()
 {
   x86_dr_low.set_control = go32_set_dr7;
   x86_dr_low.set_addr = go32_set_dr;
diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c
index 506836157ee3..4b0103c93464 100644
--- a/gdb/guile/guile.c
+++ b/gdb/guile/guile.c
@@ -792,8 +792,9 @@ message == an error message without a stack will be printed."),
  &set_guile_list, &show_guile_list);
 }

+void _initialize_guile ();
 void
-_initialize_guile (void)
+_initialize_guile ()
 {
   install_gdb_commands ();

diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index f4996ee35a77..5e8ba94b72f8 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -1377,8 +1377,9 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)

 }

+void _initialize_h8300_tdep ();
 void
-_initialize_h8300_tdep (void)
+_initialize_h8300_tdep ()
 {
   register_gdbarch_init (bfd_arch_h8300, h8300_gdbarch_init);
 }
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c
index 5a019d5a5569..f352c25a3e63 100644
--- a/gdb/hppa-linux-nat.c
+++ b/gdb/hppa-linux-nat.c
@@ -384,8 +384,9 @@ fill_fpregset (const struct regcache *regcache,
    }
 }

+void _initialize_hppa_linux_nat ();
 void
-_initialize_hppa_linux_nat (void)
+_initialize_hppa_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_hppa_linux_nat_target;
diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c
index 159f572d4898..51c84d8e4f0d 100644
--- a/gdb/hppa-linux-tdep.c
+++ b/gdb/hppa-linux-tdep.c
@@ -526,8 +526,9 @@ hppa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }

+void _initialize_hppa_linux_tdep ();
 void
-_initialize_hppa_linux_tdep (void)
+_initialize_hppa_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_LINUX,
   hppa_linux_init_abi);
diff --git a/gdb/hppa-nbsd-nat.c b/gdb/hppa-nbsd-nat.c
index 5b8e8f03277b..d8255030ddf0 100644
--- a/gdb/hppa-nbsd-nat.c
+++ b/gdb/hppa-nbsd-nat.c
@@ -228,8 +228,9 @@ hppa_nbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     }
 }

+void _initialize_hppanbsd_nat ();
 void
-_initialize_hppanbsd_nat (void)
+_initialize_hppanbsd_nat ()
 {
   add_inf_child_target (&the_hppa_nbsd_nat_target);
 }
diff --git a/gdb/hppa-nbsd-tdep.c b/gdb/hppa-nbsd-tdep.c
index 383010bef661..b532ab1d5cc5 100644
--- a/gdb/hppa-nbsd-tdep.c
+++ b/gdb/hppa-nbsd-tdep.c
@@ -208,8 +208,9 @@ hppanbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tramp_frame_prepend_unwinder (gdbarch, &hppanbsd_sigtramp_si4);
 }

+void _initialize_hppanbsd_tdep ();
 void
-_initialize_hppanbsd_tdep (void)
+_initialize_hppanbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_NETBSD,
   hppanbsd_init_abi);
diff --git a/gdb/hppa-obsd-nat.c b/gdb/hppa-obsd-nat.c
index 8c79c0043d18..939a532b7853 100644
--- a/gdb/hppa-obsd-nat.c
+++ b/gdb/hppa-obsd-nat.c
@@ -252,8 +252,9 @@ hppa_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     }
 }

+void _initialize_hppaobsd_nat ();
 void
-_initialize_hppaobsd_nat (void)
+_initialize_hppaobsd_nat ()
 {
   add_inf_child_target (&the_hppa_obsd_nat_target);
 }
diff --git a/gdb/hppa-obsd-tdep.c b/gdb/hppa-obsd-tdep.c
index aa013ba3d814..d7f72491c703 100644
--- a/gdb/hppa-obsd-tdep.c
+++ b/gdb/hppa-obsd-tdep.c
@@ -168,8 +168,9 @@ hppaobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, hppaobsd_iterate_over_regset_sections);
 }

+void _initialize_hppabsd_tdep ();
 void
-_initialize_hppabsd_tdep (void)
+_initialize_hppabsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_OPENBSD,
   hppaobsd_init_abi);
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 1ee1b0ba286e..d8a3a5605733 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -3168,8 +3168,9 @@ hppa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
   fprintf_unfiltered (file, "elf = %s\n", tdep->is_elf ? "yes" : "no");
 }

+void _initialize_hppa_tdep ();
 void
-_initialize_hppa_tdep (void)
+_initialize_hppa_tdep ()
 {
   gdbarch_register (bfd_arch_hppa, hppa_gdbarch_init, hppa_dump_tdep);

diff --git a/gdb/i386-bsd-nat.c b/gdb/i386-bsd-nat.c
index 41b4a9c89511..4e22013a7a8d 100644
--- a/gdb/i386-bsd-nat.c
+++ b/gdb/i386-bsd-nat.c
@@ -319,8 +319,9 @@ i386bsd_store_inferior_registers (struct regcache *regcache, int regnum)
     }
 }

+void _initialize_i386bsd_nat ();
 void
-_initialize_i386bsd_nat (void)
+_initialize_i386bsd_nat ()
 {
   int offset;

diff --git a/gdb/i386-cygwin-tdep.c b/gdb/i386-cygwin-tdep.c
index ee04752b546c..f703579efda9 100644
--- a/gdb/i386-cygwin-tdep.c
+++ b/gdb/i386-cygwin-tdep.c
@@ -247,8 +247,9 @@ i386_cygwin_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }

+void _initialize_i386_cygwin_tdep ();
 void
-_initialize_i386_cygwin_tdep (void)
+_initialize_i386_cygwin_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour,
                                   i386_cygwin_osabi_sniffer);
diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c
index 8b0b6fbb6a85..55a1f7ce9a24 100644
--- a/gdb/i386-darwin-nat.c
+++ b/gdb/i386-darwin-nat.c
@@ -633,8 +633,9 @@ darwin_set_sstep (thread_t thread, int enable)
     }
 }

+void _initialize_i386_darwin_nat ();
 void
-_initialize_i386_darwin_nat (void)
+_initialize_i386_darwin_nat ()
 {
 #ifdef BFD64
   amd64_native_gregset64_reg_offset = amd64_darwin_thread_state_reg_offset;
diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c
index deeb61353c11..a1c226ba66fa 100644
--- a/gdb/i386-darwin-tdep.c
+++ b/gdb/i386-darwin-tdep.c
@@ -286,8 +286,9 @@ i386_mach_o_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }

+void _initialize_i386_darwin_tdep ();
 void
-_initialize_i386_darwin_tdep (void)
+_initialize_i386_darwin_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_unknown, bfd_target_mach_o_flavour,
                                   i386_mach_o_osabi_sniffer);
diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c
index ba4803e20452..11c61f862bf0 100644
--- a/gdb/i386-dicos-tdep.c
+++ b/gdb/i386-dicos-tdep.c
@@ -41,8 +41,9 @@ i386_dicos_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }

+void _initialize_i386_dicos_tdep ();
 void
-_initialize_i386_dicos_tdep (void)
+_initialize_i386_dicos_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
                                   i386_dicos_osabi_sniffer);
diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c
index 1a581695e67a..480c017da411 100644
--- a/gdb/i386-fbsd-nat.c
+++ b/gdb/i386-fbsd-nat.c
@@ -174,8 +174,9 @@ i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
 }
 #endif

+void _initialize_i386fbsd_nat ();
 void
-_initialize_i386fbsd_nat (void)
+_initialize_i386fbsd_nat ()
 {
   add_inf_child_target (&the_i386_fbsd_nat_target);

diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c
index d07270992906..0e53453bb6e3 100644
--- a/gdb/i386-fbsd-tdep.c
+++ b/gdb/i386-fbsd-tdep.c
@@ -451,8 +451,9 @@ i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  i386fbsd_get_thread_local_address);
 }

+void _initialize_i386fbsd_tdep ();
 void
-_initialize_i386fbsd_tdep (void)
+_initialize_i386fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_FREEBSD,
   i386fbsd4_init_abi);
diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c
index 1add0c65a078..afbe8eff4935 100644
--- a/gdb/i386-gnu-nat.c
+++ b/gdb/i386-gnu-nat.c
@@ -425,8 +425,9 @@ i386_gnu_dr_get_control (void)
 }
 #endif /* i386_DEBUG_STATE */

+void _initialize_i386gnu_nat ();
 void
-_initialize_i386gnu_nat (void)
+_initialize_i386gnu_nat ()
 {
 #ifdef i386_DEBUG_STATE
   x86_dr_low.set_control = i386_gnu_dr_set_control;
diff --git a/gdb/i386-gnu-tdep.c b/gdb/i386-gnu-tdep.c
index 4f32c094a511..57183be759b6 100644
--- a/gdb/i386-gnu-tdep.c
+++ b/gdb/i386-gnu-tdep.c
@@ -61,8 +61,9 @@ i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>.  */
 }

+void _initialize_i386gnu_tdep ();
 void
-_initialize_i386gnu_tdep (void)
+_initialize_i386gnu_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_HURD, i386gnu_init_abi);
 }
diff --git a/gdb/i386-go32-tdep.c b/gdb/i386-go32-tdep.c
index e4d15cdc62a2..51d79c8da663 100644
--- a/gdb/i386-go32-tdep.c
+++ b/gdb/i386-go32-tdep.c
@@ -62,6 +62,7 @@ i386_coff_osabi_sniffer (bfd *abfd)
 }
 

+void _initialize_i386_go32_tdep ();
 void
 _initialize_i386_go32_tdep ()
 {
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 32cd879de80b..b4224b27c3a2 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -711,8 +711,9 @@ i386_linux_nat_target::low_resume (ptid_t ptid, int step, enum gdb_signal signal
     perror_with_name (("ptrace"));
 }

+void _initialize_i386_linux_nat ();
 void
-_initialize_i386_linux_nat (void)
+_initialize_i386_linux_nat ()
 {
   linux_target = &the_i386_linux_nat_target;

diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 5827cb4eec37..6f702b59e7f8 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -1076,8 +1076,9 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  i386_linux_handle_segmentation_fault);
 }

+void _initialize_i386_linux_tdep ();
 void
-_initialize_i386_linux_tdep (void)
+_initialize_i386_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_LINUX,
   i386_linux_init_abi);
diff --git a/gdb/i386-nbsd-nat.c b/gdb/i386-nbsd-nat.c
index e70a516a37ca..ac775c1ff846 100644
--- a/gdb/i386-nbsd-nat.c
+++ b/gdb/i386-nbsd-nat.c
@@ -73,8 +73,9 @@ i386nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)

 static i386_bsd_nat_target<nbsd_nat_target> the_i386_nbsd_nat_target;

+void _initialize_i386nbsd_nat ();
 void
-_initialize_i386nbsd_nat (void)
+_initialize_i386nbsd_nat ()
 {
   add_inf_child_target (&the_i386_nbsd_nat_target);

diff --git a/gdb/i386-nbsd-tdep.c b/gdb/i386-nbsd-tdep.c
index d0743c3ed7fe..3157451e08f5 100644
--- a/gdb/i386-nbsd-tdep.c
+++ b/gdb/i386-nbsd-tdep.c
@@ -421,8 +421,9 @@ i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->struct_return = pcc_struct_return;
 }

+void _initialize_i386nbsd_tdep ();
 void
-_initialize_i386nbsd_tdep (void)
+_initialize_i386nbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_NETBSD,
   i386nbsdelf_init_abi);
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c
index 493d5c4f6ab4..cd6837b766ce 100644
--- a/gdb/i386-nto-tdep.c
+++ b/gdb/i386-nto-tdep.c
@@ -367,8 +367,9 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_wchar_signed (gdbarch, 0);
 }

+void _initialize_i386nto_tdep ();
 void
-_initialize_i386nto_tdep (void)
+_initialize_i386nto_tdep ()
 {
   init_i386nto_ops ();
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_QNXNTO,
diff --git a/gdb/i386-obsd-nat.c b/gdb/i386-obsd-nat.c
index ebaa83463d46..205c08b1bbe4 100644
--- a/gdb/i386-obsd-nat.c
+++ b/gdb/i386-obsd-nat.c
@@ -90,8 +90,9 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)

 static i386_bsd_nat_target<obsd_nat_target> the_i386_obsd_nat_target;

+void _initialize_i386obsd_nat ();
 void
-_initialize_i386obsd_nat (void)
+_initialize_i386obsd_nat ()
 {
   add_inf_child_target (&i386_obsd_nat_target);

diff --git a/gdb/i386-obsd-tdep.c b/gdb/i386-obsd-tdep.c
index cb419fc93a28..309f5e68b766 100644
--- a/gdb/i386-obsd-tdep.c
+++ b/gdb/i386-obsd-tdep.c
@@ -443,8 +443,9 @@ i386obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_i386obsd_tdep ();
 void
-_initialize_i386obsd_tdep (void)
+_initialize_i386obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_OPENBSD,
   i386obsd_init_abi);
diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c
index 2092c7e6a746..f54b3b109e8d 100644
--- a/gdb/i386-sol2-nat.c
+++ b/gdb/i386-sol2-nat.c
@@ -241,8 +241,9 @@ fill_fpregset (const struct regcache *regcache,

 #endif

+void _initialize_amd64_sol2_nat ();
 void
-_initialize_amd64_sol2_nat (void)
+_initialize_amd64_sol2_nat ()
 {
 #if PR_MODEL_NATIVE == PR_MODEL_LP64
   amd64_native_gregset32_reg_offset = amd64_sol2_gregset32_reg_offset;
diff --git a/gdb/i386-sol2-tdep.c b/gdb/i386-sol2-tdep.c
index ff797848bdd2..1980485cd4db 100644
--- a/gdb/i386-sol2-tdep.c
+++ b/gdb/i386-sol2-tdep.c
@@ -151,8 +151,9 @@ i386_sol2_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }

+void _initialize_i386_sol2_tdep ();
 void
-_initialize_i386_sol2_tdep (void)
+_initialize_i386_sol2_tdep ()
 {
   /* Register an ELF OS ABI sniffer for Solaris 2 binaries.  */
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index a19fc62e8d4a..f120438081de 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -9032,8 +9032,9 @@ show_mpx_cmd (const char *args, int from_tty)
   cmd_show_list (mpx_show_cmdlist, from_tty, "");
 }

+void _initialize_i386_tdep ();
 void
-_initialize_i386_tdep (void)
+_initialize_i386_tdep ()
 {
   register_gdbarch_init (bfd_arch_i386, i386_gdbarch_init);

diff --git a/gdb/i386-windows-nat.c b/gdb/i386-windows-nat.c
index bcabacc5a06e..958c83eafe66 100644
--- a/gdb/i386-windows-nat.c
+++ b/gdb/i386-windows-nat.c
@@ -79,8 +79,9 @@ i386_windows_segment_register_p (int regnum)
   return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM;
 }

+void _initialize_i386_windows_nat ();
 void
-_initialize_i386_windows_nat (void)
+_initialize_i386_windows_nat ()
 {
   windows_set_context_register_offsets (mappings);
   windows_set_segment_register_p (i386_windows_segment_register_p);
diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c
index 1fb018ad9ee1..59b7df13d2fd 100644
--- a/gdb/ia64-libunwind-tdep.c
+++ b/gdb/ia64-libunwind-tdep.c
@@ -591,8 +591,9 @@ libunwind_is_initialized (void)
   return libunwind_initialized;
 }

+void _initialize_libunwind_frame ();
 void
-_initialize_libunwind_frame (void)
+_initialize_libunwind_frame ()
 {
   libunwind_descr_handle
     = gdbarch_data_register_post_init (libunwind_descr_init);
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
index 361fc6ae375f..01cfa0decd5a 100644
--- a/gdb/ia64-linux-nat.c
+++ b/gdb/ia64-linux-nat.c
@@ -921,8 +921,9 @@ ia64_linux_nat_target::low_status_is_event (int status)
  || WSTOPSIG (status) == SIGILL);
 }

+void _initialize_ia64_linux_nat ();
 void
-_initialize_ia64_linux_nat (void)
+_initialize_ia64_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_ia64_linux_nat_target;
diff --git a/gdb/ia64-linux-tdep.c b/gdb/ia64-linux-tdep.c
index 2696f14b2cb0..33684ceb90e2 100644
--- a/gdb/ia64-linux-tdep.c
+++ b/gdb/ia64-linux-tdep.c
@@ -258,8 +258,9 @@ ia64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
       ia64_linux_stap_is_single_operand);
 }

+void _initialize_ia64_linux_tdep ();
 void
-_initialize_ia64_linux_tdep (void)
+_initialize_ia64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_LINUX,
   ia64_linux_init_abi);
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 40d4fd3c19d3..dd07b7d4e7ea 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -4012,8 +4012,9 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_ia64_tdep ();
 void
-_initialize_ia64_tdep (void)
+_initialize_ia64_tdep ()
 {
   gdbarch_register (bfd_arch_ia64, ia64_gdbarch_init, NULL);
 }
diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c
index 211242553bf4..ca0317bc45b3 100644
--- a/gdb/ia64-vms-tdep.c
+++ b/gdb/ia64-vms-tdep.c
@@ -153,8 +153,9 @@ ia64_openvms_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 #endif
 }

+void _initialize_ia64_vms_tdep ();
 void
-_initialize_ia64_vms_tdep (void)
+_initialize_ia64_vms_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_OPENVMS,
   ia64_openvms_init_abi);
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 240644a4eef9..b13c781c9d46 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1507,8 +1507,9 @@ When the function is done executing, GDB will silently stop."),
   gdb_assert_not_reached ("... should not be here");
 }

+void _initialize_infcall ();
 void
-_initialize_infcall (void)
+_initialize_infcall ()
 {
   add_setshow_boolean_cmd ("may-call-functions", no_class,
    &may_call_functions_p, _("\
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 2bf21e26f192..cf8b312f9dbe 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -3162,8 +3162,9 @@ use \"set args\" without arguments.\n\
 \n\
 To start the inferior without using a shell, use \"set startup-with-shell off\"."

+void _initialize_infcmd ();
 void
-_initialize_infcmd (void)
+_initialize_infcmd ()
 {
   static struct cmd_list_element *info_proc_cmdlist;
   struct cmd_list_element *c = NULL;
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 00b2235b96ed..e5e595ed981a 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -953,8 +953,9 @@ initialize_stdin_serial (void)
   stdin_serial = serial_fdopen (0);
 }

+void _initialize_inflow ();
 void
-_initialize_inflow (void)
+_initialize_inflow ()
 {
   add_info ("terminal", info_terminal_command,
     _("Print inferior's saved terminal status."));
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a0583a8e6586..a8636284f182 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -9319,8 +9319,9 @@ infrun_async_inferior_event_handler (gdb_client_data data)
   inferior_event_handler (INF_REG_EVENT, NULL);
 }

+void _initialize_infrun ();
 void
-_initialize_infrun (void)
+_initialize_infrun ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/interps.c b/gdb/interps.c
index 65a01437d580..8c01091e50b9 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -439,8 +439,9 @@ current_interpreter (void)
 }

 /* This just adds the "interpreter-exec" command.  */
+void _initialize_interpreter ();
 void
-_initialize_interpreter (void)
+_initialize_interpreter ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c
index 43a4e7482a01..4b3419ead7b6 100644
--- a/gdb/iq2000-tdep.c
+++ b/gdb/iq2000-tdep.c
@@ -839,8 +839,9 @@ iq2000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
    Initializer function for the iq2000 module.
    Called by gdb at start-up.  */

+void _initialize_iq2000_tdep ();
 void
-_initialize_iq2000_tdep (void)
+_initialize_iq2000_tdep ()
 {
   register_gdbarch_init (bfd_arch_iq2000, iq2000_gdbarch_init);
 }
diff --git a/gdb/jit.c b/gdb/jit.c
index 539753717b91..eeaab70bfe0e 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -1404,8 +1404,9 @@ jit_gdbarch_data_init (struct obstack *obstack)
   return data;
 }

+void _initialize_jit ();
 void
-_initialize_jit (void)
+_initialize_jit ()
 {
   jit_reader_dir = relocate_gdb_directory (JIT_READER_DIR,
    JIT_READER_DIR_RELOCATABLE);
diff --git a/gdb/language.c b/gdb/language.c
index 8f50af8b22dd..03985d3e0cc0 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1136,8 +1136,9 @@ language_lookup_primitive_type_as_symbol (const struct language_defn *la,

 /* Initialize the language routines.  */

+void _initialize_language ();
 void
-_initialize_language (void)
+_initialize_language ()
 {
   static const char *const type_or_range_names[]
     = { "on", "off", "warn", "auto", NULL };
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index c77fb6c73ac9..284f1985d0dc 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -751,8 +751,9 @@ restart_command (const char *args, int from_tty)
   linux_fork_context (fp, from_tty);
 }

+void _initialize_linux_fork ();
 void
-_initialize_linux_fork (void)
+_initialize_linux_fork ()
 {
   /* Checkpoint command: create a fork of the inferior process
      and set it aside for later debugging.  */
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 45b71ea8627f..66004e5be81a 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4545,8 +4545,9 @@ current_lwp_ptid (void)
   return inferior_ptid;
 }

+void _initialize_linux_nat ();
 void
-_initialize_linux_nat (void)
+_initialize_linux_nat ()
 {
   add_setshow_zuinteger_cmd ("lin-lwp", class_maintenance,
      &debug_linux_nat, _("\
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index 820657a1038e..b6374ce399c7 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -2486,8 +2486,9 @@ linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
 }

+void _initialize_linux_tdep ();
 void
-_initialize_linux_tdep (void)
+_initialize_linux_tdep ()
 {
   linux_gdbarch_data_handle =
     gdbarch_data_register_post_init (init_linux_gdbarch_data);
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index ed37de6d198d..ae29c51673a4 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -1968,8 +1968,9 @@ maintenance_check_libthread_db (const char *args, int from_tty)
   check_thread_db (info, true);
 }

+void _initialize_thread_db ();
 void
-_initialize_thread_db (void)
+_initialize_thread_db ()
 {
   /* Defer loading of libthread_db.so until inferior is running.
      This allows gdb to load correct libthread_db for a given
diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c
index 78ba1b022703..f2c3fea48a77 100644
--- a/gdb/lm32-tdep.c
+++ b/gdb/lm32-tdep.c
@@ -549,8 +549,9 @@ lm32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_lm32_tdep ();
 void
-_initialize_lm32_tdep (void)
+_initialize_lm32_tdep ()
 {
   register_gdbarch_init (bfd_arch_lm32, lm32_gdbarch_init);
 }
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 8a167113482d..1a97a58cec4f 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -457,8 +457,9 @@ builtin_m2_type (struct gdbarch *gdbarch)

 /* Initialization for Modula-2 */

+void _initialize_m2_language ();
 void
-_initialize_m2_language (void)
+_initialize_m2_language ()
 {
   m2_type_data = gdbarch_data_register_post_init (build_m2_types);
 }
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c
index 0d6324104b9f..31f4d24cac5d 100644
--- a/gdb/m32c-tdep.c
+++ b/gdb/m32c-tdep.c
@@ -2644,8 +2644,9 @@ m32c_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_m32c_tdep ();
 void
-_initialize_m32c_tdep (void)
+_initialize_m32c_tdep ()
 {
   register_gdbarch_init (bfd_arch_m32c, m32c_gdbarch_init);

diff --git a/gdb/m32r-linux-nat.c b/gdb/m32r-linux-nat.c
index 6bb833778824..24beeca3b75c 100644
--- a/gdb/m32r-linux-nat.c
+++ b/gdb/m32r-linux-nat.c
@@ -237,8 +237,9 @@ m32r_linux_nat_target::store_registers (struct regcache *regcache, int regno)
   _("Got request to store bad register number %d."), regno);
 }

+void _initialize_m32r_linux_nat ();
 void
-_initialize_m32r_linux_nat (void)
+_initialize_m32r_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_m32r_linux_nat_target;
diff --git a/gdb/m32r-linux-tdep.c b/gdb/m32r-linux-tdep.c
index 8f516b1a70f8..becd6434c221 100644
--- a/gdb/m32r-linux-tdep.c
+++ b/gdb/m32r-linux-tdep.c
@@ -471,8 +471,9 @@ m32r_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }

+void _initialize_m32r_linux_tdep ();
 void
-_initialize_m32r_linux_tdep (void)
+_initialize_m32r_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_m32r, 0, GDB_OSABI_LINUX,
   m32r_linux_init_abi);
diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c
index 59f9bb59be94..60e53876408c 100644
--- a/gdb/m32r-tdep.c
+++ b/gdb/m32r-tdep.c
@@ -911,8 +911,9 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_m32r_tdep ();
 void
-_initialize_m32r_tdep (void)
+_initialize_m32r_tdep ()
 {
   register_gdbarch_init (bfd_arch_m32r, m32r_gdbarch_init);
 }
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c
index ff0395da4f3d..4e63c2f2fa0d 100644
--- a/gdb/m68hc11-tdep.c
+++ b/gdb/m68hc11-tdep.c
@@ -1512,8 +1512,9 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
   return gdbarch;
 }

+void _initialize_m68hc11_tdep ();
 void
-_initialize_m68hc11_tdep (void)
+_initialize_m68hc11_tdep ()
 {
   register_gdbarch_init (bfd_arch_m68hc11, m68hc11_gdbarch_init);
   register_gdbarch_init (bfd_arch_m68hc12, m68hc11_gdbarch_init);
diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c
index 562505be045a..184b5c25d724 100644
--- a/gdb/m68k-bsd-nat.c
+++ b/gdb/m68k-bsd-nat.c
@@ -221,8 +221,9 @@ m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }

+void _initialize_m68kbsd_nat ();
 void
-_initialize_m68kbsd_nat (void)
+_initialize_m68kbsd_nat ()
 {
   add_inf_child_target (&the_m68k_bsd_nat_target);

diff --git a/gdb/m68k-bsd-tdep.c b/gdb/m68k-bsd-tdep.c
index 48b230df44e4..f18f33dc7e4d 100644
--- a/gdb/m68k-bsd-tdep.c
+++ b/gdb/m68k-bsd-tdep.c
@@ -152,8 +152,9 @@ m68kbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_m68kbsd_tdep ();
 void
-_initialize_m68kbsd_tdep (void)
+_initialize_m68kbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_NETBSD,
   m68kbsd_init_abi);
diff --git a/gdb/m68k-linux-nat.c b/gdb/m68k-linux-nat.c
index 3b2971b5a4e2..5e9170d9de72 100644
--- a/gdb/m68k-linux-nat.c
+++ b/gdb/m68k-linux-nat.c
@@ -511,8 +511,9 @@ ps_get_thread_area (struct ps_prochandle *ph,
   return PS_OK;
 }

+void _initialize_m68k_linux_nat ();
 void
-_initialize_m68k_linux_nat (void)
+_initialize_m68k_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_m68k_linux_nat_target;
diff --git a/gdb/m68k-linux-tdep.c b/gdb/m68k-linux-tdep.c
index 7b571f5db471..dcc7e089608e 100644
--- a/gdb/m68k-linux-tdep.c
+++ b/gdb/m68k-linux-tdep.c
@@ -423,8 +423,9 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }

+void _initialize_m68k_linux_tdep ();
 void
-_initialize_m68k_linux_tdep (void)
+_initialize_m68k_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_LINUX,
   m68k_linux_init_abi);
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 365b7c8b623d..ec754a62af93 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1281,8 +1281,9 @@ m68k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
     return;
 }

+void _initialize_m68k_tdep ();
 void
-_initialize_m68k_tdep (void)
+_initialize_m68k_tdep ()
 {
   gdbarch_register (bfd_arch_m68k, m68k_gdbarch_init, m68k_dump_tdep);
 }
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 2bb3ab32cb30..54e3d2adc115 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -961,8 +961,9 @@ static const struct sym_fns macho_sym_fns = {
   &psym_functions
 };

+void _initialize_machoread ();
 void
-_initialize_machoread (void)
+_initialize_machoread ()
 {
   add_symtab_fns (bfd_target_mach_o_flavour, &macho_sym_fns);

diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c
index 70b95b107ea0..54aa35e72fe0 100644
--- a/gdb/macrocmd.c
+++ b/gdb/macrocmd.c
@@ -458,8 +458,9 @@ macro_list_command (const char *exp, int from_tty)

 /* Initializing the `macrocmd' module.  */

+void _initialize_macrocmd ();
 void
-_initialize_macrocmd (void)
+_initialize_macrocmd ()
 {
   /* We introduce a new command prefix, `macro', under which we'll put
      the various commands for working with preprocessor macros.  */
diff --git a/gdb/macroscope.c b/gdb/macroscope.c
index af8a2eedc4c6..9a1e7fe633be 100644
--- a/gdb/macroscope.c
+++ b/gdb/macroscope.c
@@ -152,8 +152,9 @@ standard_macro_lookup (const char *name, void *baton)
   return result;
 }

+void _initialize_macroscope ();
 void
-_initialize_macroscope (void)
+_initialize_macroscope ()
 {
   macro_user_macros = new_macro_table (NULL, NULL, NULL);
   macro_set_main (macro_user_macros, "<user-defined>");
diff --git a/gdb/maint-test-options.c b/gdb/maint-test-options.c
index 842a080460a0..2cbdc7c1a202 100644
--- a/gdb/maint-test-options.c
+++ b/gdb/maint-test-options.c
@@ -424,6 +424,7 @@ maintenance_test_options_command (const char *arg, int from_tty)
 }

 
+void _initialize_maint_test_options ();
 void
 _initialize_maint_test_options ()
 {
diff --git a/gdb/maint-test-settings.c b/gdb/maint-test-settings.c
index d8a6e9bb84a2..e8e8874e9a84 100644
--- a/gdb/maint-test-settings.c
+++ b/gdb/maint-test-settings.c
@@ -99,8 +99,9 @@ maintenance_show_test_settings_value_cmd
 }

 
+void _initialize_maint_test_settings ();
 void
-_initialize_maint_test_settings (void)
+_initialize_maint_test_settings ()
 {
   maintenance_test_settings_filename = xstrdup ("/foo/bar");

diff --git a/gdb/maint.c b/gdb/maint.c
index fcb9f4efb5eb..e8e0f287731f 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -1135,8 +1135,9 @@ Selftests have been disabled for this build.\n"));
 }

 
+void _initialize_maint_cmds ();
 void
-_initialize_maint_cmds (void)
+_initialize_maint_cmds ()
 {
   struct cmd_list_element *cmd;

diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index ff1d13032210..b1994f1e0b43 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -4802,8 +4802,9 @@ elfmdebug_build_psymtabs (struct objfile *objfile,
   reader.install ();
 }

+void _initialize_mdebugread ();
 void
-_initialize_mdebugread (void)
+_initialize_mdebugread ()
 {
   mdebug_register_index
     = register_symbol_register_impl (LOC_REGISTER, &mdebug_register_funcs);
diff --git a/gdb/memattr.c b/gdb/memattr.c
index f8cd6f4fb1f7..da60df071c5b 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -594,8 +594,9 @@ dummy_cmd (const char *args, int from_tty)
 static struct cmd_list_element *mem_set_cmdlist;
 static struct cmd_list_element *mem_show_cmdlist;

+void _initialize_mem ();
 void
-_initialize_mem (void)
+_initialize_mem ()
 {
   add_com ("mem", class_vars, mem_command, _("\
 Define attributes for memory region or reset memory region handling to "
diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c
index 13817555a5e1..7e8247cd6427 100644
--- a/gdb/mep-tdep.c
+++ b/gdb/mep-tdep.c
@@ -2448,8 +2448,9 @@ mep_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_mep_tdep ();
 void
-_initialize_mep_tdep (void)
+_initialize_mep_tdep ()
 {
   mep_csr_reggroup = reggroup_new ("csr", USER_REGGROUP);
   mep_cr_reggroup  = reggroup_new ("cr", USER_REGGROUP);
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c
index 7514ba8fb103..88158cee56f7 100644
--- a/gdb/mi/mi-cmd-env.c
+++ b/gdb/mi/mi-cmd-env.c
@@ -261,8 +261,9 @@ mi_cmd_inferior_tty_show (const char *command, char **argv, int argc)
     current_uiout->field_string ("inferior_tty_terminal", inferior_io_terminal);
 }

+void _initialize_mi_cmd_env ();
 void
-_initialize_mi_cmd_env (void)
+_initialize_mi_cmd_env ()
 {
   const char *env;

diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index eadf612b1440..ec6f281c5b96 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -295,8 +295,9 @@ build_table (struct mi_cmd *commands)
     }
 }

+void _initialize_mi_cmds ();
 void
-_initialize_mi_cmds (void)
+_initialize_mi_cmds ()
 {
   build_table (mi_cmds);
   memset (&stats, 0, sizeof (stats));
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 556f446c2e19..2ac4c119961c 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -1335,8 +1335,9 @@ mi_interp_factory (const char *name)
   return new mi_interp (name);
 }

+void _initialize_mi_interp ();
 void
-_initialize_mi_interp (void)
+_initialize_mi_interp ()
 {
   /* The various interpreter levels.  */
   interp_factory_register (INTERP_MI1, mi_interp_factory);
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 24daf3f88388..014feaf64937 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -2749,8 +2749,9 @@ mi_cmd_complete (const char *command, char **argv, int argc)
 }


+void _initialize_mi_main ();
 void
-_initialize_mi_main (void)
+_initialize_mi_main ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c
index 3bb9b5682ac7..be710bedb649 100644
--- a/gdb/microblaze-linux-tdep.c
+++ b/gdb/microblaze-linux-tdep.c
@@ -131,8 +131,9 @@ microblaze_linux_init_abi (struct gdbarch_info info,
  &microblaze_linux_sighandler_tramp_frame);
 }

+void _initialize_microblaze_linux_tdep ();
 void
-_initialize_microblaze_linux_tdep (void)
+_initialize_microblaze_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_microblaze, 0, GDB_OSABI_LINUX,
   microblaze_linux_init_abi);
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index 17871229c807..a05088c36a10 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -753,8 +753,9 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_microblaze_tdep ();
 void
-_initialize_microblaze_tdep (void)
+_initialize_microblaze_tdep ()
 {
   register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);

diff --git a/gdb/mips-fbsd-nat.c b/gdb/mips-fbsd-nat.c
index cb74f19333b0..4a29ee1cb563 100644
--- a/gdb/mips-fbsd-nat.c
+++ b/gdb/mips-fbsd-nat.c
@@ -126,8 +126,9 @@ mips_fbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     }
 }

+void _initialize_mips_fbsd_nat ();
 void
-_initialize_mips_fbsd_nat (void)
+_initialize_mips_fbsd_nat ()
 {
   add_inf_child_target (&the_mips_fbsd_nat_target);
 }
diff --git a/gdb/mips-fbsd-tdep.c b/gdb/mips-fbsd-tdep.c
index 76073f01e631..abaf7f2474ab 100644
--- a/gdb/mips-fbsd-tdep.c
+++ b/gdb/mips-fbsd-tdep.c
@@ -553,8 +553,9 @@ mips_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
        mips_fbsd_lp64_fetch_link_map_offsets));
 }

+void _initialize_mips_fbsd_tdep ();
 void
-_initialize_mips_fbsd_tdep (void)
+_initialize_mips_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_FREEBSD,
   mips_fbsd_init_abi);
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index 104c972f2463..38ff461a35b3 100644
--- a/gdb/mips-linux-nat.c
+++ b/gdb/mips-linux-nat.c
@@ -783,8 +783,9 @@ mips_linux_nat_target::close ()
   linux_nat_trad_target::close ();
 }

+void _initialize_mips_linux_nat ();
 void
-_initialize_mips_linux_nat (void)
+_initialize_mips_linux_nat ()
 {
   add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
    &show_debug_regs, _("\
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index 002c5c51d96c..aa7b8d11f3fb 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -1642,8 +1642,9 @@ mips_linux_init_abi (struct gdbarch_info info,
     }
 }

+void _initialize_mips_linux_tdep ();
 void
-_initialize_mips_linux_tdep (void)
+_initialize_mips_linux_tdep ()
 {
   const struct bfd_arch_info *arch_info;

diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c
index 4f6a8eedb0a1..527c67a7abc5 100644
--- a/gdb/mips-nbsd-nat.c
+++ b/gdb/mips-nbsd-nat.c
@@ -113,8 +113,9 @@ mips_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
     }
 }

+void _initialize_mipsnbsd_nat ();
 void
-_initialize_mipsnbsd_nat (void)
+_initialize_mipsnbsd_nat ()
 {
   add_inf_child_target (&the_mips_nbsd_nat_target);
 }
diff --git a/gdb/mips-nbsd-tdep.c b/gdb/mips-nbsd-tdep.c
index a2901c09edff..38bc7ce636b0 100644
--- a/gdb/mips-nbsd-tdep.c
+++ b/gdb/mips-nbsd-tdep.c
@@ -371,8 +371,9 @@ mipsnbsd_init_abi (struct gdbarch_info info,
        mipsnbsd_lp64_fetch_link_map_offsets));
 }

+void _initialize_mipsnbsd_tdep ();
 void
-_initialize_mipsnbsd_tdep (void)
+_initialize_mipsnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_NETBSD,
   mipsnbsd_init_abi);
diff --git a/gdb/mips-sde-tdep.c b/gdb/mips-sde-tdep.c
index 01afafb1fa61..685c3c7263c0 100644
--- a/gdb/mips-sde-tdep.c
+++ b/gdb/mips-sde-tdep.c
@@ -256,8 +256,9 @@ mips_sde_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_base_append_sniffer (gdbarch, mips_sde_frame_base_sniffer);
 }

+void _initialize_mips_sde_tdep ();
 void
-_initialize_mips_sde_tdep (void)
+_initialize_mips_sde_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_mips,
   bfd_target_elf_flavour,
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index f89e37b503e3..90ec3707c5db 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -8971,8 +8971,9 @@ mips_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
       mips_fpu_type_str (MIPS_FPU_TYPE (gdbarch)));
 }

+void _initialize_mips_tdep ();
 void
-_initialize_mips_tdep (void)
+_initialize_mips_tdep ()
 {
   static struct cmd_list_element *mipsfpulist = NULL;

diff --git a/gdb/mips64-obsd-nat.c b/gdb/mips64-obsd-nat.c
index 8ea8fb1cc9ad..3661fff097a0 100644
--- a/gdb/mips64-obsd-nat.c
+++ b/gdb/mips64-obsd-nat.c
@@ -115,8 +115,9 @@ mips64_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
     perror_with_name (_("Couldn't write registers"));
 }

+void _initialize_mips64obsd_nat ();
 void
-_initialize_mips64obsd_nat (void)
+_initialize_mips64obsd_nat ()
 {
   add_inf_child_target (&the_mips64_obsd_nat_target);
 }
diff --git a/gdb/mips64-obsd-tdep.c b/gdb/mips64-obsd-tdep.c
index 857ff7a3362e..3194ce862bd4 100644
--- a/gdb/mips64-obsd-tdep.c
+++ b/gdb/mips64-obsd-tdep.c
@@ -159,8 +159,9 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }

+void _initialize_mips64obsd_tdep ();
 void
-_initialize_mips64obsd_tdep (void)
+_initialize_mips64obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_OPENBSD,
   mips64obsd_init_abi);
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 2c11873d4449..6e39538e952d 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -379,8 +379,9 @@ static const struct sym_fns ecoff_sym_fns =
   &psym_functions
 };

+void _initialize_mipsread ();
 void
-_initialize_mipsread (void)
+_initialize_mipsread ()
 {
   add_symtab_fns (bfd_target_ecoff_flavour, &ecoff_sym_fns);
 }
diff --git a/gdb/mn10300-linux-tdep.c b/gdb/mn10300-linux-tdep.c
index 24f40b9b22ef..1dfe2a21cf93 100644
--- a/gdb/mn10300-linux-tdep.c
+++ b/gdb/mn10300-linux-tdep.c
@@ -715,8 +715,9 @@ am33_linux_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tramp_frame_prepend_unwinder (gdbarch, &am33_linux_rt_sigframe);
 }

+void _initialize_mn10300_linux_tdep ();
 void
-_initialize_mn10300_linux_tdep (void)
+_initialize_mn10300_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_mn10300, 0,
   GDB_OSABI_LINUX, am33_linux_init_osabi);
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index b472c36ebf1b..d779ad1dd0d8 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -1417,8 +1417,9 @@ mn10300_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
       tdep->am33_mode);
 }

+void _initialize_mn10300_tdep ();
 void
-_initialize_mn10300_tdep (void)
+_initialize_mn10300_tdep ()
 {
   gdbarch_register (bfd_arch_mn10300, mn10300_gdbarch_init, mn10300_dump_tdep);
 }
diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c
index b3ffbfb62ed8..1f552481662c 100644
--- a/gdb/moxie-tdep.c
+++ b/gdb/moxie-tdep.c
@@ -1103,8 +1103,9 @@ moxie_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)

 /* Register this machine's init routine.  */

+void _initialize_moxie_tdep ();
 void
-_initialize_moxie_tdep (void)
+_initialize_moxie_tdep ()
 {
   register_gdbarch_init (bfd_arch_moxie, moxie_gdbarch_init);
 }
diff --git a/gdb/msp430-tdep.c b/gdb/msp430-tdep.c
index 1b38396a8b3e..0893274686ee 100644
--- a/gdb/msp430-tdep.c
+++ b/gdb/msp430-tdep.c
@@ -986,8 +986,9 @@ msp430_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)

 /* Register the initialization routine.  */

+void _initialize_msp430_tdep ();
 void
-_initialize_msp430_tdep (void)
+_initialize_msp430_tdep ()
 {
   register_gdbarch_init (bfd_arch_msp430, msp430_gdbarch_init);
 }
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c
index 8d9bac085b6e..5238fe54a71b 100644
--- a/gdb/nds32-tdep.c
+++ b/gdb/nds32-tdep.c
@@ -2096,8 +2096,9 @@ nds32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_nds32_tdep ();
 void
-_initialize_nds32_tdep (void)
+_initialize_nds32_tdep ()
 {
   /* Initialize gdbarch.  */
   register_gdbarch_init (bfd_arch_nds32, nds32_gdbarch_init);
diff --git a/gdb/nios2-linux-tdep.c b/gdb/nios2-linux-tdep.c
index 3078bc4bb672..345dfeb9235e 100644
--- a/gdb/nios2-linux-tdep.c
+++ b/gdb/nios2-linux-tdep.c
@@ -248,8 +248,9 @@ nios2_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tdep->jb_pc = 10;
 }

+void _initialize_nios2_linux_tdep ();
 void
-_initialize_nios2_linux_tdep (void)
+_initialize_nios2_linux_tdep ()
 {

   const struct bfd_arch_info *arch_info;
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c
index 6e00a322d24e..cb669da24802 100644
--- a/gdb/nios2-tdep.c
+++ b/gdb/nios2-tdep.c
@@ -2390,8 +2390,9 @@ nios2_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_nios2_tdep ();
 void
-_initialize_nios2_tdep (void)
+_initialize_nios2_tdep ()
 {
   gdbarch_register (bfd_arch_nios2, nios2_gdbarch_init, NULL);
   initialize_tdesc_nios2 ();
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index c31dbf136c8c..58e572c094db 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -1505,8 +1505,9 @@ init_procfs_targets (void)

 #define OSTYPE_NTO 1

+void _initialize_procfs ();
 void
-_initialize_procfs (void)
+_initialize_procfs ()
 {
   sigset_t set;

diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index c423d575db80..5adf913a5e33 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -1332,8 +1332,9 @@ find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc)
   return 0;
 }

+void _initialize_objc_language ();
 void
-_initialize_objc_language (void)
+_initialize_objc_language ()
 {
   add_info ("selectors", info_selectors_command,
     _("All Objective-C selectors, or those matching REGEXP."));
diff --git a/gdb/observable.c b/gdb/observable.c
index 5a66be080192..81aa392cc21f 100644
--- a/gdb/observable.c
+++ b/gdb/observable.c
@@ -87,8 +87,9 @@ show_observer_debug (struct ui_file *file, int from_tty,
   fprintf_filtered (file, _("Observer debugging is %s.\n"), value);
 }

+void _initialize_observer ();
 void
-_initialize_observer (void)
+_initialize_observer ()
 {
   add_setshow_zuinteger_cmd ("observer", class_maintenance,
      &gdb::observers::observer_debug, _("\
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index e5052bbd6ceb..1763590214fd 100644
--- a/gdb/opencl-lang.c
+++ b/gdb/opencl-lang.c
@@ -1178,8 +1178,9 @@ build_opencl_types (struct gdbarch *gdbarch)
   return types;
 }

+void _initialize_opencl_language ();
 void
-_initialize_opencl_language (void)
+_initialize_opencl_language ()
 {
   opencl_type_data = gdbarch_data_register_post_init (build_opencl_types);
 }
diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c
index 860144aa350e..15677f9cfaf6 100644
--- a/gdb/or1k-linux-tdep.c
+++ b/gdb/or1k-linux-tdep.c
@@ -163,8 +163,9 @@ or1k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)

 /* Initialize OpenRISC Linux target support.  */

+void _initialize_or1k_linux_tdep ();
 void
-_initialize_or1k_linux_tdep (void)
+_initialize_or1k_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_or1k, 0, GDB_OSABI_LINUX,
   or1k_linux_init_abi);
diff --git a/gdb/or1k-tdep.c b/gdb/or1k-tdep.c
index eca780a9c12a..772ecff33491 100644
--- a/gdb/or1k-tdep.c
+++ b/gdb/or1k-tdep.c
@@ -1269,8 +1269,9 @@ or1k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
 }
 

+void _initialize_or1k_tdep ();
 void
-_initialize_or1k_tdep (void)
+_initialize_or1k_tdep ()
 {
   /* Register this architecture.  */
   gdbarch_register (bfd_arch_or1k, or1k_gdbarch_init, or1k_dump_tdep);
diff --git a/gdb/osabi.c b/gdb/osabi.c
index dec1bddc4cef..b9a8687a7cc3 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -653,8 +653,9 @@ show_osabi (struct ui_file *file, int from_tty, struct cmd_list_element *c,
       gdbarch_osabi_name (GDB_OSABI_DEFAULT));
 }

+void _initialize_gdb_osabi ();
 void
-_initialize_gdb_osabi (void)
+_initialize_gdb_osabi ()
 {
   if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID].pretty, "<invalid>") != 0)
     internal_error
diff --git a/gdb/osdata.c b/gdb/osdata.c
index 19b663693dd7..9b0604752129 100644
--- a/gdb/osdata.c
+++ b/gdb/osdata.c
@@ -289,8 +289,9 @@ info_osdata_command (const char *arg, int from_tty)
   info_osdata (arg);
 }

+void _initialize_osdata ();
 void
-_initialize_osdata (void)
+_initialize_osdata ()
 {
   add_info ("os", info_osdata_command,
            _("Show OS data ARG."));
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index e337132a07d6..aaeb4b67e983 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -891,8 +891,9 @@ pascal_object_print_static_field (struct value *val,
   common_val_print (val, stream, recurse, &opts, current_language);
 }

+void _initialize_pascal_valprint ();
 void
-_initialize_pascal_valprint (void)
+_initialize_pascal_valprint ()
 {
   add_setshow_boolean_cmd ("pascal_static-members", class_support,
    &user_print_options.pascal_static_field_print, _("\
diff --git a/gdb/parse.c b/gdb/parse.c
index 65e3c6008cdf..b4d9005de55d 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -1436,8 +1436,9 @@ increase_expout_size (struct expr_builder *ps, size_t lenelt)
     }
 }

+void _initialize_parse ();
 void
-_initialize_parse (void)
+_initialize_parse ()
 {
   add_setshow_zuinteger_cmd ("expression", class_maintenance,
      &expressiondebug,
diff --git a/gdb/ppc-fbsd-nat.c b/gdb/ppc-fbsd-nat.c
index 5643fab82e7f..a1b268ab2892 100644
--- a/gdb/ppc-fbsd-nat.c
+++ b/gdb/ppc-fbsd-nat.c
@@ -201,8 +201,9 @@ ppcfbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }

+void _initialize_ppcfbsd_nat ();
 void
-_initialize_ppcfbsd_nat (void)
+_initialize_ppcfbsd_nat ()
 {
   add_inf_child_target (&the_ppc_fbsd_nat_target);

diff --git a/gdb/ppc-fbsd-tdep.c b/gdb/ppc-fbsd-tdep.c
index 8ae108438d3b..349396f52b2c 100644
--- a/gdb/ppc-fbsd-tdep.c
+++ b/gdb/ppc-fbsd-tdep.c
@@ -361,8 +361,9 @@ ppcfbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  ppcfbsd_get_thread_local_address);
 }

+void _initialize_ppcfbsd_tdep ();
 void
-_initialize_ppcfbsd_tdep (void)
+_initialize_ppcfbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_powerpc, bfd_mach_ppc, GDB_OSABI_FREEBSD,
   ppcfbsd_init_abi);
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index d619971a001d..27fa7f93e2b3 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -2671,8 +2671,9 @@ ppc_linux_nat_target::read_description ()
   return ppc_linux_match_description (features);
 }

+void _initialize_ppc_linux_nat ();
 void
-_initialize_ppc_linux_nat (void)
+_initialize_ppc_linux_nat ()
 {
   linux_target = &the_ppc_linux_nat_target;

diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 901b938f257a..676be7252176 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -2155,8 +2155,9 @@ ppc_linux_init_abi (struct gdbarch_info info,
   ppc_init_linux_record_tdep (&ppc64_linux_record_tdep, 8);
 }

+void _initialize_ppc_linux_tdep ();
 void
-_initialize_ppc_linux_tdep (void)
+_initialize_ppc_linux_tdep ()
 {
   /* Register for all sub-families of the POWER/PowerPC: 32-bit and
      64-bit PowerPC, and the older rs6k.  */
diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c
index a6175f9e0685..a2a0c0b958e9 100644
--- a/gdb/ppc-nbsd-nat.c
+++ b/gdb/ppc-nbsd-nat.c
@@ -179,8 +179,9 @@ ppcnbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }

+void _initialize_ppcnbsd_nat ();
 void
-_initialize_ppcnbsd_nat (void)
+_initialize_ppcnbsd_nat ()
 {
   /* Support debugging kernel virtual memory images.  */
   bsd_kvm_add_target (ppcnbsd_supply_pcb);
diff --git a/gdb/ppc-nbsd-tdep.c b/gdb/ppc-nbsd-tdep.c
index 387f0221462d..d75930c9f8d7 100644
--- a/gdb/ppc-nbsd-tdep.c
+++ b/gdb/ppc-nbsd-tdep.c
@@ -188,8 +188,9 @@ ppcnbsd_init_abi (struct gdbarch_info info,
   tramp_frame_prepend_unwinder (gdbarch, &ppcnbsd2_sigtramp);
 }

+void _initialize_ppcnbsd_tdep ();
 void
-_initialize_ppcnbsd_tdep (void)
+_initialize_ppcnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_NETBSD,
   ppcnbsd_init_abi);
diff --git a/gdb/ppc-obsd-nat.c b/gdb/ppc-obsd-nat.c
index 7c8335c9ad7e..8d36d2b5caf6 100644
--- a/gdb/ppc-obsd-nat.c
+++ b/gdb/ppc-obsd-nat.c
@@ -187,8 +187,9 @@ ppcobsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }

+void _initialize_ppcobsd_nat ();
 void
-_initialize_ppcobsd_nat (void)
+_initialize_ppcobsd_nat ()
 {
   add_inf_child_target (&the_ppc_obsd_nat_target);

diff --git a/gdb/ppc-obsd-tdep.c b/gdb/ppc-obsd-tdep.c
index 1288766eb48f..5f70d35180c2 100644
--- a/gdb/ppc-obsd-tdep.c
+++ b/gdb/ppc-obsd-tdep.c
@@ -261,8 +261,9 @@ ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_append_unwinder (gdbarch, &ppcobsd_sigtramp_frame_unwind);
 }

+void _initialize_ppcobsd_tdep ();
 void
-_initialize_ppcobsd_tdep (void)
+_initialize_ppcobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_OPENBSD,
   ppcobsd_init_abi);
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 281ee4d284a7..5f2678c8c70b 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2737,8 +2737,9 @@ eval_command (const char *arg, int from_tty)
   execute_command (expanded.c_str (), from_tty);
 }

+void _initialize_printcmd ();
 void
-_initialize_printcmd (void)
+_initialize_printcmd ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/probe.c b/gdb/probe.c
index d813b3e5e8b6..a21df73d0ec8 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -876,8 +876,9 @@ static const struct internalvar_funcs probe_funcs =

 std::vector<const static_probe_ops *> all_static_probe_ops;

+void _initialize_probe ();
 void
-_initialize_probe (void)
+_initialize_probe ()
 {
   all_static_probe_ops.push_back (&any_static_probe_ops);

diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index 4ad1cdc06323..d7ad5031b0a2 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -416,8 +416,9 @@ proc_prettyfprint_status (long flags, int why, int what, int thread)
     }
 }

+void _initialize_proc_api ();
 void
-_initialize_proc_api (void)
+_initialize_proc_api ()
 {
   add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\
 Set tracing for /proc api calls."), _("\
diff --git a/gdb/proc-events.c b/gdb/proc-events.c
index 5fd92b5328ec..e921c47f8f05 100644
--- a/gdb/proc-events.c
+++ b/gdb/proc-events.c
@@ -762,8 +762,9 @@ proc_prettyprint_actionset (struct sigaction *actions, int verbose)
 {
 }

+void _initialize_proc_events ();
 void
-_initialize_proc_events (void)
+_initialize_proc_events ()
 {
   init_syscall_table ();
 }
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index 86f79ad58389..e0383700a1d7 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -212,8 +212,9 @@ ps_getpid (struct ps_prochandle *ph)
   return ph->thread->ptid.pid ();
 }

+void _initialize_proc_service ();
 void
-_initialize_proc_service (void)
+_initialize_proc_service ()
 {
   /* This function solely exists to make sure this module is linked
      into the final binary.  */
diff --git a/gdb/procfs.c b/gdb/procfs.c
index a59e32c6d7ad..09a036f90b98 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3700,8 +3700,9 @@ proc_untrace_sysexit_cmd (const char *args, int from_tty)
   proc_trace_syscalls (args, from_tty, PR_SYSEXIT, FLAG_RESET);
 }

+void _initialize_procfs ();
 void
-_initialize_procfs (void)
+_initialize_procfs ()
 {
   gdb::observers::inferior_created.attach (procfs_inferior_created);

diff --git a/gdb/producer.c b/gdb/producer.c
index 7e5d4478c8be..735a928f335a 100644
--- a/gdb/producer.c
+++ b/gdb/producer.c
@@ -208,6 +208,7 @@ Version 18.0 Beta";
 }
 #endif

+void _initialize_producer ();
 void
 _initialize_producer ()
 {
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 7caf1c6029a9..09231bf981d2 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -2154,8 +2154,9 @@ maintenance_check_psymtabs (const char *ignore, int from_tty)
       }
 }

+void _initialize_psymtab ();
 void
-_initialize_psymtab (void)
+_initialize_psymtab ()
 {
   add_cmd ("psymbols", class_maintenance, maintenance_print_psymbols, _("\
 Print dump of current partial symbol definitions.\n\
diff --git a/gdb/python/python.c b/gdb/python/python.c
index bf214fae6e2d..f7aadb1633c8 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1730,8 +1730,9 @@ do_start_initialization ()
 /* See python.h.  */
 cmd_list_element *python_cmd_element = nullptr;

+void _initialize_python ();
 void
-_initialize_python (void)
+_initialize_python ()
 {
   add_com ("python-interactive", class_obscure,
    python_interactive_command,
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 59fdfaba7946..5d24c59e9969 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -598,6 +598,7 @@ Support for Ravenscar task/thread switching is disabled\n"));
 /* Module startup initialization function, automagically called by
    init.c.  */

+void _initialize_ravenscar ();
 void
 _initialize_ravenscar ()
 {
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 7e5b7860df6e..33ee4e9d8170 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -3147,8 +3147,9 @@ show_record_pt_buffer_size_value (struct ui_file *file, int from_tty,

 /* Initialize btrace commands.  */

+void _initialize_record_btrace ();
 void
-_initialize_record_btrace (void)
+_initialize_record_btrace ()
 {
   add_prefix_cmd ("btrace", class_obscure, cmd_record_btrace_start,
   _("Start branch trace recording."), &record_btrace_cmdlist,
diff --git a/gdb/record-full.c b/gdb/record-full.c
index f759a5185fd2..16966220e0f0 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -2812,8 +2812,9 @@ show_record_full_command (const char *args, int from_tty)
   cmd_show_list (show_record_full_cmdlist, from_tty, "");
 }

+void _initialize_record_full ();
 void
-_initialize_record_full (void)
+_initialize_record_full ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/record.c b/gdb/record.c
index 51d2a94a2bf7..94600eb5e7ee 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -772,8 +772,9 @@ set_record_call_history_size (const char *args, int from_tty,
  &record_call_history_size);
 }

+void _initialize_record ();
 void
-_initialize_record (void)
+_initialize_record ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/regcache-dump.c b/gdb/regcache-dump.c
index 7d4455ad57c0..10f6e49a786d 100644
--- a/gdb/regcache-dump.c
+++ b/gdb/regcache-dump.c
@@ -305,8 +305,9 @@ maintenance_print_remote_registers (const char *args, int from_tty)
   regcache_print (args, regcache_dump_remote);
 }

+void _initialize_regcache_dump ();
 void
-_initialize_regcache_dump (void)
+_initialize_regcache_dump ()
 {
   add_cmd ("registers", class_maintenance, maintenance_print_registers,
    _("Print the internal register configuration.\n"
diff --git a/gdb/regcache.c b/gdb/regcache.c
index b9f1b0a349fd..4f079c91a7f2 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1854,8 +1854,9 @@ cooked_write_test (struct gdbarch *gdbarch)
 } // namespace selftests
 #endif /* GDB_SELF_TEST */

+void _initialize_regcache ();
 void
-_initialize_regcache (void)
+_initialize_regcache ()
 {
   regcache_descr_handle
     = gdbarch_data_register_post_init (init_regcache_descr);
diff --git a/gdb/reggroups.c b/gdb/reggroups.c
index 52b13fc9af88..aaaadd7d3946 100644
--- a/gdb/reggroups.c
+++ b/gdb/reggroups.c
@@ -321,8 +321,9 @@ struct reggroup *const all_reggroup = &all_group;
 struct reggroup *const save_reggroup = &save_group;
 struct reggroup *const restore_reggroup = &restore_group;

+void _initialize_reggroup ();
 void
-_initialize_reggroup (void)
+_initialize_reggroup ()
 {
   reggroups_data = gdbarch_data_register_pre_init (reggroups_init);

diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index b6e70a434806..cc0011f958cf 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -237,8 +237,9 @@ remote_notif_state::~remote_notif_state ()
     delete pending_event[i];
 }

+void _initialize_notif ();
 void
-_initialize_notif (void)
+_initialize_notif ()
 {
   add_setshow_boolean_cmd ("notification", no_class, &notif_debug,
    _("\
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 582d206d60c7..6f78350a02c9 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -1294,8 +1294,9 @@ gdbsim_target::has_memory ()
   return true;
 }

+void _initialize_remote_sim ();
 void
-_initialize_remote_sim (void)
+_initialize_remote_sim ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/remote.c b/gdb/remote.c
index 665e2773e15b..03a00db0e8ce 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -14312,8 +14312,9 @@ set_range_stepping (const char *ignore_args, int from_tty,
     }
 }

+void _initialize_remote ();
 void
-_initialize_remote (void)
+_initialize_remote ()
 {
   struct cmd_list_element *cmd;
   const char *cmd_name;
diff --git a/gdb/reverse.c b/gdb/reverse.c
index fbffa5227dfa..1ccb9d279719 100644
--- a/gdb/reverse.c
+++ b/gdb/reverse.c
@@ -322,8 +322,9 @@ info_bookmarks_command (const char *args, int from_tty)
     }
 }

+void _initialize_reverse ();
 void
-_initialize_reverse (void)
+_initialize_reverse ()
 {
   add_com ("reverse-step", class_run, reverse_step, _("\
 Step program backward until it reaches the beginning of another source line.\n\
diff --git a/gdb/riscv-fbsd-nat.c b/gdb/riscv-fbsd-nat.c
index ca30506c12f7..27a093552f29 100644
--- a/gdb/riscv-fbsd-nat.c
+++ b/gdb/riscv-fbsd-nat.c
@@ -128,8 +128,9 @@ riscv_fbsd_nat_target::store_registers (struct regcache *regcache,
     }
 }

+void _initialize_riscv_fbsd_nat ();
 void
-_initialize_riscv_fbsd_nat (void)
+_initialize_riscv_fbsd_nat ()
 {
   add_inf_child_target (&the_riscv_fbsd_nat_target);
 }
diff --git a/gdb/riscv-fbsd-tdep.c b/gdb/riscv-fbsd-tdep.c
index 157907373c4e..8a9295904de7 100644
--- a/gdb/riscv-fbsd-tdep.c
+++ b/gdb/riscv-fbsd-tdep.c
@@ -225,8 +225,9 @@ riscv_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  riscv_fbsd_get_thread_local_address);
 }

+void _initialize_riscv_fbsd_tdep ();
 void
-_initialize_riscv_fbsd_tdep (void)
+_initialize_riscv_fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_riscv, 0, GDB_OSABI_FREEBSD,
   riscv_fbsd_init_abi);
diff --git a/gdb/riscv-linux-nat.c b/gdb/riscv-linux-nat.c
index 2f95cb3951ad..7a96b7b0743a 100644
--- a/gdb/riscv-linux-nat.c
+++ b/gdb/riscv-linux-nat.c
@@ -310,8 +310,9 @@ riscv_linux_nat_target::store_registers (struct regcache *regcache, int regnum)

 /* Initialize RISC-V Linux native support.  */

+void _initialize_riscv_linux_nat ();
 void
-_initialize_riscv_linux_nat (void)
+_initialize_riscv_linux_nat ()
 {
   /* Register the target.  */
   linux_target = &the_riscv_linux_nat_target;
diff --git a/gdb/riscv-linux-tdep.c b/gdb/riscv-linux-tdep.c
index 919c7e56e4f8..12c0eef223cb 100644
--- a/gdb/riscv-linux-tdep.c
+++ b/gdb/riscv-linux-tdep.c
@@ -186,8 +186,9 @@ riscv_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)

 /* Initialize RISC-V Linux target support.  */

+void _initialize_riscv_linux_tdep ();
 void
-_initialize_riscv_linux_tdep (void)
+_initialize_riscv_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_riscv, 0, GDB_OSABI_LINUX,
   riscv_linux_init_abi);
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 9b06f7c08d35..d585b0be5ab0 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -3511,8 +3511,9 @@ riscv_init_reggroups ()
   csr_reggroup = reggroup_new ("csr", USER_REGGROUP);
 }

+void _initialize_riscv_tdep ();
 void
-_initialize_riscv_tdep (void)
+_initialize_riscv_tdep ()
 {
   riscv_create_csr_aliases ();
   riscv_init_reggroups ();
diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c
index f34f4c6d7f61..3705efdbe89a 100644
--- a/gdb/rl78-tdep.c
+++ b/gdb/rl78-tdep.c
@@ -1480,8 +1480,9 @@ rl78_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)

 /* Register the above initialization routine.  */

+void _initialize_rl78_tdep ();
 void
-_initialize_rl78_tdep (void)
+_initialize_rl78_tdep ()
 {
   register_gdbarch_init (bfd_arch_rl78, rl78_gdbarch_init);
 }
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index 45fd7c4e7e9c..b5add6409954 100644
--- a/gdb/rs6000-aix-tdep.c
+++ b/gdb/rs6000-aix-tdep.c
@@ -1177,8 +1177,9 @@ rs6000_aix_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
   frame_unwind_append_unwinder (gdbarch, &aix_sighandle_frame_unwind);
 }

+void _initialize_rs6000_aix_tdep ();
 void
-_initialize_rs6000_aix_tdep (void)
+_initialize_rs6000_aix_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_rs6000,
                                   bfd_target_xcoff_flavour,
diff --git a/gdb/rs6000-lynx178-tdep.c b/gdb/rs6000-lynx178-tdep.c
index bf5d9d859d22..0a20a1783cd5 100644
--- a/gdb/rs6000-lynx178-tdep.c
+++ b/gdb/rs6000-lynx178-tdep.c
@@ -406,8 +406,9 @@ rs6000_lynx178_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
 }

+void _initialize_rs6000_lynx178_tdep ();
 void
-_initialize_rs6000_lynx178_tdep (void)
+_initialize_rs6000_lynx178_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_rs6000,
                                   bfd_target_xcoff_flavour,
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 7c916090165b..654e06e3e4bf 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -668,8 +668,9 @@ rs6000_nat_target::xfer_shared_libraries
     }
 }

+void _initialize_rs6000_nat ();
 void
-_initialize_rs6000_nat (void)
+_initialize_rs6000_nat ()
 {
   add_inf_child_target (&the_rs6000_nat_target);
 }
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index f61009941da2..ccffc39508a6 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -7307,8 +7307,9 @@ ppc_insn_ds_field (unsigned int insn)

 /* Initialization code.  */

+void _initialize_rs6000_tdep ();
 void
-_initialize_rs6000_tdep (void)
+_initialize_rs6000_tdep ()
 {
   gdbarch_register (bfd_arch_rs6000, rs6000_gdbarch_init, rs6000_dump_tdep);
   gdbarch_register (bfd_arch_powerpc, rs6000_gdbarch_init, rs6000_dump_tdep);
diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c
index 0676d9d6005e..74ab1e19a57a 100644
--- a/gdb/run-on-main-thread.c
+++ b/gdb/run-on-main-thread.c
@@ -89,6 +89,7 @@ run_on_main_thread (std::function<void ()> &&func)
   serial_event_set (runnable_event);
 }

+void _initialize_run_on_main_thread ();
 void
 _initialize_run_on_main_thread ()
 {
diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y
index 3ab9e26246c2..de4a8161635d 100644
--- a/gdb/rust-exp.y
+++ b/gdb/rust-exp.y
@@ -2826,8 +2826,9 @@ rust_lex_tests (void)

 #endif /* GDB_SELF_TEST */

+void _initialize_rust_exp ();
 void
-_initialize_rust_exp (void)
+_initialize_rust_exp ()
 {
   int code = regcomp (&number_regex, number_regex_text, REG_EXTENDED);
   /* If the regular expression was incorrect, it was a programming
diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c
index f282fa32a430..766eaa06ed3e 100644
--- a/gdb/rx-tdep.c
+++ b/gdb/rx-tdep.c
@@ -1057,8 +1057,9 @@ rx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)

 /* Register the above initialization routine.  */

+void _initialize_rx_tdep ();
 void
-_initialize_rx_tdep (void)
+_initialize_rx_tdep ()
 {
   register_gdbarch_init (bfd_arch_rx, rx_gdbarch_init);
   initialize_tdesc_rx ();
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index 8fa050589785..922268d1ef21 100644
--- a/gdb/s12z-tdep.c
+++ b/gdb/s12z-tdep.c
@@ -685,8 +685,9 @@ s12z_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_s12z_tdep ();
 void
-_initialize_s12z_tdep (void)
+_initialize_s12z_tdep ()
 {
   gdbarch_register (bfd_arch_s12z, s12z_gdbarch_init, NULL);
 }
diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index d1634bd3a6ae..9ec806f5b591 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -1045,8 +1045,9 @@ s390_linux_nat_target::read_description ()
   tdesc_s390_linux32);
 }

+void _initialize_s390_nat ();
 void
-_initialize_s390_nat (void)
+_initialize_s390_nat ()
 {
   /* Register the target.  */
   linux_target = &the_s390_linux_nat_target;
diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c
index 65de27731948..e27ce2781f5f 100644
--- a/gdb/s390-linux-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -1177,8 +1177,9 @@ s390_linux_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_xml_syscall_file_name (gdbarch, XML_SYSCALL_FILENAME_S390X);
 }

+void _initialize_s390_linux_tdep ();
 void
-_initialize_s390_linux_tdep (void)
+_initialize_s390_linux_tdep ()
 {
   /* Hook us into the OSABI mechanism.  */
   gdbarch_register_osabi (bfd_arch_s390, bfd_mach_s390_31, GDB_OSABI_LINUX,
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index b08f331b0a1d..e01505549e67 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -7215,8 +7215,9 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_s390_tdep ();
 void
-_initialize_s390_tdep (void)
+_initialize_s390_tdep ()
 {
   /* Hook us into the gdbarch mechanism.  */
   register_gdbarch_init (bfd_arch_s390, s390_gdbarch_init);
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 0ec0e35943a0..14eeee9eb8c1 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -1510,8 +1510,9 @@ score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_score_tdep ();
 void
-_initialize_score_tdep (void)
+_initialize_score_tdep ()
 {
   gdbarch_register (bfd_arch_score, score_gdbarch_init, NULL);
 }
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index a1a8f29c7124..9a5b6dcd0e45 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -915,8 +915,9 @@ info_serial_command (const char *arg, int from_tty)
 #endif
 }

+void _initialize_ser_dos ();
 void
-_initialize_ser_dos (void)
+_initialize_ser_dos ()
 {
   serial_add_interface (&dos_ops);

diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index e6363a1053d9..d204e861a7a8 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -1338,8 +1338,9 @@ static const struct serial_ops tcp_ops =
   net_windows_done_wait_handle
 };

+void _initialize_ser_windows ();
 void
-_initialize_ser_windows (void)
+_initialize_ser_windows ()
 {
   WSADATA wsa_data;

diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index bdc6b054c5d0..db4c8e0e1a4c 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -228,8 +228,9 @@ static const struct serial_ops pipe_ops =
   ser_unix_write_prim
 };

+void _initialize_ser_pipe ();
 void
-_initialize_ser_pipe (void)
+_initialize_ser_pipe ()
 {
   serial_add_interface (&pipe_ops);
 }
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index cecdfb2626bb..c5581744f996 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -469,8 +469,9 @@ static const struct serial_ops tcp_ops =

 #endif /* USE_WIN32API */

+void _initialize_ser_tcp ();
 void
-_initialize_ser_tcp (void)
+_initialize_ser_tcp ()
 {
 #ifdef USE_WIN32API
   /* Do nothing; the TCP serial operations will be initialized in
diff --git a/gdb/ser-uds.c b/gdb/ser-uds.c
index 7d216de13d50..eb4fe2cb44e3 100644
--- a/gdb/ser-uds.c
+++ b/gdb/ser-uds.c
@@ -111,8 +111,9 @@ static const struct serial_ops uds_ops =
   uds_write_prim
 };

+void _initialize_ser_socket ();
 void
-_initialize_ser_socket (void)
+_initialize_ser_socket ()
 {
   serial_add_interface (&uds_ops);
 }
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index df6bc4c7c4ce..8000e352a09b 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -498,8 +498,9 @@ static const struct serial_ops hardwire_ops =
   ser_unix_write_prim
 };

+void _initialize_ser_hardwire ();
 void
-_initialize_ser_hardwire (void)
+_initialize_ser_hardwire ()
 {
   serial_add_interface (&hardwire_ops);

diff --git a/gdb/serial.c b/gdb/serial.c
index a1c3b91c7c2f..e0d64dd627f1 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -676,8 +676,9 @@ set_parity (const char *ignore_args, int from_tty, struct cmd_list_element *c)
     serial_parity = GDBPARITY_NONE;
 }

+void _initialize_serial ();
 void
-_initialize_serial (void)
+_initialize_serial ()
 {
 #if 0
   add_com ("connect", class_obscure, connect_command, _("\
diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
index 13c10eeeda65..5d2f38f5801e 100644
--- a/gdb/sh-linux-tdep.c
+++ b/gdb/sh-linux-tdep.c
@@ -208,8 +208,9 @@ sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   tramp_frame_prepend_unwinder (gdbarch, &sh_linux_rt_sigreturn_tramp_frame);
 }

+void _initialize_sh_linux_tdep ();
 void
-_initialize_sh_linux_tdep (void)
+_initialize_sh_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_LINUX, sh_linux_init_abi);
 }
diff --git a/gdb/sh-nbsd-nat.c b/gdb/sh-nbsd-nat.c
index 873bdba00281..47cae00d4f53 100644
--- a/gdb/sh-nbsd-nat.c
+++ b/gdb/sh-nbsd-nat.c
@@ -96,8 +96,9 @@ sh_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
     }
 }

+void _initialize_shnbsd_nat ();
 void
-_initialize_shnbsd_nat (void)
+_initialize_shnbsd_nat ()
 {
   add_inf_child_target (&the_sh_nbsd_nat_target);
 }
diff --git a/gdb/sh-nbsd-tdep.c b/gdb/sh-nbsd-tdep.c
index bdf5e4f61308..aa319261684a 100644
--- a/gdb/sh-nbsd-tdep.c
+++ b/gdb/sh-nbsd-tdep.c
@@ -71,8 +71,9 @@ shnbsd_init_abi (struct gdbarch_info info,
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_shnbsd_tdep ();
 void
-_initialize_shnbsd_tdep (void)
+_initialize_shnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_NETBSD,
   shnbsd_init_abi);
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index e3aee0ac286b..b69313d050ff 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -2422,8 +2422,9 @@ set_sh_command (const char *args, int from_tty)
   help_list (setshcmdlist, "set sh ", all_commands, gdb_stdout);
 }

+void _initialize_sh_tdep ();
 void
-_initialize_sh_tdep (void)
+_initialize_sh_tdep ()
 {
   gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL);

diff --git a/gdb/skip.c b/gdb/skip.c
index b27bebaa26a5..05be42ab58d7 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -665,8 +665,9 @@ complete_skip_number (cmd_list_element *cmd,
     }
 }

+void _initialize_step_skip ();
 void
-_initialize_step_skip (void)
+_initialize_step_skip ()
 {
   static struct cmd_list_element *skiplist = NULL;
   struct cmd_list_element *c;
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index bf2325b6a9e7..333fb961931b 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1190,8 +1190,9 @@ sol_thread_target::get_ada_task_ptid (long lwp, long thread)
   return (thread_info->ptid);
 }

+void _initialize_sol_thread ();
 void
-_initialize_sol_thread (void)
+_initialize_sol_thread ()
 {
   void *dlhandle;

diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index f44ea937d947..125c8960c20c 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -719,8 +719,9 @@ show_solib_aix_debug (struct ui_file *file, int from_tty,
 /* The target_so_ops for AIX targets.  */
 struct target_so_ops solib_aix_so_ops;

+void _initialize_solib_aix ();
 void
-_initialize_solib_aix (void)
+_initialize_solib_aix ()
 {
   solib_aix_so_ops.relocate_section_addresses
     = solib_aix_relocate_section_addresses;
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index 1ad781d686bd..03d91d1690a2 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -669,8 +669,9 @@ darwin_bfd_open (const char *pathname)

 struct target_so_ops darwin_so_ops;

+void _initialize_darwin_solib ();
 void
-_initialize_darwin_solib (void)
+_initialize_darwin_solib ()
 {
   darwin_so_ops.relocate_section_addresses = darwin_relocate_section_addresses;
   darwin_so_ops.free_so = darwin_free_so;
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c
index 52fa0e868aac..2acad96b5d9a 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -1022,8 +1022,9 @@ show_dsbt_debug (struct ui_file *file, int from_tty,

 struct target_so_ops dsbt_so_ops;

+void _initialize_dsbt_solib ();
 void
-_initialize_dsbt_solib (void)
+_initialize_dsbt_solib ()
 {
   dsbt_so_ops.relocate_section_addresses = dsbt_relocate_section_addresses;
   dsbt_so_ops.free_so = dsbt_free_so;
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index 10476f6250c9..582f2d5ede60 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -1142,8 +1142,9 @@ frv_fetch_objfile_link_map (struct objfile *objfile)

 struct target_so_ops frv_so_ops;

+void _initialize_frv_solib ();
 void
-_initialize_frv_solib (void)
+_initialize_frv_solib ()
 {
   frv_so_ops.relocate_section_addresses = frv_relocate_section_addresses;
   frv_so_ops.free_so = frv_free_so;
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 3122f06939f5..1c769bb4015b 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -3260,8 +3260,9 @@ svr4_iterate_over_objfiles_in_search_order
     }
 }

+void _initialize_svr4_solib ();
 void
-_initialize_svr4_solib (void)
+_initialize_svr4_solib ()
 {
   solib_svr4_data = gdbarch_data_register_pre_init (solib_svr4_init);

diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index 625f0990d109..93d95fdda652 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -438,8 +438,9 @@ solib_target_in_dynsym_resolve_code (CORE_ADDR pc)

 struct target_so_ops solib_target_so_ops;

+void _initialize_solib_target ();
 void
-_initialize_solib_target (void)
+_initialize_solib_target ()
 {
   solib_target_so_ops.relocate_section_addresses
     = solib_target_relocate_section_addresses;
diff --git a/gdb/solib.c b/gdb/solib.c
index 962ce32dcf03..ba388d77e8d0 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1569,8 +1569,9 @@ remove_user_added_objfile (struct objfile *objfile)
     }
 }

+void _initialize_solib ();
 void
-_initialize_solib (void)
+_initialize_solib ()
 {
   solib_data = gdbarch_data_register_pre_init (solib_init);

diff --git a/gdb/source-cache.c b/gdb/source-cache.c
index 965dc380b14c..d546ae595248 100644
--- a/gdb/source-cache.c
+++ b/gdb/source-cache.c
@@ -329,6 +329,7 @@ static void extract_lines_test ()
 }
 #endif

+void _initialize_source_cache ();
 void
 _initialize_source_cache ()
 {
diff --git a/gdb/source.c b/gdb/source.c
index 1bc98d376e55..327e9c1229eb 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1865,8 +1865,9 @@ source_lines_range::source_lines_range (int startline,
 }

 
+void _initialize_source ();
 void
-_initialize_source (void)
+_initialize_source ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index 03e2c6ebba80..1489d0980e1c 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -66,8 +66,9 @@ fill_fpregset (const struct regcache *regcache,
   sparc32_collect_fpregset (sparc_fpregmap, regcache, regnum, fpregs);
 }

+void _initialize_sparc_linux_nat ();
 void
-_initialize_sparc_linux_nat (void)
+_initialize_sparc_linux_nat ()
 {
   sparc_fpregmap = &sparc32_bsd_fpregmap;

diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c
index e1ba8c60b2ea..1c4adb836745 100644
--- a/gdb/sparc-linux-tdep.c
+++ b/gdb/sparc-linux-tdep.c
@@ -465,8 +465,9 @@ sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     sparc32_linux_gdb_signal_to_target);
 }

+void _initialize_sparc_linux_tdep ();
 void
-_initialize_sparc_linux_tdep (void)
+_initialize_sparc_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_LINUX,
   sparc32_linux_init_abi);
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 81d16cecfdc3..dff0f5215657 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -305,8 +305,9 @@ sparc_xfer_wcookie (enum target_object object,
 }
 

+void _initialize_sparc_nat ();
 void
-_initialize_sparc_nat (void)
+_initialize_sparc_nat ()
 {
   /* Default to using SunOS 4 register sets.  */
   if (sparc_gregmap == NULL)
diff --git a/gdb/sparc-nbsd-nat.c b/gdb/sparc-nbsd-nat.c
index cf940f658378..7138d7df7376 100644
--- a/gdb/sparc-nbsd-nat.c
+++ b/gdb/sparc-nbsd-nat.c
@@ -57,8 +57,9 @@ sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)

 static sparc_target<inf_ptrace_target> the_sparc_nbsd_nat_target;

+void _initialize_sparcnbsd_nat ();
 void
-_initialize_sparcnbsd_nat (void)
+_initialize_sparcnbsd_nat ()
 {
   sparc_gregmap = &sparc32nbsd_gregmap;
   sparc_fpregmap = &sparc32_bsd_fpregmap;
diff --git a/gdb/sparc-nbsd-tdep.c b/gdb/sparc-nbsd-tdep.c
index c1574bbdc617..7aba6020d27e 100644
--- a/gdb/sparc-nbsd-tdep.c
+++ b/gdb/sparc-nbsd-tdep.c
@@ -315,8 +315,9 @@ sparc32nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_sparcnbsd_tdep ();
 void
-_initialize_sparcnbsd_tdep (void)
+_initialize_sparcnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_NETBSD,
   sparc32nbsd_init_abi);
diff --git a/gdb/sparc-obsd-tdep.c b/gdb/sparc-obsd-tdep.c
index b5392d2aed16..53bdf6c15124 100644
--- a/gdb/sparc-obsd-tdep.c
+++ b/gdb/sparc-obsd-tdep.c
@@ -246,8 +246,9 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   bsd_uthread_set_collect_uthread (gdbarch, sparc32obsd_collect_uthread);
 }

+void _initialize_sparc32obsd_tdep ();
 void
-_initialize_sparc32obsd_tdep (void)
+_initialize_sparc32obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_OPENBSD,
   sparc32obsd_init_abi);
diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c
index a886449902dd..2df66d512cef 100644
--- a/gdb/sparc-sol2-tdep.c
+++ b/gdb/sparc-sol2-tdep.c
@@ -293,8 +293,9 @@ sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
 }

+void _initialize_sparc_sol2_tdep ();
 void
-_initialize_sparc_sol2_tdep (void)
+_initialize_sparc_sol2_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, 0,
   GDB_OSABI_SOLARIS, sparc32_sol2_init_abi);
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 16d1c48755d3..e048f872c2a2 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -2258,8 +2258,9 @@ const struct sparc_fpregmap sparc32_bsd_fpregmap =
   32 * 4, /* %fsr */
 };

+void _initialize_sparc_tdep ();
 void
-_initialize_sparc_tdep (void)
+_initialize_sparc_tdep ()
 {
   register_gdbarch_init (bfd_arch_sparc, sparc32_gdbarch_init);
 }
diff --git a/gdb/sparc64-fbsd-nat.c b/gdb/sparc64-fbsd-nat.c
index d7d874836700..a3ca6705b084 100644
--- a/gdb/sparc64-fbsd-nat.c
+++ b/gdb/sparc64-fbsd-nat.c
@@ -62,8 +62,9 @@ sparc64fbsd_kvm_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 /* Add some extra features to the generic SPARC target.  */
 static sparc_target<fbsd_nat_target> the_sparc64_fbsd_nat_target;

+void _initialize_sparc64fbsd_nat ();
 void
-_initialize_sparc64fbsd_nat (void)
+_initialize_sparc64fbsd_nat ()
 {
   add_inf_child_target (&the_sparc64_fbsd_nat_target);

diff --git a/gdb/sparc64-fbsd-tdep.c b/gdb/sparc64-fbsd-tdep.c
index 873a888a25fd..0b4cbfaa3735 100644
--- a/gdb/sparc64-fbsd-tdep.c
+++ b/gdb/sparc64-fbsd-tdep.c
@@ -242,8 +242,9 @@ sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }

+void _initialize_sparc64fbsd_tdep ();
 void
-_initialize_sparc64fbsd_tdep (void)
+_initialize_sparc64fbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_FREEBSD, sparc64fbsd_init_abi);
diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c
index bb2bc7175e48..b7f27792b8f3 100644
--- a/gdb/sparc64-linux-nat.c
+++ b/gdb/sparc64-linux-nat.c
@@ -88,8 +88,9 @@ fill_fpregset (const struct regcache *regcache,
   sparc64_collect_fpregset (&sparc64_bsd_fpregmap, regcache, regnum, fpregs);
 }

+void _initialize_sparc64_linux_nat ();
 void
-_initialize_sparc64_linux_nat (void)
+_initialize_sparc64_linux_nat ()
 {
   sparc_fpregmap = &sparc64_bsd_fpregmap;

diff --git a/gdb/sparc64-linux-tdep.c b/gdb/sparc64-linux-tdep.c
index 78de22a3bfdd..de6c04790099 100644
--- a/gdb/sparc64-linux-tdep.c
+++ b/gdb/sparc64-linux-tdep.c
@@ -408,8 +408,9 @@ sparc64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  sparc64_linux_handle_segmentation_fault);
 }

+void _initialize_sparc64_linux_tdep ();
 void
-_initialize_sparc64_linux_tdep (void)
+_initialize_sparc64_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_LINUX, sparc64_linux_init_abi);
diff --git a/gdb/sparc64-nat.c b/gdb/sparc64-nat.c
index 50c312f262a0..fa34c8ca04c9 100644
--- a/gdb/sparc64-nat.c
+++ b/gdb/sparc64-nat.c
@@ -69,8 +69,9 @@ sparc64_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum)
   return 0;
 }

+void _initialize_sparc64_nat ();
 void
-_initialize_sparc64_nat (void)
+_initialize_sparc64_nat ()
 {
   sparc_supply_gregset = sparc64_supply_gregset;
   sparc_collect_gregset = sparc64_collect_gregset;
diff --git a/gdb/sparc64-nbsd-nat.c b/gdb/sparc64-nbsd-nat.c
index 65ca2fb1b8e9..5e249b629d16 100644
--- a/gdb/sparc64-nbsd-nat.c
+++ b/gdb/sparc64-nbsd-nat.c
@@ -170,8 +170,9 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 /* We've got nothing to add to the generic SPARC target.  */
 static sparc_target<inf_ptrace_target> the_sparc64_nbsd_nat_target;

+void _initialize_sparc64nbsd_nat ();
 void
-_initialize_sparc64nbsd_nat (void)
+_initialize_sparc64nbsd_nat ()
 {
   sparc_supply_gregset = sparc64nbsd_supply_gregset;
   sparc_collect_gregset = sparc64nbsd_collect_gregset;
diff --git a/gdb/sparc64-nbsd-tdep.c b/gdb/sparc64-nbsd-tdep.c
index a292bf13c1a0..cd5bfe89410f 100644
--- a/gdb/sparc64-nbsd-tdep.c
+++ b/gdb/sparc64-nbsd-tdep.c
@@ -268,8 +268,9 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_lp64_fetch_link_map_offsets);
 }

+void _initialize_sparc64nbsd_tdep ();
 void
-_initialize_sparc64nbsd_tdep (void)
+_initialize_sparc64nbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_NETBSD, sparc64nbsd_init_abi);
diff --git a/gdb/sparc64-obsd-nat.c b/gdb/sparc64-obsd-nat.c
index 6c2a02d6ed7f..502599badec1 100644
--- a/gdb/sparc64-obsd-nat.c
+++ b/gdb/sparc64-obsd-nat.c
@@ -109,8 +109,9 @@ sparc64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 /* Add some extra features to the generic SPARC target.  */
 static sparc_target<obsd_nat_target> the_sparc64_obsd_nat_target;

+void _initialize_sparc64obsd_nat ();
 void
-_initialize_sparc64obsd_nat (void)
+_initialize_sparc64obsd_nat ()
 {
   sparc_supply_gregset = sparc64_supply_gregset;
   sparc_collect_gregset = sparc64_collect_gregset;
diff --git a/gdb/sparc64-obsd-tdep.c b/gdb/sparc64-obsd-tdep.c
index 19715c26a500..fe55124ea022 100644
--- a/gdb/sparc64-obsd-tdep.c
+++ b/gdb/sparc64-obsd-tdep.c
@@ -440,8 +440,9 @@ sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   bsd_uthread_set_collect_uthread (gdbarch, sparc64obsd_collect_uthread);
 }

+void _initialize_sparc64obsd_tdep ();
 void
-_initialize_sparc64obsd_tdep (void)
+_initialize_sparc64obsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_OPENBSD, sparc64obsd_init_abi);
diff --git a/gdb/sparc64-sol2-tdep.c b/gdb/sparc64-sol2-tdep.c
index a1367423c35f..550fed724fc3 100644
--- a/gdb/sparc64-sol2-tdep.c
+++ b/gdb/sparc64-sol2-tdep.c
@@ -243,8 +243,9 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
 }

+void _initialize_sparc64_sol2_tdep ();
 void
-_initialize_sparc64_sol2_tdep (void)
+_initialize_sparc64_sol2_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
   GDB_OSABI_SOLARIS, sparc64_sol2_init_abi);
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 25de497d9221..a11da6ab2e80 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -534,8 +534,9 @@ adi_assign_command (const char *args, int from_tty)
   do_assign (next_address, cnt, version);
 }

+void _initialize_sparc64_adi_tdep ();
 void
-_initialize_sparc64_adi_tdep (void)
+_initialize_sparc64_adi_tdep ()
 {

   add_prefix_cmd ("adi", class_support, info_adi_command,
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 736839a0b0ed..a23ebf6b6061 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -4779,8 +4779,9 @@ hashname (const char *name)

 /* Initializer for this module.  */

+void _initialize_stabsread ();
 void
-_initialize_stabsread (void)
+_initialize_stabsread ()
 {
   undef_types_allocated = 20;
   undef_types_length = 0;
diff --git a/gdb/stack.c b/gdb/stack.c
index 92784c933968..af30405f29ef 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -3339,8 +3339,9 @@ static struct cmd_list_element *select_frame_cmd_list = NULL;
 /* Commands with a prefix of `info frame'.  */
 static struct cmd_list_element *info_frame_cmd_list = NULL;

+void _initialize_stack ();
 void
-_initialize_stack (void)
+_initialize_stack ()
 {
   struct cmd_list_element *cmd;

diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 50f6d518133a..2d1521225163 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1709,8 +1709,9 @@ info_probes_stap_command (const char *arg, int from_tty)
   info_probes_for_spops (arg, from_tty, &stap_static_probe_ops);
 }

+void _initialize_stap_probe ();
 void
-_initialize_stap_probe (void)
+_initialize_stap_probe ()
 {
   all_static_probe_ops.push_back (&stap_static_probe_ops);

diff --git a/gdb/std-regs.c b/gdb/std-regs.c
index b9c906b9c3f4..c4220733a819 100644
--- a/gdb/std-regs.c
+++ b/gdb/std-regs.c
@@ -91,8 +91,9 @@ value_of_builtin_frame_ps_reg (struct frame_info *frame, const void *baton)
   error (_("Standard register ``$ps'' is not available for this target"));
 }

+void _initialize_frame_reg ();
 void
-_initialize_frame_reg (void)
+_initialize_frame_reg ()
 {
   /* Frame based $fp, $pc, $sp and $ps.  These only come into play
      when the target does not define its own version of these
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index f233b963062f..53a77a5405dc 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -645,8 +645,9 @@ show_debug_symfile (struct ui_file *file, int from_tty,
   fprintf_filtered (file, _("Symfile debugging is %s.\n"), value);
 }

+void _initialize_symfile_debug ();
 void
-_initialize_symfile_debug (void)
+_initialize_symfile_debug ()
 {
   add_setshow_boolean_cmd ("symfile", no_class, &debug_symfile, _("\
 Set debugging of the symfile functions."), _("\
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c
index 6dcd6555eda9..a62d0d0c8f47 100644
--- a/gdb/symfile-mem.c
+++ b/gdb/symfile-mem.c
@@ -203,8 +203,9 @@ add_vsyscall_page (struct target_ops *target, int from_tty)
     }
 }

+void _initialize_symfile_mem ();
 void
-_initialize_symfile_mem (void)
+_initialize_symfile_mem ()
 {
   add_cmd ("add-symbol-file-from-memory", class_files,
            add_symbol_file_from_memory_command,
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d5a797a32cba..f7bada75f350 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3864,8 +3864,9 @@ test_set_ext_lang_command ()

 #endif /* GDB_SELF_TEST */

+void _initialize_symfile ();
 void
-_initialize_symfile (void)
+_initialize_symfile ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index a5b17ffa3810..393a0343b90b 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -1040,8 +1040,9 @@ maintenance_info_line_tables (const char *regexp, int from_tty)

 /* Do early runtime initializations.  */

+void _initialize_symmisc ();
 void
-_initialize_symmisc (void)
+_initialize_symmisc ()
 {
   std_in = stdin;
   std_out = stdout;
diff --git a/gdb/symtab.c b/gdb/symtab.c
index cdd9f2e4c12c..d5ba249ced60 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -6689,8 +6689,9 @@ info_module_var_func_command_completer (struct cmd_list_element *ignore,

 

+void _initialize_symtab ();
 void
-_initialize_symtab (void)
+_initialize_symtab ()
 {
   cmd_list_element *c;

diff --git a/gdb/target-connection.c b/gdb/target-connection.c
index c8c63ab375e2..bd54d005bef6 100644
--- a/gdb/target-connection.c
+++ b/gdb/target-connection.c
@@ -149,6 +149,8 @@ info_connections_command (const char *args, int from_tty)
   print_connection (current_uiout, args);
 }

+void _initialize_target_connection ();
+
 void
 _initialize_target_connection ()
 {
diff --git a/gdb/target-dcache.c b/gdb/target-dcache.c
index 9bdc3df79880..0226d6727808 100644
--- a/gdb/target-dcache.c
+++ b/gdb/target-dcache.c
@@ -152,8 +152,9 @@ code_cache_enabled_p (void)
   return code_cache_enabled;
 }

+void _initialize_target_dcache ();
 void
-_initialize_target_dcache (void)
+_initialize_target_dcache ()
 {
   add_setshow_boolean_cmd ("stack-cache", class_support,
    &stack_cache_enabled_1, _("\
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 46b123cd5921..04711ba2fa52 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -1824,8 +1824,9 @@ maintenance_check_xml_descriptions (const char *dir, int from_tty)
    (long) selftests::xml_tdesc.size (), failed);
 }

+void _initialize_target_descriptions ();
 void
-_initialize_target_descriptions (void)
+_initialize_target_descriptions ()
 {
   tdesc_data = gdbarch_data_register_pre_init (tdesc_data_init);

diff --git a/gdb/target.c b/gdb/target.c
index f6058451d654..b24d3d899e80 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4030,6 +4030,8 @@ set_write_memory_permission (const char *args, int from_tty,
   update_observer_mode ();
 }

+void _initialize_target ();
+
 void
 _initialize_target ()
 {
diff --git a/gdb/thread.c b/gdb/thread.c
index 03fdc05140c1..001fdd42c5e9 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -2189,8 +2189,9 @@ static const struct internalvar_funcs gthread_funcs =
   NULL
 };

+void _initialize_thread ();
 void
-_initialize_thread (void)
+_initialize_thread ()
 {
   static struct cmd_list_element *thread_apply_list = NULL;
   cmd_list_element *c;
diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c
index 2dfd40df3265..1b626b5a174d 100644
--- a/gdb/tic6x-linux-tdep.c
+++ b/gdb/tic6x-linux-tdep.c
@@ -204,8 +204,9 @@ tic6x_uclinux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
  &tic6x_linux_rt_sigreturn_tramp_frame);
 }

+void _initialize_tic6x_linux_tdep ();
 void
-_initialize_tic6x_linux_tdep (void)
+_initialize_tic6x_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_tic6x, 0, GDB_OSABI_LINUX,
   tic6x_uclinux_init_abi);
diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c
index 35a85129fda3..a05675c570cc 100644
--- a/gdb/tic6x-tdep.c
+++ b/gdb/tic6x-tdep.c
@@ -1301,8 +1301,9 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_tic6x_tdep ();
 void
-_initialize_tic6x_tdep (void)
+_initialize_tic6x_tdep ()
 {
   register_gdbarch_init (bfd_arch_tic6x, tic6x_gdbarch_init);
 }
diff --git a/gdb/tilegx-linux-nat.c b/gdb/tilegx-linux-nat.c
index ac40baf4482c..219693b966fd 100644
--- a/gdb/tilegx-linux-nat.c
+++ b/gdb/tilegx-linux-nat.c
@@ -164,8 +164,9 @@ tilegx_linux_nat_target::store_registers (struct regcache *regcache,
     perror_with_name (_("Couldn't write registers"));
 }

+void _initialize_tile_linux_nat ();
 void
-_initialize_tile_linux_nat (void)
+_initialize_tile_linux_nat ()
 {
   linux_target = &the_tilegx_linux_nat_target;
   add_inf_child_target (&the_tilegx_linux_nat_target);
diff --git a/gdb/tilegx-linux-tdep.c b/gdb/tilegx-linux-tdep.c
index db82bc78f52a..e656187849cb 100644
--- a/gdb/tilegx-linux-tdep.c
+++ b/gdb/tilegx-linux-tdep.c
@@ -135,8 +135,9 @@ tilegx_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver);
 }

+void _initialize_tilegx_linux_tdep ();
 void
-_initialize_tilegx_linux_tdep (void)
+_initialize_tilegx_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_tilegx, bfd_mach_tilegx, GDB_OSABI_LINUX,
   tilegx_linux_init_abi);
diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c
index 13dfc2b36b08..9290bc3878b7 100644
--- a/gdb/tilegx-tdep.c
+++ b/gdb/tilegx-tdep.c
@@ -1032,8 +1032,9 @@ tilegx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_tilegx_tdep ();
 void
-_initialize_tilegx_tdep (void)
+_initialize_tilegx_tdep ()
 {
   register_gdbarch_init (bfd_arch_tilegx, tilegx_gdbarch_init);
 }
diff --git a/gdb/tracectf.c b/gdb/tracectf.c
index 374e9bbcc507..1c7003c2c9a9 100644
--- a/gdb/tracectf.c
+++ b/gdb/tracectf.c
@@ -1721,8 +1721,9 @@ ctf_target::traceframe_info ()

 /* module initialization */

+void _initialize_ctf ();
 void
-_initialize_ctf (void)
+_initialize_ctf ()
 {
 #if HAVE_LIBBABELTRACE
   add_target (ctf_target_info, ctf_target_open, filename_completer);
diff --git a/gdb/tracefile-tfile.c b/gdb/tracefile-tfile.c
index c1a4a4933724..ea1917747517 100644
--- a/gdb/tracefile-tfile.c
+++ b/gdb/tracefile-tfile.c
@@ -1131,8 +1131,9 @@ tfile_append_tdesc_line (const char *line)
   buffer_grow_str (&trace_tdesc, "\n");
 }

+void _initialize_tracefile_tfile ();
 void
-_initialize_tracefile_tfile (void)
+_initialize_tracefile_tfile ()
 {
   add_target (tfile_target_info, tfile_target_open, filename_completer);
 }
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index df00b56ba9ce..7f1a25a2cc29 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -471,8 +471,9 @@ tracefile_target::get_trace_status (struct trace_status *ts)
   return -1;
 }

+void _initialize_tracefile ();
 void
-_initialize_tracefile (void)
+_initialize_tracefile ()
 {
   add_com ("tsave", class_trace, tsave_command, _("\
 Save the trace data to a file.\n\
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index a934e56d3b97..aa6bea4a8f4a 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3980,8 +3980,9 @@ static const struct internalvar_funcs sdata_funcs =
 cmd_list_element *while_stepping_cmd_element = nullptr;

 /* module initialization */
+void _initialize_tracepoint ();
 void
-_initialize_tracepoint (void)
+_initialize_tracepoint ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index 76a50fc4b2bf..0e45e0e7507f 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -277,8 +277,9 @@ tui_remove_hooks (void)
   tui_attach_detach_observers (false);
 }

+void _initialize_tui_hooks ();
 void
-_initialize_tui_hooks (void)
+_initialize_tui_hooks ()
 {
   /* Install the permanent hooks.  */
   gdb::observers::new_objfile.attach (tui_new_objfile_hook);
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 808a77dfd10c..978b5022152b 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -306,8 +306,9 @@ tui_interp_factory (const char *name)
   return new tui_interp (name);
 }

+void _initialize_tui_interp ();
 void
-_initialize_tui_interp (void)
+_initialize_tui_interp ()
 {
   interp_factory_register (INTERP_TUI, tui_interp_factory);

diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 3720d3edc3c2..01961f550c26 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -790,8 +790,9 @@ initialize_layouts ()
 /* Function to initialize gdb commands, for tui window layout
    manipulation.  */

+void _initialize_tui_layout ();
 void
-_initialize_tui_layout (void)
+_initialize_tui_layout ()
 {
   struct cmd_list_element *cmd;

diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 50b3e72e5103..80d1a270e637 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -650,8 +650,9 @@ tui_reggroup_completer (struct cmd_list_element *ignore,
     }
 }

+void _initialize_tui_regs ();
 void
-_initialize_tui_regs (void)
+_initialize_tui_regs ()
 {
   struct cmd_list_element **tuicmd, *cmd;

diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 18e918827703..7758f2f40d59 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -370,8 +370,9 @@ tui_update_command (const char *arg, int from_tty)
 /* Function to initialize gdb commands, for tui window stack
    manipulation.  */

+void _initialize_tui_stack ();
 void
-_initialize_tui_stack (void)
+_initialize_tui_stack ()
 {
   add_com ("update", class_tui, tui_update_command,
    _("Update the source window and locator to "
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index df9bf43681e9..8b7c39916a3c 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1012,8 +1012,9 @@ parse_scrolling_args (const char *arg,
 /* Function to initialize gdb commands, for tui window
    manipulation.  */

+void _initialize_tui_win ();
 void
-_initialize_tui_win (void)
+_initialize_tui_win ()
 {
   static struct cmd_list_element *tui_setlist;
   static struct cmd_list_element *tui_showlist;
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 99d30a55a153..be19ef701d7b 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -605,8 +605,9 @@ tui_get_command_dimension (unsigned int *width,
   return true;
 }

+void _initialize_tui ();
 void
-_initialize_tui (void)
+_initialize_tui ()
 {
   struct cmd_list_element **tuicmd;

diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index effc511e5bb6..e58cd5da289c 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -798,8 +798,9 @@ show_print_type_nested_types  (struct ui_file *file, int from_tty,
     }
 }

+void _initialize_typeprint ();
 void
-_initialize_typeprint (void)
+_initialize_typeprint ()
 {
   struct cmd_list_element *c;

diff --git a/gdb/ui-style.c b/gdb/ui-style.c
index 28024f57b6f4..2d6640bc700c 100644
--- a/gdb/ui-style.c
+++ b/gdb/ui-style.c
@@ -404,6 +404,7 @@ skip_ansi_escape (const char *buf, int *n_read)
   return true;
 }

+void _initialize_ui_style ();
 void
 _initialize_ui_style ()
 {
diff --git a/gdb/unittests/array-view-selftests.c b/gdb/unittests/array-view-selftests.c
index c1079bd505bb..b4fc86646ef5 100644
--- a/gdb/unittests/array-view-selftests.c
+++ b/gdb/unittests/array-view-selftests.c
@@ -523,6 +523,7 @@ run_tests ()
 } /* namespace array_view_tests */
 } /* namespace selftests */

+void _initialize_array_view_selftests ();
 void
 _initialize_array_view_selftests ()
 {
diff --git a/gdb/unittests/child-path-selftests.c b/gdb/unittests/child-path-selftests.c
index fdd692d736b0..24b918aef08d 100644
--- a/gdb/unittests/child-path-selftests.c
+++ b/gdb/unittests/child-path-selftests.c
@@ -59,6 +59,7 @@ test ()
 }
 }

+void _initialize_child_path_selftests ();
 void
 _initialize_child_path_selftests ()
 {
diff --git a/gdb/unittests/cli-utils-selftests.c b/gdb/unittests/cli-utils-selftests.c
index bc308f60b6d1..09c8565ce927 100644
--- a/gdb/unittests/cli-utils-selftests.c
+++ b/gdb/unittests/cli-utils-selftests.c
@@ -110,6 +110,7 @@ test_cli_utils ()
 }
 }

+void _initialize_cli_utils_selftests ();
 void
 _initialize_cli_utils_selftests ()
 {
diff --git a/gdb/unittests/common-utils-selftests.c b/gdb/unittests/common-utils-selftests.c
index 8934a3da4121..e24c3fdf0b47 100644
--- a/gdb/unittests/common-utils-selftests.c
+++ b/gdb/unittests/common-utils-selftests.c
@@ -125,6 +125,7 @@ string_vappendf_tests ()

 } /* namespace selftests */

+void _initialize_common_utils_selftests ();
 void
 _initialize_common_utils_selftests ()
 {
diff --git a/gdb/unittests/copy_bitwise-selftests.c b/gdb/unittests/copy_bitwise-selftests.c
index 80e09e711df6..d9e9132cf095 100644
--- a/gdb/unittests/copy_bitwise-selftests.c
+++ b/gdb/unittests/copy_bitwise-selftests.c
@@ -152,6 +152,7 @@ copy_bitwise_tests (void)

 } /* namespace selftests */

+void _initialize_copy_bitwise_utils_selftests ();
 void
 _initialize_copy_bitwise_utils_selftests ()
 {
diff --git a/gdb/unittests/environ-selftests.c b/gdb/unittests/environ-selftests.c
index 65a9c66bcee3..55318605a3b8 100644
--- a/gdb/unittests/environ-selftests.c
+++ b/gdb/unittests/environ-selftests.c
@@ -298,6 +298,7 @@ run_tests ()
 } /* namespace gdb_environ */
 } /* namespace selftests */

+void _initialize_environ_selftests ();
 void
 _initialize_environ_selftests ()
 {
diff --git a/gdb/unittests/filtered_iterator-selftests.c b/gdb/unittests/filtered_iterator-selftests.c
index 604d3c5d72d4..14060e1d0afb 100644
--- a/gdb/unittests/filtered_iterator-selftests.c
+++ b/gdb/unittests/filtered_iterator-selftests.c
@@ -155,6 +155,7 @@ test_filtered_iterator_eq ()

 } /* namespace selftests */

+void _initialize_filtered_iterator_selftests ();
 void
 _initialize_filtered_iterator_selftests ()
 {
diff --git a/gdb/unittests/format_pieces-selftests.c b/gdb/unittests/format_pieces-selftests.c
index bc1bc15c9338..80b408aae11f 100644
--- a/gdb/unittests/format_pieces-selftests.c
+++ b/gdb/unittests/format_pieces-selftests.c
@@ -142,6 +142,7 @@ run_tests ()
 } /* namespace format_pieces */
 } /* namespace selftests */

+void _initialize_format_pieces_selftests ();
 void
 _initialize_format_pieces_selftests ()
 {
diff --git a/gdb/unittests/function-view-selftests.c b/gdb/unittests/function-view-selftests.c
index fd0f81222fc5..610b53cb4837 100644
--- a/gdb/unittests/function-view-selftests.c
+++ b/gdb/unittests/function-view-selftests.c
@@ -171,6 +171,7 @@ run_tests ()
 } /* namespace function_view */
 } /* namespace selftests */

+void _initialize_function_view_selftests ();
 void
 _initialize_function_view_selftests ()
 {
diff --git a/gdb/unittests/help-doc-selftests.c b/gdb/unittests/help-doc-selftests.c
index 77b6d015bb9a..16ffc4f99073 100644
--- a/gdb/unittests/help-doc-selftests.c
+++ b/gdb/unittests/help-doc-selftests.c
@@ -98,6 +98,7 @@ help_doc_invariants_tests ()
 } /* namespace help_doc_tests */
 } /* namespace selftests */

+void _initialize_help_doc_selftests ();
 void
 _initialize_help_doc_selftests ()
 {
diff --git a/gdb/unittests/lookup_name_info-selftests.c b/gdb/unittests/lookup_name_info-selftests.c
index d5f26a4b0d33..002fc6979550 100644
--- a/gdb/unittests/lookup_name_info-selftests.c
+++ b/gdb/unittests/lookup_name_info-selftests.c
@@ -103,6 +103,7 @@ run_tests ()

 }} // namespace selftests::lookup_name

+void _initialize_lookup_name_info_selftests ();
 void
 _initialize_lookup_name_info_selftests ()
 {
diff --git a/gdb/unittests/main-thread-selftests.c b/gdb/unittests/main-thread-selftests.c
index 7f50ab43da5b..c51f34ef41d2 100644
--- a/gdb/unittests/main-thread-selftests.c
+++ b/gdb/unittests/main-thread-selftests.c
@@ -70,6 +70,7 @@ run_tests ()
 }
 }

+void _initialize_main_thread_selftests ();
 void
 _initialize_main_thread_selftests ()
 {
diff --git a/gdb/unittests/memory-map-selftests.c b/gdb/unittests/memory-map-selftests.c
index 904a306aabe2..42b5db6974ac 100644
--- a/gdb/unittests/memory-map-selftests.c
+++ b/gdb/unittests/memory-map-selftests.c
@@ -76,6 +76,7 @@ parse_memory_map_tests ()

 #endif /* HAVE_LIBEXPAT */

+void _initialize_memory_map_selftests ();
 void
 _initialize_memory_map_selftests ()
 {
diff --git a/gdb/unittests/memrange-selftests.c b/gdb/unittests/memrange-selftests.c
index e8b4dece93e1..b0402685d38a 100644
--- a/gdb/unittests/memrange-selftests.c
+++ b/gdb/unittests/memrange-selftests.c
@@ -106,6 +106,7 @@ normalize_mem_ranges_tests ()
 } /* namespace memrange_tests */
 } /* namespace selftests */

+void _initialize_memrange_selftests ();
 void
 _initialize_memrange_selftests ()
 {
diff --git a/gdb/unittests/mkdir-recursive-selftests.c b/gdb/unittests/mkdir-recursive-selftests.c
index a0e9341ca325..8647515e0625 100644
--- a/gdb/unittests/mkdir-recursive-selftests.c
+++ b/gdb/unittests/mkdir-recursive-selftests.c
@@ -81,6 +81,7 @@ test ()
 }
 }

+void _initialize_mkdir_recursive_selftests ();
 void
 _initialize_mkdir_recursive_selftests ()
 {
diff --git a/gdb/unittests/observable-selftests.c b/gdb/unittests/observable-selftests.c
index 7e3235b6ec0e..b14c3b71112c 100644
--- a/gdb/unittests/observable-selftests.c
+++ b/gdb/unittests/observable-selftests.c
@@ -127,6 +127,7 @@ run_tests ()
 } /* namespace observers */
 } /* namespace selftests */

+void _initialize_observer_selftest ();
 void
 _initialize_observer_selftest ()
 {
diff --git a/gdb/unittests/offset-type-selftests.c b/gdb/unittests/offset-type-selftests.c
index 86dac3e1d66c..1e0428bfd4cb 100644
--- a/gdb/unittests/offset-type-selftests.c
+++ b/gdb/unittests/offset-type-selftests.c
@@ -171,6 +171,7 @@ run_tests ()
 } /* namespace offset_type */
 } /* namespace selftests */

+void _initialize_offset_type_selftests ();
 void
 _initialize_offset_type_selftests ()
 {
diff --git a/gdb/unittests/optional-selftests.c b/gdb/unittests/optional-selftests.c
index ddaaeef261cf..c1b9e53ac410 100644
--- a/gdb/unittests/optional-selftests.c
+++ b/gdb/unittests/optional-selftests.c
@@ -87,6 +87,7 @@ run_tests ()
 } /* namespace optional */
 } /* namespace selftests */

+void _initialize_optional_selftests ();
 void
 _initialize_optional_selftests ()
 {
diff --git a/gdb/unittests/parse-connection-spec-selftests.c b/gdb/unittests/parse-connection-spec-selftests.c
index 3f71ec647954..6c0df356425d 100644
--- a/gdb/unittests/parse-connection-spec-selftests.c
+++ b/gdb/unittests/parse-connection-spec-selftests.c
@@ -239,6 +239,7 @@ run_tests ()
 } /* namespace parse_connection_spec_tests */
 } /* namespace selftests */

+void _initialize_parse_connection_spec_selftests ();
 void
 _initialize_parse_connection_spec_selftests ()
 {
diff --git a/gdb/unittests/rsp-low-selftests.c b/gdb/unittests/rsp-low-selftests.c
index 9e75c2374f1b..e848e58143ed 100644
--- a/gdb/unittests/rsp-low-selftests.c
+++ b/gdb/unittests/rsp-low-selftests.c
@@ -61,6 +61,7 @@ static void test_hex2str ()
 } /* namespace rsp_low */
 } /* namespace selftests */

+void _initialize_rsp_low_selftests ();
 void
 _initialize_rsp_low_selftests ()
 {
diff --git a/gdb/unittests/scoped_fd-selftests.c b/gdb/unittests/scoped_fd-selftests.c
index 73c1e2de5e34..3f0247642453 100644
--- a/gdb/unittests/scoped_fd-selftests.c
+++ b/gdb/unittests/scoped_fd-selftests.c
@@ -93,6 +93,7 @@ run_tests ()
 } /* namespace scoped_fd */
 } /* namespace selftests */

+void _initialize_scoped_fd_selftests ();
 void
 _initialize_scoped_fd_selftests ()
 {
diff --git a/gdb/unittests/scoped_mmap-selftests.c b/gdb/unittests/scoped_mmap-selftests.c
index fffad74536d5..fa963d1b47f3 100644
--- a/gdb/unittests/scoped_mmap-selftests.c
+++ b/gdb/unittests/scoped_mmap-selftests.c
@@ -135,6 +135,7 @@ run_tests ()

 #endif /* !defined(HAVE_SYS_MMAN_H) */

+void _initialize_scoped_mmap_selftests ();
 void
 _initialize_scoped_mmap_selftests ()
 {
diff --git a/gdb/unittests/scoped_restore-selftests.c b/gdb/unittests/scoped_restore-selftests.c
index b92103545fcf..d989678fbf83 100644
--- a/gdb/unittests/scoped_restore-selftests.c
+++ b/gdb/unittests/scoped_restore-selftests.c
@@ -103,6 +103,7 @@ run_tests ()
 } /* namespace scoped_restore_tests */
 } /* namespace selftests */

+void _initialize_scoped_restore_selftests ();
 void
 _initialize_scoped_restore_selftests ()
 {
diff --git a/gdb/unittests/string_view-selftests.c b/gdb/unittests/string_view-selftests.c
index 49fc95b7fb9b..a52419bb28a5 100644
--- a/gdb/unittests/string_view-selftests.c
+++ b/gdb/unittests/string_view-selftests.c
@@ -172,6 +172,7 @@ run_tests ()

 #endif /* __cplusplus < 201703L */

+void _initialize_string_view_selftests ();
 void
 _initialize_string_view_selftests ()
 {
diff --git a/gdb/unittests/style-selftests.c b/gdb/unittests/style-selftests.c
index 2cf6cf6932d5..eeab40f6bc7d 100644
--- a/gdb/unittests/style-selftests.c
+++ b/gdb/unittests/style-selftests.c
@@ -101,6 +101,7 @@ run_tests ()
 } /* namespace style */
 } /* namespace selftests */

+void _initialize_style_selftest ();
 void
 _initialize_style_selftest ()
 {
diff --git a/gdb/unittests/tracepoint-selftests.c b/gdb/unittests/tracepoint-selftests.c
index 62172b6bd2b4..63a4784f66d8 100644
--- a/gdb/unittests/tracepoint-selftests.c
+++ b/gdb/unittests/tracepoint-selftests.c
@@ -61,6 +61,7 @@ test_parse_static_tracepoint_marker_definition ()
 } /* namespace tracepoint_tests */
 } /* namespace selftests */

+void _initialize_tracepoint_selftests ();
 void
 _initialize_tracepoint_selftests ()
 {
diff --git a/gdb/unittests/tui-selftests.c b/gdb/unittests/tui-selftests.c
index b2dffaf49302..6144e23f3949 100644
--- a/gdb/unittests/tui-selftests.c
+++ b/gdb/unittests/tui-selftests.c
@@ -46,6 +46,7 @@ run_tests ()

 #endif /* TUI */

+void _initialize_tui_selftest ();
 void
 _initialize_tui_selftest ()
 {
diff --git a/gdb/unittests/unpack-selftests.c b/gdb/unittests/unpack-selftests.c
index 503412ef8d61..b02a79644bb4 100644
--- a/gdb/unittests/unpack-selftests.c
+++ b/gdb/unittests/unpack-selftests.c
@@ -53,6 +53,7 @@ unpack_field_as_long_tests (struct gdbarch *arch)
 }
 }

+void _initialize_unpack_selftests ();
 void
 _initialize_unpack_selftests ()
 {
diff --git a/gdb/unittests/utils-selftests.c b/gdb/unittests/utils-selftests.c
index 2b59266befda..f6ea2b9fac00 100644
--- a/gdb/unittests/utils-selftests.c
+++ b/gdb/unittests/utils-selftests.c
@@ -51,6 +51,7 @@ test_substitute_path_component ()
 }
 }

+void _initialize_utils_selftests ();
 void
 _initialize_utils_selftests ()
 {
diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c
index 027c1216180e..38e817ae7653 100644
--- a/gdb/unittests/vec-utils-selftests.c
+++ b/gdb/unittests/vec-utils-selftests.c
@@ -66,6 +66,7 @@ unordered_remove_tests ()
 } /* namespace vector_utils_tests */
 } /* amespace selftests */

+void _initialize_vec_utils_selftests ();
 void
 _initialize_vec_utils_selftests ()
 {
diff --git a/gdb/unittests/xml-utils-selftests.c b/gdb/unittests/xml-utils-selftests.c
index 88e8dfaac874..421b28ef3f61 100644
--- a/gdb/unittests/xml-utils-selftests.c
+++ b/gdb/unittests/xml-utils-selftests.c
@@ -48,6 +48,7 @@ static void test_xml_escape_text_append ()
 }
 }

+void _initialize_xml_utils ();
 void
 _initialize_xml_utils ()
 {
diff --git a/gdb/user-regs.c b/gdb/user-regs.c
index 4117067a0f81..a232b1eb0005 100644
--- a/gdb/user-regs.c
+++ b/gdb/user-regs.c
@@ -233,8 +233,9 @@ maintenance_print_user_registers (const char *args, int from_tty)
     fprintf_unfiltered (gdb_stdout, " %-11s %3d\n", reg->name, regnum);
 }

+void _initialize_user_regs ();
 void
-_initialize_user_regs (void)
+_initialize_user_regs ()
 {
   user_regs_data = gdbarch_data_register_post_init (user_regs_init);

diff --git a/gdb/utils.c b/gdb/utils.c
index 508c114687ea..fe874fb7844d 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3415,8 +3415,9 @@ copy_bitwise (gdb_byte *dest, ULONGEST dest_offset,
     }
 }

+void _initialize_utils ();
 void
-_initialize_utils (void)
+_initialize_utils ()
 {
   add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\
 Set number of characters where GDB should wrap lines of its output."), _("\
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index e5625a3f14ef..9b2e9b62e717 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -1453,8 +1453,9 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return gdbarch;
 }

+void _initialize_v850_tdep ();
 void
-_initialize_v850_tdep (void)
+_initialize_v850_tdep ()
 {
   register_gdbarch_init (bfd_arch_v850, v850_gdbarch_init);
   register_gdbarch_init (bfd_arch_v850_rh850, v850_gdbarch_init);
diff --git a/gdb/valops.c b/gdb/valops.c
index 8488576ef810..7fc555a81088 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -3909,8 +3909,9 @@ cast_into_complex (struct type *type, struct value *val)
     error (_("cannot cast non-number to complex"));
 }

+void _initialize_valops ();
 void
-_initialize_valops (void)
+_initialize_valops ()
 {
   add_setshow_boolean_cmd ("overload-resolution", class_support,
    &overload_resolution, _("\
diff --git a/gdb/valprint.c b/gdb/valprint.c
index f7088d4d4984..f26a87da3bd4 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -3262,8 +3262,9 @@ make_value_print_options_def_group (value_print_options *opts)
   return {{value_print_option_defs}, opts};
 }

+void _initialize_valprint ();
 void
-_initialize_valprint (void)
+_initialize_valprint ()
 {
   cmd_list_element *cmd;

diff --git a/gdb/value.c b/gdb/value.c
index 53b51755d1d9..ceaeb835fa7f 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -4127,8 +4127,9 @@ test_insert_into_bit_range_vector ()
 } /* namespace selftests */
 #endif /* GDB_SELF_TEST */

+void _initialize_values ();
 void
-_initialize_values (void)
+_initialize_values ()
 {
   add_cmd ("convenience", no_class, show_convenience, _("\
 Debugger convenience (\"$foo\") variables and functions.\n\
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 48d3c3d9c532..8a7b7108f894 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2520,8 +2520,9 @@ varobj_invalidate (void)
   all_root_varobjs (varobj_invalidate_iter, NULL);
 }

+void _initialize_varobj ();
 void
-_initialize_varobj (void)
+_initialize_varobj ()
 {
   varobj_table = XCNEWVEC (struct vlist *, VAROBJ_TABLE_SIZE);

diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c
index 0fe8fbc09be0..899f3e3ed9ce 100644
--- a/gdb/vax-bsd-nat.c
+++ b/gdb/vax-bsd-nat.c
@@ -132,8 +132,9 @@ vaxbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   return 1;
 }

+void _initialize_vaxbsd_nat ();
 void
-_initialize_vaxbsd_nat (void)
+_initialize_vaxbsd_nat ()
 {
   add_inf_child_target (&the_vax_bsd_nat_target);

diff --git a/gdb/vax-nbsd-tdep.c b/gdb/vax-nbsd-tdep.c
index 26e8251318e3..c2c08cc16036 100644
--- a/gdb/vax-nbsd-tdep.c
+++ b/gdb/vax-nbsd-tdep.c
@@ -34,8 +34,9 @@ vaxnbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }

+void _initialize_vaxnbsd_tdep ();
 void
-_initialize_vaxnbsd_tdep (void)
+_initialize_vaxnbsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_NETBSD,
   vaxnbsd_elf_init_abi);
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index a83decd6bd62..9373dc848d41 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -507,8 +507,9 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   return (gdbarch);
 }

+void _initialize_vax_tdep ();
 void
-_initialize_vax_tdep (void)
+_initialize_vax_tdep ()
 {
   gdbarch_register (bfd_arch_vax, vax_gdbarch_init, NULL);
 }
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index be5955d379fb..901e64263c63 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -3056,8 +3056,9 @@ windows_nat_target::thread_name (struct thread_info *thr)
 }


+void _initialize_windows_nat ();
 void
-_initialize_windows_nat (void)
+_initialize_windows_nat ()
 {
   x86_dr_low.set_control = cygwin_set_dr7;
   x86_dr_low.set_addr = cygwin_set_dr;
@@ -3218,8 +3219,9 @@ windows_nat_target::thread_alive (ptid_t ptid)
   return WaitForSingleObject (thread_rec (tid, FALSE)->h, 0) != WAIT_OBJECT_0;
 }

+void _initialize_check_for_gdb_ini ();
 void
-_initialize_check_for_gdb_ini (void)
+_initialize_check_for_gdb_ini ()
 {
   char *homedir;
   if (inhibit_gdbinit)
@@ -3315,8 +3317,9 @@ bad_GetConsoleFontSize (HANDLE w, DWORD nFont)
 /* Load any functions which may not be available in ancient versions
    of Windows.  */

+void _initialize_loadable ();
 void
-_initialize_loadable (void)
+_initialize_loadable ()
 {
   HMODULE hm = NULL;

diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c
index b6e5b9ff7c26..12438e87af36 100644
--- a/gdb/windows-tdep.c
+++ b/gdb/windows-tdep.c
@@ -619,8 +619,9 @@ static const struct internalvar_funcs tlb_funcs =
   NULL
 };

+void _initialize_windows_tdep ();
 void
-_initialize_windows_tdep (void)
+_initialize_windows_tdep ()
 {
   init_w32_command_list ();
   add_cmd ("thread-information-block", class_info, display_tib,
diff --git a/gdb/x86-bsd-nat.c b/gdb/x86-bsd-nat.c
index 3fc6f6278276..2bb8f8a2347d 100644
--- a/gdb/x86-bsd-nat.c
+++ b/gdb/x86-bsd-nat.c
@@ -122,6 +122,7 @@ x86bsd_dr_get_control (void)

 #endif /* PT_GETDBREGS */

+void _initialize_x86_bsd_nat ();
 void
 _initialize_x86_bsd_nat ()
 {
diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c
index f07ef8582547..fb2c92c425b3 100644
--- a/gdb/x86-linux-nat.c
+++ b/gdb/x86-linux-nat.c
@@ -310,6 +310,7 @@ x86_linux_get_thread_area (pid_t pid, void *addr, unsigned int *base_addr)
 }
 

+void _initialize_x86_linux_nat ();
 void
 _initialize_x86_linux_nat ()
 {
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index d0fa90e49fb6..5c6061077f54 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -3128,8 +3128,9 @@ xcoff_get_n_import_files (bfd *abfd)
   return l_nimpid - 1;
 }

+void _initialize_xcoffread ();
 void
-_initialize_xcoffread (void)
+_initialize_xcoffread ()
 {
   add_symtab_fns (bfd_target_xcoff_flavour, &xcoff_sym_fns);
 }
diff --git a/gdb/xml-support.c b/gdb/xml-support.c
index bace5243ec08..c906b69fda0b 100644
--- a/gdb/xml-support.c
+++ b/gdb/xml-support.c
@@ -1008,8 +1008,10 @@ xml_fetch_content_from_file (const char *filename, void *baton)
   return text;
 }

+void _initialize_xml_support ();
+void _initialize_xml_support ();
 void
-_initialize_xml_support (void)
+_initialize_xml_support ()
 {
   add_setshow_boolean_cmd ("xml", class_maintenance, &debug_xml,
    _("Set XML parser debugging."),
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c
index 988d78e6934f..0206af8bebc5 100644
--- a/gdb/xstormy16-tdep.c
+++ b/gdb/xstormy16-tdep.c
@@ -833,8 +833,9 @@ xstormy16_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
    Initializer function for the Sanyo Xstormy16a module.
    Called by gdb at start-up.  */

+void _initialize_xstormy16_tdep ();
 void
-_initialize_xstormy16_tdep (void)
+_initialize_xstormy16_tdep ()
 {
   register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init);
 }
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index 097d7bd6f968..57ad8a697224 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -328,8 +328,9 @@ ps_get_thread_area (struct ps_prochandle *ph,
   return PS_OK;
 }

+void _initialize_xtensa_linux_nat ();
 void
-_initialize_xtensa_linux_nat (void)
+_initialize_xtensa_linux_nat ()
 {
   const xtensa_regtable_t *ptr;

diff --git a/gdb/xtensa-linux-tdep.c b/gdb/xtensa-linux-tdep.c
index ab07eedd0e8e..028c8ea034c9 100644
--- a/gdb/xtensa-linux-tdep.c
+++ b/gdb/xtensa-linux-tdep.c
@@ -125,8 +125,9 @@ xtensa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
                                              svr4_fetch_objfile_link_map);
 }

+void _initialize_xtensa_linux_tdep ();
 void
-_initialize_xtensa_linux_tdep (void)
+_initialize_xtensa_linux_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_xtensa, bfd_mach_xtensa, GDB_OSABI_LINUX,
   xtensa_linux_init_abi);
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index d44c5b52c09f..bbd92d5cf8f0 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -3253,8 +3253,9 @@ xtensa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
   error (_("xtensa_dump_tdep(): not implemented"));
 }

+void _initialize_xtensa_tdep ();
 void
-_initialize_xtensa_tdep (void)
+_initialize_xtensa_tdep ()
 {
   gdbarch_register (bfd_arch_xtensa, xtensa_gdbarch_init, xtensa_dump_tdep);
   xtensa_init_reggroups ();
--
2.24.1



Reply | Threaded
Open this post in threaded view
|

Re: [PATCH v2 7/7] Enable -Wmissing-declarations diagnostic

Simon Marchi-4
In reply to this post by Simon Marchi-5
On 2020-01-10 5:00 p.m., Simon Marchi wrote:
> Now that most warnings of this kind are fixed, we can enable
> -Wmissing-declarations.  I say "most", because it is likely that there
> are some more in some configurations I am not able to build, but they
> should be pretty easy to fix.
>
> gdb/ChangeLog:
>
> * warning.m4: Add -Wmissing-declarations to build_warnings.
> * configure: Re-generate.

This is missing the ChangeLog entry for gdbserver, I've updated
it locally.

Simon
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic

Tom Tromey-2
In reply to this post by Simon Marchi-5
>>>>> "Simon" == Simon Marchi <[hidden email]> writes:

Simon> This is v2 of:
Simon>   https://sourceware.org/ml/gdb-patches/2019-11/msg00805.html

Simon> Although a few patches of the original series were merged, since they
Simon> were valid fixes in any case.

I read through the series.

I think this warning would be good to have, because it can help detect
bugs.  It's maybe mildly unfortunate that we have to have the first
patch, but at the same time it's not that much noise in the end -- just
an extra line (typically) near the end of a file.  The other patches all
seem desirable on their own terms.

So, I think you should check it in.

thanks,
Tom
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic

Tom Tromey-2
In reply to this post by Simon Marchi-5
>>>>> "Simon" == Simon Marchi <[hidden email]> writes:

Simon> As I tried building gdbserver with a few cross compilers, I found another
Simon> build issue, with code generated by regdat.sh.  The following patch addresses
Simon> it.  It should not be too controversial, but I wanted to run it by you first.

Simon> gdb/ChangeLog:

Simon> * regformats/regdat.sh: Generate declaration for init function.

This is fine by me.  I agree with your analysis in the commit message.

Tom
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic

Simon Marchi-4
On 2020-01-13 12:33 p.m., Tom Tromey wrote:

>>>>>> "Simon" == Simon Marchi <[hidden email]> writes:
>
> Simon> As I tried building gdbserver with a few cross compilers, I found another
> Simon> build issue, with code generated by regdat.sh.  The following patch addresses
> Simon> it.  It should not be too controversial, but I wanted to run it by you first.
>
> Simon> gdb/ChangeLog:
>
> Simon> * regformats/regdat.sh: Generate declaration for init function.
>
> This is fine by me.  I agree with your analysis in the commit message.

Thanks, I pushed this patch.

Simon
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic

Simon Marchi
In reply to this post by Tom Tromey-2
On 2020-01-11 9:48 p.m., Simon Marchi wrote:
> Thanks again for the tip to finish the last patch.  This is v2, and v1 was
> sent a while ago, so I figure that if somebody was against it, they would
> have spoken up by now.  So I'll rebase and push it.  Sorry in advance for
> the breakages on the configs I am not able to build easily.

I have now pushed this series, after finding and fixing a few more problems.

Simon