public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Updated compile time warning fix: ld/emultempl/lnk960.em
@ 2005-02-24 16:17 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2005-02-24 16:17 UTC (permalink / raw)
  To: binutils

Hi Guys,

  Alan pointed out that there is no need to pass an empty string to
  concat so my patch to lnk960.em could have been better.  Hence I am
  applying the patch below to remedy this.

Cheers
  Nick

ld/ChangeLog
2005-02-24  Nick Clifton  <nickc@redhat.com>

	* emultempl/lnk960.em (lnk960_before_parse): Remove redundant
	empty string from calls to concat.

Index: ld/emultempl/lnk960.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/lnk960.em,v
retrieving revision 1.13
diff -c -3 -p -r1.13 lnk960.em
*** ld/emultempl/lnk960.em	27 Jun 2003 00:38:25 -0000	1.13
--- ld/emultempl/lnk960.em	24 Feb 2005 13:13:23 -0000
*************** lnk960_before_parse (void)
*** 94,105 ****
      {
        env = (char *) getenv (*p);
        if (env)
! 	ldfile_add_library_path (concat (env, "/lib/libcoff", ""), FALSE);
      }
  
    env = (char *) getenv ("I960BASE");
    if (env)
!     ldfile_add_library_path(concat (env, "/lib", ""), FALSE);
  
    ldfile_output_architecture = bfd_arch_i960;
    ldfile_output_machine = bfd_mach_i960_core;
--- 94,105 ----
      {
        env = (char *) getenv (*p);
        if (env)
! 	ldfile_add_library_path (concat (env, "/lib/libcoff", NULL), FALSE);
      }
  
    env = (char *) getenv ("I960BASE");
    if (env)
!     ldfile_add_library_path (concat (env, "/lib", NULL), FALSE);
  
    ldfile_output_architecture = bfd_arch_i960;
    ldfile_output_machine = bfd_mach_i960_core;
*************** lnk960_before_parse (void)
*** 119,126 ****
  	einfo ("%P%F I960BASE and G960BASE not set\n");
      }
  
! 
!   ldfile_add_library_path (concat (name, "/lib", ""), FALSE);
    ldfile_output_architecture = bfd_arch_i960;
    ldfile_output_machine = bfd_mach_i960_core;
  }
--- 119,125 ----
  	einfo ("%P%F I960BASE and G960BASE not set\n");
      }
  
!   ldfile_add_library_path (concat (name, "/lib", NULL), FALSE);
    ldfile_output_architecture = bfd_arch_i960;
    ldfile_output_machine = bfd_mach_i960_core;
  }
  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-24 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 16:17 Updated compile time warning fix: ld/emultempl/lnk960.em Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).