LD: vfinfo: Remove static NULL initializers
authorMaciej W. Rozycki <macro@imgtec.com>
Tue, 7 Feb 2017 02:06:20 +0000 (02:06 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Wed, 15 Feb 2017 13:40:08 +0000 (13:40 +0000)
Remove static NULL initializers, moving the respective variables from
data to BSS and saving some storage space.

ld/
* ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.

ld/ChangeLog
ld/ldmisc.c

index 618ae819ef04a97d13bf1c58ecb7fe0a06c481fe..43e4992f7918bdd5672c1c4ed2f09e943f44eb60 100644 (file)
@@ -1,3 +1,7 @@
+2017-02-15  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
+
 2017-02-15  Igor Kudrin  <ikudrin@accesssoftek.com>
 
        * testsuite/ld-scripts/sysroot-prefix.exp
index 904a23d37d0641e7a5fa8f8cf562823a783bd6c3..b50637d9eddcc2672000b0a571cd43045cd7da16 100644 (file)
@@ -280,8 +280,8 @@ vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning)
                 The arguments are a BFD, a section, and an offset.  */
              {
                static bfd *last_bfd;
-               static char *last_file = NULL;
-               static char *last_function = NULL;
+               static char *last_file;
+               static char *last_function;
                bfd *abfd;
                asection *section;
                bfd_vma offset;