Patchwork [01/15] Add back declarations for _initialize functions

login
register
mail settings
Submitter Simon Marchi
Date Nov. 25, 2019, 5:26 a.m.
Message ID <20191125052655.22696-2-simon.marchi@efficios.com>
Download mbox | patch
Permalink /patch/36178/
State New
Headers show

Comments

Simon Marchi - Nov. 25, 2019, 5:26 a.m.
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 <jhb@FreeBSD.org>
    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/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/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/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/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 ++-
 393 files changed, 750 insertions(+), 354 deletions(-)
John Baldwin - Jan. 9, 2020, 6:46 p.m.
On 11/24/19 9:26 PM, 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 <jhb@FreeBSD.org>
>     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.

(Sorry for the late reply, but I don't think I've seen this pushed in yet?)

I don't have a better solution.  I feel like clang warned about the
declarations perhaps, but I can't find the reason for making this change
in the old branch.  It might be worth testing a build with clang to see
if this adds new warnings there or not.  I can help with doing that if needed.
If it does trigger a warning on clang we might also just choose to mute that
warning (I think since the original commit we have added the ability to have
clang- and gcc-specific warning flags).
Simon Marchi - Jan. 9, 2020, 10:22 p.m.
On 2020-01-09 1:46 p.m., John Baldwin wrote:
> On 11/24/19 9:26 PM, 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 <jhb@FreeBSD.org>
>>     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.
> 
> (Sorry for the late reply, but I don't think I've seen this pushed in yet?)
> 
> I don't have a better solution.  I feel like clang warned about the
> declarations perhaps, but I can't find the reason for making this change
> in the old branch.  It might be worth testing a build with clang to see
> if this adds new warnings there or not.  I can help with doing that if needed.
> If it does trigger a warning on clang we might also just choose to mute that
> warning (I think since the original commit we have added the ability to have
> clang- and gcc-specific warning flags).

Thanks for bringing this up, I have forgotten to follow up on it.  As Tom
noted on patch 15, gdbserver also uses warning.m4, and I had forgotten to
run autoconf on it.  And of course, it revealed more spots that would need
fixing.  And among those, the functions used both in the in-process agent
and in gdbserver itself are problematic, because they should be exported when
built for the IPA, but static when built for gdbserver.  So I gave up on it
for the moment.  This patch (01/15) would only be relevant if the rest goes in
too, but I note your comment about clang.

Thanks,

Simon
Tom Tromey - Jan. 9, 2020, 10:33 p.m.
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> And among those, the functions used both in the in-process agent
Simon> and in gdbserver itself are problematic, because they should be exported when
Simon> built for the IPA, but static when built for gdbserver.  So I gave up on it
Simon> for the moment.  This patch (01/15) would only be relevant if the rest goes in
Simon> too, but I note your comment about clang.

Is it on a branch somewhere?  Maybe it wouldn't be too hard to finish up.

Tom
Simon Marchi - Jan. 9, 2020, 10:50 p.m.
On 2020-01-09 5:33 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
> 
> Simon> And among those, the functions used both in the in-process agent
> Simon> and in gdbserver itself are problematic, because they should be exported when
> Simon> built for the IPA, but static when built for gdbserver.  So I gave up on it
> Simon> for the moment.  This patch (01/15) would only be relevant if the rest goes in
> Simon> too, but I note your comment about clang.
> 
> Is it on a branch somewhere?  Maybe it wouldn't be too hard to finish up.
> 
> Tom
> 

I have just uploaded it to the "missing-declarations" branch on my github:

  https://github.com/simark/binutils-gdb/tree/missing-declarations

I have updated the patches slightly to account for the new unittests.  So if you
try to build, you'll stumble directly on the build error that made me give up:

/home/smarchi/src/binutils-gdb/gdb/gdbserver/tracepoint.c: In function ‘void gdb_agent_stop_tracing()’:
/home/smarchi/src/binutils-gdb/gdb/gdbserver/../gdbsupport/agent.h:29:36: error: no previous declaration for ‘void gdb_agent_stop_tracing()’ [-Werror=missing-declarations]
 #define IPA_SYM_EXPORTED_NAME(SYM) gdb_agent_ ## SYM
                                    ^
