binutils: Make some functions static in dwarf.c
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 18 Nov 2019 12:13:24 +0000 (12:13 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Nov 2019 00:03:04 +0000 (00:03 +0000)
The architecture specific register name initialisation routines no
longer need to be externally visible, so make them static.

binutils/ChangeLog:

* dwarf.c (init_dwarf_regnames_i386): Make static.
(init_dwarf_regnames_iamcu): Make static.
(init_dwarf_regnames_x86_64): Make static.
(init_dwarf_regnames_aarch64): Make static.
(init_dwarf_regnames_s390): Make static.
(init_dwarf_regnames_riscv): Make static.
* dwarf.h (init_dwarf_regnames_i386): Delete declaration.
(init_dwarf_regnames_iamcu): Delete declaration.
(init_dwarf_regnames_x86_64): Delete declaration.
(init_dwarf_regnames_aarch64): Delete declaration.
(init_dwarf_regnames_s390): Delete declaration.
(init_dwarf_regnames_riscv): Delete declaration.

Change-Id: I9e350f76f98f46e9e3dd88d502f2a2a83e44cb36

binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h

index c7cb68ca81a5ea094f72b3fe1cf2d9c1ef3ba5e8..8251db2111119c38f789600a9cc2ed19cd076079 100644 (file)
@@ -1,3 +1,18 @@
+2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf.c (init_dwarf_regnames_i386): Make static.
+       (init_dwarf_regnames_iamcu): Make static.
+       (init_dwarf_regnames_x86_64): Make static.
+       (init_dwarf_regnames_aarch64): Make static.
+       (init_dwarf_regnames_s390): Make static.
+       (init_dwarf_regnames_riscv): Make static.
+       * dwarf.h (init_dwarf_regnames_i386): Delete declaration.
+       (init_dwarf_regnames_iamcu): Delete declaration.
+       (init_dwarf_regnames_x86_64): Delete declaration.
+       (init_dwarf_regnames_aarch64): Delete declaration.
+       (init_dwarf_regnames_s390): Delete declaration.
+       (init_dwarf_regnames_riscv): Delete declaration.
+
 2019-11-22  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New
index a770c57f6083416ef2fa32d4526c310366f5bb78..fc73fa75a6aa0c6ba89fe6225fac31f50d942d78 100644 (file)
@@ -7464,14 +7464,14 @@ static const char *const dwarf_regnames_iamcu[] =
   NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL  /* 93 - 100  */
 };
 
-void
+static void
 init_dwarf_regnames_i386 (void)
 {
   dwarf_regnames = dwarf_regnames_i386;
   dwarf_regnames_count = ARRAY_SIZE (dwarf_regnames_i386);
 }
 
-void
+static void
 init_dwarf_regnames_iamcu (void)
 {
   dwarf_regnames = dwarf_regnames_iamcu;
@@ -7510,7 +7510,7 @@ static const char *const dwarf_regnames_x86_64[] =
   "k0", "k1", "k2", "k3", "k4", "k5", "k6", "k7"
 };
 
-void
+static void
 init_dwarf_regnames_x86_64 (void)
 {
   dwarf_regnames = dwarf_regnames_x86_64;
@@ -7537,7 +7537,7 @@ static const char *const dwarf_regnames_aarch64[] =
   "z24", "z25", "z26", "z27", "z28", "z29", "z30", "z31",
 };
 
-void
+static void
 init_dwarf_regnames_aarch64 (void)
 {
   dwarf_regnames = dwarf_regnames_aarch64;
@@ -7561,7 +7561,7 @@ static const char *const dwarf_regnames_s390[] =
   "v24", "v26", "v28", "v30", "v25", "v27", "v29", "v31",
 };
 
-void
+static void
 init_dwarf_regnames_s390 (void)
 {
   dwarf_regnames = dwarf_regnames_s390;
@@ -7582,7 +7582,7 @@ static const char *const dwarf_regnames_riscv[] =
  "ft8",  "ft9",  "ft10", "ft11"                             /* 60 - 63 */
 };
 
-void
+static void
 init_dwarf_regnames_riscv (void)
 {
   dwarf_regnames = dwarf_regnames_riscv;
index 8272de857b5b9d1dff825d5640f5463ad2c08637..5ea85d920a13559fc12c9ea2a6c0d86f96e5cc58 100644 (file)
@@ -228,12 +228,6 @@ extern int dwarf_check;
 extern void init_dwarf_regnames_by_elf_machine_code (unsigned int);
 extern void init_dwarf_regnames_by_bfd_arch_and_mach (enum bfd_architecture arch,
                                                      unsigned long mach);
-extern void init_dwarf_regnames_i386 (void);
-extern void init_dwarf_regnames_iamcu (void);
-extern void init_dwarf_regnames_x86_64 (void);
-extern void init_dwarf_regnames_aarch64 (void);
-extern void init_dwarf_regnames_s390 (void);
-extern void init_dwarf_regnames_riscv (void);
 
 extern bfd_boolean  load_debug_section (enum dwarf_section_display_enum, void *);
 extern void         free_debug_section (enum dwarf_section_display_enum);