This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Updated compile time warning fix: ld/emultempl/lnk960.em
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 24 Feb 2005 13:26:47 +0000
- Subject: Updated compile time warning fix: ld/emultempl/lnk960.em
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;
}