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]

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;
  }
  


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