/home/smarchi/src/binutils-gdb/gdb/gdbserver/tracepoint.c:114:23: note: in expansion of macro ‘IPA_SYM_EXPORTED_NAME’
 # define stop_tracing IPA_SYM_EXPORTED_NAME (stop_tracing)
                       ^~~~~~~~~~~~~~~~~~~~~
/home/smarchi/src/binutils-gdb/gdb/gdbserver/tracepoint.c:374:1: note: in expansion of macro ‘stop_tracing’
 stop_tracing (void)
 ^~~~~~~~~~~~

Simon

Patch

diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index 3c3931f6b7cf..5c96f19e19e9 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 c611ff350bda..88083d61d9c6 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 2c1f4d9f9851..bb0ee6a20e3d 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 c8e30a4fef24..c4aebe82a4c2 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -1669,8 +1669,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 131f09919702..b202a7ca39ee 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 af186e4b1be5..ddaffe0a8c68 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -3413,8 +3413,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 5e9d3e70b929..bf94ff7caeb3 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1457,8 +1457,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 7959a5f06e22..fbc39982e74b 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -14230,8 +14230,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 67aa0c798890..3d807ff9445b 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 da251a3af7b7..1e5de7aa90f4 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 ffa3352d0399..4f757dc13427 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1824,8 +1824,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 b12d19f3434d..60a0422a2486 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 9f83ad7cc6e5..83d56c62b1d3 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 27b2398fdbc3..b6e4d1a1fa2c 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 534b64687e35..3626a334940d 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 d7e292603aff..375c3ec42952 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 795f0367525a..94346895db5e 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 f1aa72a3b5da..b01910ab49e9 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 ee91888491b3..62541ebbca7a 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 718ebd9ac1da..0b2a09c350c6 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 493e630974d4..ec5bd0d2635a 100644
--- a/gdb/amd64-fbsd-tdep.c
+++ b/gdb/amd64-fbsd-tdep.c
@@ -268,8 +268,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 d0328b677d59..cb0f7cc42aed 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 7ec08c7fc49f..b5a10fc0c4cb 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 24e3aae7ecb7..c9806458da9f 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 331cb8a73f94..ff1acac7530b 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 4963c42d06cf..8407bd598630 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 67f9f88f522b..9b0cf03efdd6 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 74358d88f43e..c03c23f1bf2c 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 67a4d3f11a95..3e3f423dffc4 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 378262a56e35..49a55a809fdb 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 71a5e5701871..aefb60e59d66 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 3011b26eb581..8ebfab5c88de 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 5fa4094def85..df80559e6813 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 13b1c7fe10a7..3d4f6ec2cd51 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 2129c3b2c388..2fc8dada0cda 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 e6c7d3c4a8d1..e4a5245018c4 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 6e1af9cda30e..54d82d667a34 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 bef67c7ac7da..b298a844628d 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 32c1ef3a7700..dbb9d16ae9ba 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 82c8ad5eedaf..98d23e982233 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 f9ea084d1c8a..d4da7ce83268 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 a6055ab171df..15743bffd3ec 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 21add740a401..5424b4f440c6 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 71521de7a918..8235374825d9 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 69c87c5a4325..be9f0fde047a 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 916c56dab204..b98302bbffdd 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 0864ad38a762..da84d0a39004 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 53958011c819..829eeb3539a7 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 6d11ee1618cc..e73b4d0bfece 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 848958706437..89362d38cc11 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 3fc6b6a6586d..248606a505ee 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 9d3e8ebce164..37c09e627921 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 c475e8aca572..0bb9d8d70444 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -425,8 +425,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 dde80b54a2fb..df952b5a79dc 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -600,8 +600,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 e9523a6eb860..e26b4c6ae26b 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 583f46d85210..de28a13d335e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -15372,8 +15372,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 af048f7a18f9..9a2814d81b48 100644
--- a/gdb/bsd-uthread.c
+++ b/gdb/bsd-uthread.c
@@ -540,8 +540,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 f6a0643ba172..126f24e236ce 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 a93fe99c41fa..e237849c385e 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 681d53c574d8..00461e450d62 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -2105,8 +2105,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 7c4f63be06d3..da33a13e6b9a 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 a8cf6172c1be..ea5ea016c122 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 e20ebd5dc82e..5e96318fd586 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 06cdcd6bfe5c..2c9be58b26b3 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1585,8 +1585,9 @@  show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name,
   fputs_filtered ("\n", stream);
 }
 
