This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] LD: vfinfo: Remove static NULL initializers


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=befe814dd9ac6489c84ecd5c839b3b48aca95280

commit befe814dd9ac6489c84ecd5c839b3b48aca95280
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Tue Feb 7 02:06:20 2017 +0000

    LD: vfinfo: Remove static NULL initializers
    
    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.

Diff:
---
 ld/ChangeLog | 4 ++++
 ld/ldmisc.c  | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 618ae81..43e4992 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 904a23d..b50637d 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]