This is the mail archive of the binutils@sources.redhat.com 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]

[PATCH] Remove unused variable in gas/write.c


Hello All,

this patch removes an unused variable. Committed as obvious.


Thiemo


2003-04-07  Thiemo Seufer <seufer at csv dot ica dot uni-stuttgart dot de>

	/gas/ChangeLog
	* write.c (write_relocs): Remove unused variable.


diff -BurpNX /bigdisk/src/gcc-exclude source-orig/gas/write.c source/gas/write.c
--- source-orig/gas/write.c	Tue Apr  1 17:50:29 2003
+++ source/gas/write.c	Sun Apr  6 04:00:04 2003
@@ -1017,7 +1017,6 @@ write_relocs (abfd, sec, xxx)
   for (fixp = seginfo->fix_root; fixp != (fixS *) NULL; fixp = fixp->fx_next)
     {
       arelent **reloc;
-      char *data;
       bfd_reloc_status_type s;
       symbolS *sym;
       int j;
@@ -1053,7 +1052,6 @@ write_relocs (abfd, sec, xxx)
 	  relocs[i++] = reloc[j];
 	  assert (i <= n);
 	}
-      data = fixp->fx_frag->fr_literal + fixp->fx_where;
       if (fixp->fx_where + fixp->fx_size
 	  > fixp->fx_frag->fr_fix + fixp->fx_frag->fr_offset)
 	as_bad_where (fixp->fx_file, fixp->fx_line,


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