+void _initialize_cli_script ();
 void
-_initialize_cli_script (void)
+_initialize_cli_script ()
 {
   add_com ("document", class_support, document_command, _("\
 Document a user-defined command.\n\
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index 5535d6740838..00e246f625dd 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -290,6 +290,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 b05357bb8be8..ce7b59414637 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -685,8 +685,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 ac00e1c1e3b1..5eb19936160d 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -2194,8 +2194,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 c6d2b294ab20..f89699c63752 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 94942db10e10..dcae25bb6b5c 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 c5b5471ee181..5d3e668c4d63 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 5f75aaa497b9..cc0e31fa2bb2 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -2952,8 +2952,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 f22c1540cb16..a6b778ac2632 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -479,8 +479,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 fa1661ee61dd..5e5141f00e80 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -969,8 +969,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 bbb74d426382..6c899a715ae4 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -389,8 +389,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 2b3f014253ac..cff96201fc24 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -1062,8 +1062,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 55a2e42b34b4..16a9a40fa658 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -2166,8 +2166,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 e445d42d3fa9..ae01fafeb304 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 3bab7404b17f..a752423e2b8f 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 cb99b9288cd7..072c743ef239 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 ab4af9f6f15c..46af0aba5014 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 a6f78a187cff..ad518593afd3 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 c5f9130c6a82..94e67f2ba6c7 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -1478,8 +1478,9 @@  elfctf_build_psymtabs (struct objfile *of)
   scan_partial_symbols (fp, of);
 }
 
+void _initialize_ctfread ();
 void
-_initialize_ctfread (void)
+_initialize_ctfread ()
 {
   ctf_file_key
     = register_objfile_data_with_cleanup (NULL, ctf_close_objfile);
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 1701976da788..9eafe3a61152 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 b862c4485b00..b67654426703 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 123d2c0b698e..0ec93cbf22e0 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 73f1ba8759a1..e11e77577484 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -3184,8 +3184,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 fd64af96db32..da40474d395c 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 d924fc725fd5..5ffdffcb4f59 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 164939b58826..889bafa604ec 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 528378231cd6..552256a38afd 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 3b76d456b7b1..ec0956c5ea12 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 d00d6511abb4..6799703ee2ad 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 7e89de433090..1e101182e577 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -1779,6 +1779,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 1b614ad8f1a8..ffe0a812950f 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 719e06570d1e..22ab51dcc229 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -2355,8 +2355,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 f611940ad319..ac85bcc245cd 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 0b22745074ad..bf516702622d 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -4515,8 +4515,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 1ca801c39772..259c3139176e 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -25958,8 +25958,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 44b793d8f14b..7f3afcf125b3 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 efc504eca47f..bf45be95c5a9 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -1032,8 +1032,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 1fb4b48003a7..cf8a30be8da8 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 fd4ad0f1411b..edff446ed85c 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -760,8 +760,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 d5515c8f8fec..4d27f5c564ae 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -473,8 +473,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 0274ff542eaf..99448618fcba 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1668,8 +1668,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 1d097470fe46..d7b604688f11 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -2084,8 +2084,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 a942e7067dfb..b561c3819c5f 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 5a1fa89938ae..f6296ff3d2ce 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 50e99f48d1f0..7bb79cf1d26e 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 edfb6a3c5a1c..1da9cdd7f5a6 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -154,8 +154,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 307158697933..9d5f2732652b 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 61486652d420..79f50880dae7 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 660f8cfa00e3..7b7a0ddcb72b 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 cee2d0c5e24f..3a7859feb07e 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 a80c0437cb64..60c307e02949 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 bded02fae4bc..5391a210a8a0 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 f283ed4580d9..2ec99fe72e5a 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 2ed64d4e5b3c..c128cab805cc 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 2a070d7b929f..6f50d507e21c 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 0942050479bd..2939d3ab4fae 100644
--- a/gdb/gdbarch-selftests.c
+++ b/gdb/gdbarch-selftests.c
@@ -165,8 +165,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 fa6be50730b4..904593f7bf21 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -5571,8 +5571,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 31c1a7b732b1..f9589befd248 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5588,8 +5588,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 93a50becceb6..37ff2a9cc8f4 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3501,8 +3501,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 000f82579bd0..2137d1439657 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 d630ec07b111..6b6565ddb158 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1360,8 +1360,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 bf2eb1b6f716..6118effda71c 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 8c71bd7650fc..15d01d4d5bbd 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -2080,8 +2080,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 55929f445517..7a3bae5482fb 100644
--- a/gdb/guile/guile.c
+++ b/gdb/guile/guile.c
@@ -791,8 +791,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 d8801197c3ca..66dafb8960d2 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 09fa4c38c55c..627259e18c2a 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 dfa4113a0237..18300b87d163 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 2e365d3fddb4..292d6ffe8434 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 bc80fcd4157a..59850496f825 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 9ce4ab41380f..c75261593454 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 983f99620781..83f4b450969c 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 8e4168dbdd95..e89f9abe6c2e 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 a10b496096e6..fdc9b187f17b 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 25c3cfcbb988..7feecd72da13 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 1187fc57f6d2..c902e8f674ab 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 6522a6fdcaca..357af89db522 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 a8c7c04d1fc5..0edb218ccd00 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 15a30a4c2a91..b7a456714c19 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 04d0a641b72c..a49957a19305 100644
--- a/gdb/i386-fbsd-tdep.c
+++ b/gdb/i386-fbsd-tdep.c
@@ -449,8 +449,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 087445bc6269..55adf20fd036 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 cb4f11a29ddf..9f550a1c41d5 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 7a04a9647fa1..eee7f7f5f797 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 dd8f141f23b1..333dfd33f787 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 0f10686bc014..13f031eed5c5 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 6e92ea8dbd67..37e009a5cfcb 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 d39d1b4d4c36..a0fd93a79ab1 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 91f99da0c1eb..ba65a5d0c0e2 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 e0eb9573753c..78df3d237fda 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 574f45d7405e..effb8081e951 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 b5a334b80958..71e6dd726e2f 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 328d33cf574e..c2ab791e302a 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 5445dd11b96f..6633babf9640 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 fa85cd1de3e5..e8107f99dd15 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 9efe637c37a8..38bf83a60582 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 7faa0b630869..c4dc8241bc89 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 f1954911a714..12c42e52a36a 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 f8b75bf6c8eb..9050ffe019e7 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 f249f82438b0..b94edcad0d6c 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 5553fc977917..8c1eae3a8ccf 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1384,8 +1384,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 2a253469e745..0238b8276255 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -3121,8 +3121,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 6d645d291a7e..9b78301f254f 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 37186745dbf5..2dfa7733faf5 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -8885,8 +8885,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 17b0982fe86a..c656bfebad41 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 0c50a72fc923..0b8b57d69e2b 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 85a01ef2c748..fd53df8c1ac4 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -1459,8 +1459,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 6ab0ca323d20..de0e01465ffa 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1134,8 +1134,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 8373093b13ba..47f385f7b268 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -752,8 +752,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 bc397961c82d..6d6c7a2e8212 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4534,8 +4534,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 18cee91dd3e8..88c15d324096 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -2485,8 +2485,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 9b1a3a5c2456..a33c07bc5eba 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -1960,8 +1960,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 088f0355bb84..4d365e71b0df 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 2d2dfe310183..09294a46f2b8 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 4e4e7c35be33..8c0715663b74 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 6323db3f19d4..88e76472203c 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 a1c883943515..5df793045529 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 a10558d59be2..e05fc2cedd96 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 4097eef6e1c9..2802ae7016e0 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 5e4fc17efc85..4520e6e1637f 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 b2ae6554971f..b0fbf433ae94 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 959dbf44760b..8e950f189160 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 56d1436f9df8..a72b7611dafa 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 58cbf90426c3..b4b06d99a6ab 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 26eac27a049c..7ad1e783b526 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -966,8 +966,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 cb7267d07a3e..1d26876aea06 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 f3845047767a..552c4e2ee9b4 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 9bda34a3fd24..4b55e94c22a0 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 86d201a3c6f2..d823254ee263 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 ce59ef6cca49..61eebaddbdf6 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -1107,8 +1107,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 c58e40c94a00..59993a3620ab 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -4810,8 +4810,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 8301a3f26219..feda47943671 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 41eef91a1264..b46231e161a0 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 ee01afa4c9c2..fb5033e0d98c 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 37eab01de9e4..fde8ace886e9 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -287,8 +287,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 7659e2803823..4979eb91b5ec 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -1330,8 +1330,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 c14897a5f719..a55f651b527a 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -2753,8 +2753,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 4e5f60cd4e52..eb7483780d41 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 44bfe7f361e1..fd53944453e9 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 6ed20cedd53f..a80a29d0bb73 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 71cd4c5af2af..fd3310fa7e72 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 e68ed1e4da9f..44dbb2414830 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 eab284da1304..84ae86a5ad00 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 e942f9dc6b5b..56edf0f68e53 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 95de2ab84016..c8a883a1c43e 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 791a5991ad54..42ad721c8249 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 0852851595f0..1b4184c65052 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 44d262b6a863..c8cba6aced22 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 1603f3e5f919..125cc3527a48 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 b5f7f6cde4b9..8129a52b63a7 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -381,8 +381,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 70f377f80ae1..af3b0626e277 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 bcb5b27e12f1..cd4847169c11 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 81fdb7111c2a..6f59bb8fedd7 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 947a669f28fb..4e1b431f5b74 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 8e126cb7a58f..ec7167c30800 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 f48cd9a1bad3..221bf37885a8 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 c2683b5e3a79..e70751cc1970 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 0a199e72248e..ed218010e73a 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -1506,8 +1506,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 e2a6e800b55e..680d1b6d746d 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 c077b0259326..f7a5af8787ff 100644
--- a/gdb/observable.c
+++ b/gdb/observable.c
@@ -86,8 +86,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 5d03210b569d..93ce743c76f1 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 b8076dc80562..91e7e944d834 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 fdeab815a10c..5819865b21ec 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 05bf4cbfb20a..f24aff56419c 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 4bd1a0b9b28e..8c8a276f7097 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 e1e1a00cae1f..5fbbc66e21d0 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 a17cae6b5519..6f52dfb7762c 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 648f628cf7ea..c8c3cc84d1f5 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 290bd1fd8828..5541229b6136 100644
--- a/gdb/ppc-fbsd-tdep.c
+++ b/gdb/ppc-fbsd-tdep.c
@@ -359,8 +359,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 e14275526c2d..069a2c0c5e1e 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 ecfaee391f69..9e6bae1a3828 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 22e8915c8a4a..721ff064d908 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 7959046bfcb8..fff37a191fe2 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 4d3f8b2de7f4..1fd5cdeac9c9 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 e404e8c9a593..cf956c155313 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 fe0efd371a53..3553916857c3 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2735,8 +2735,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 8b108d6b02dc..b6e179d670e1 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 214b26f40cf1..7f104e6f0502 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 ae87d02e40a3..0b146e43b618 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 b0741318adcb..6ae291a5fa31 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -208,8 +208,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 57d4b8f0bfbb..89c67f4c4085 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3698,8 +3698,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 63ec2acb0d57..4cfbe8252013 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 7074a32956aa..074642e55954 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -2158,8 +2158,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 7b561a1c35f0..fd33399318e2 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1754,8 +1754,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 0cc7e1dc75a7..2b876f4d8f06 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -593,6 +593,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 459d0da84027..04e2d35c2741 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -3138,8 +3138,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 5502a019c266..293a1a5630f1 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -2800,8 +2800,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 f4df1de3b2a1..9feaadc1f718 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 04590853144c..fd704da9a961 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 2e8b52ee751e..59b8783a50b7 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1795,8 +1795,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 5608bcc35688..6a2533d2c217 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 2ff7b3b66c6c..0dea3c05f0e5 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 67b46909455a..8f86f5d3132e 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -1296,8 +1296,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 1ac9013408db..a39eb515a471 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -14224,8 +14224,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 f2d2bf029b83..7d43b722647f 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 24381e0dccf9..482e0db91e24 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 a17d55b08b0d..f5d32231fee9 100644
--- a/gdb/riscv-fbsd-tdep.c
+++ b/gdb/riscv-fbsd-tdep.c
@@ -223,8 +223,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 1a9919fef21f..76a4e06b566e 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 adeb25441da2..4b5059153ee4 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 d262b7d07e7f..3defd880e5d2 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -3508,8 +3508,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 f66cda88179b..285b56076909 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 f2ff2557368f..f0a9ca498d15 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 249416857c89..ca9969fa42df 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 3fa6fb1e6cb1..ef015e01194a 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 07a186011cb6..9ea359c771ff 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/rust-exp.y b/gdb/rust-exp.y
index a15e0de12fd2..b5540d8245c5 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 45cc8b453564..62a86cdc4970 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 094698d469aa..02b3140bf27d 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 e77f4ac14d47..f572c0b66612 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 ab3889ba45a7..fe6a0e516b5c 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 a4aae0736ddb..068aa76a1fa1 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 5ca763c40f42..ea5412e2ca16 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -1508,8 +1508,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 27d7c08575df..fd4ccff11b19 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 0bf791bb3ec8..ad614a83ab03 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 61d5708ea09c..c780055c439f 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 37f64b5d0826..2170c4be80cd 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 264f2170cb6d..0443f0e1859c 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 c49bd84eb63c..674091f820aa 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 a881bbc97cf8..3ee343e6568a 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -672,8 +672,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 a4684e65da79..b30cb5bdb375 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 1717ff93f553..561d3d2d1e31 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 976b344965bb..77f579de5c41 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 48a388b2d8f3..1a663a919e77 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 a869aaafcd32..6a3ff99a08d0 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 e9ca1c577aed..d038ec75ace0 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1178,8 +1178,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 8308190d90cd..0c2856992ac4 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -723,8 +723,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 969bfd529bc2..8682e71a4c7b 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 70d6f2e314b6..2cddf45b4e8f 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -1023,8 +1023,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 13d14122e5f4..85cc38f9024f 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -1143,8 +1143,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 de765576d0b7..900700bcd6ae 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -3247,8 +3247,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 2b473d606660..899b2ad1ad40 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -440,8 +440,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 400fddedb62c..baa647b07939 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1575,8 +1575,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 1fe6da81326a..a752d0d181be 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 d9cd5f32caf6..898a3cec1e32 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1836,8 +1836,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 048171fde2b2..5a9032520683 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 be3ff8d81418..1ca572ec8f32 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 0905c57438aa..8dbf2f51ba44 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -305,8 +305,9 @@  sparc_xfer_wcookie (struct target_ops *ops, 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 1405f120fa75..3ff250dbaa23 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 3f71d964591e..979ef61a3b5f 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 3a8930a9efe6..600f4155d75d 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 0a8a9beae42f..c4577f10ebfd 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 0a816e413de5..ce4a8d92126a 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 02ee174668e8..69b2cab8cb00 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 4989772f1188..e39d610dffef 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 96cd163d2be5..5d7c5e3d7641 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 563d21e4b4c0..ea5773042317 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 77b5141aee19..b88b21cf863b 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 fb0203ba91b9..a6d01649a487 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 b43efe0e3f81..de9defe6dec3 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 ee0cfe4b0808..ef2e30d82259 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 42ddbf6e927b..2708c5539821 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 829f27999159..5c489d86cf92 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 fc73b23145de..e2fdc112d20b 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 6ec9f971e160..7d57804bfe92 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -4784,8 +4784,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 5099f613666f..c5008b855aeb 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -3337,8 +3337,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 ba927790a5d6..e162745cf5ae 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1703,8 +1703,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 8dc94f80120b..80406f54dfcd 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 37959bf0d408..a4d9117d626d 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 82fb17ed1654..badf4da82c5f 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 aec07d7a7abd..b27a883b9531 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3897,8 +3897,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 69d035dc8438..ae5387371bb7 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -1041,8 +1041,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 2e8ae2383ed2..59b1cb491a09 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -6636,8 +6636,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 c8a415512c5b..bc7086904443 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 f83c2f963adb..b6dfdd900d74 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 7c8426d6257f..2269affdfcb3 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -2109,8 +2109,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 ca3395763b52..1d1c7c0102f1 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 2df83c4f6197..a0e1ccad9db2 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 9ddf74b7b168..dbf5ac9c795c 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 23454860bb60..6155c06a01fc 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 aa2681e2127a..b2a314715573 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 758dd5681d88..0db37dc3e450 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 5c3837ec5b93..9e5cecbe98d7 100644
--- a/gdb/tracefile-tfile.c
+++ b/gdb/tracefile-tfile.c
@@ -1132,8 +1132,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 79ba5414136a..e6f8948c7204 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 8e04cad504e9..05069ce408d0 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 bb96f4d9bbd8..0bb7888fe45e 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -263,8 +263,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 bc8fde363bf8..746affec9e76 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 ba0b367e16de..03a5a4090b53 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -546,8 +546,9 @@  show_source_or_disasm_and_command (enum tui_layout_type layout_type)
 /* 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 1d936f712b6e..def8601eca2b 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -651,8 +651,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 078f81992aba..ac650478c5c6 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -379,8 +379,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 c8d36c7e6371..cf7093cc212e 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1360,8 +1360,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 3f5ab415de9c..4602f4a0a515 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -670,8 +670,9 @@  tui_get_command_dimension (unsigned int *width,
   return 1;
 }
 
+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 ded8096c630f..39f65f82414a 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 6c3f6e6646f6..b659a08a1a64 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 95a4cc799f01..8520dfe9a4bb 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 2ed83faed66b..5af374253f69 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 6d8928fd6bcf..5dfc9b75ad7a 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 3d4211da86d1..5e52c0f07a87 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 aad4614ecf5d..0fe4b998f242 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 c499f01cfae8..bb6c94466497 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/format_pieces-selftests.c b/gdb/unittests/format_pieces-selftests.c
index d7e97d4069f1..14c5497c3c23 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 f0d58d8778ba..5f6281129b51 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 89bc2e1f4e8c..c1e50b1aad8a 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 747728158d8e..0fc2cbaf2705 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/memory-map-selftests.c b/gdb/unittests/memory-map-selftests.c
index f64f05013351..3cbd58f14869 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 6fe1fe622f52..d0c569e41b02 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 8be4a922f712..d2efb4773d6f 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 f7a8e9606ae8..624f481b9fd8 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 57a1a27d1337..af208cd9b921 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 828b0e8577ac..68c2805089ae 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 b86ab4343f28..313a7a67a3d8 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 541d03055258..bb4c560a7516 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 c3d17102cd5d..cae9d5fbc163 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 37d91ae1f25f..b3d94dda9918 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 c05cccf04687..3c3ddcafd207 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 910f6588d7b4..d4fff3e9ab09 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 fc7f144c235f..db9805402c1c 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 1f04c7cea241..a6307f1929ef 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/unpack-selftests.c b/gdb/unittests/unpack-selftests.c
index ffb6238445b3..9f2526805213 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 ec81124001f9..4c1c836c13af 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 51490916b085..28b352fedb5f 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 99c431b23605..117eef50e5aa 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 d961d1be4c13..58d3ec0e8855 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 f7fae35729b7..8415157d5c4f 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3418,8 +3418,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 4be63b1cb77d..8d3fd0954463 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 cbb1f30e71b4..6d7c962117ed 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -3902,8 +3902,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 ced0dbcd0a60..fc33a9b2c2ae 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -3252,8 +3252,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 35a7a5cdce3d..bd575e6eb0d3 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -4117,8 +4117,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 b7ee619a7784..9c963643f231 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 910746a7af81..b78e32a421fc 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 77c988d63bd8..a41de6993808 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 e4a565df0507..f8e900f623e5 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 fdc21f38bfad..66c84f00d545 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -3031,8 +3031,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;
@@ -3193,8 +3194,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)
@@ -3290,8 +3292,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 bb69a79996ac..c92e0c607889 100644
--- a/gdb/windows-tdep.c
+++ b/gdb/windows-tdep.c
@@ -489,8 +489,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 b000976619ff..c946aecd3cec 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 e1b592510fa6..308bda26c622 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 4ea9b0b5bddc..360f21eee7fa 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -3134,8 +3134,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 915be76066d9..e35616de85c1 100644
--- a/gdb/xml-support.c
+++ b/gdb/xml-support.c
@@ -1010,8 +1010,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 9b8b7e2864fa..9f12f2bee9de 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 3ff66d171a05..0c3d34c6faba 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 be1fba97c721..541075b08781 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 2a430bf527f3..30b61697a2be 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 ();