Don't use filename_cmp in plugin test DSO.
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 1 Mar 2011 22:55:35 +0000 (22:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 1 Mar 2011 22:55:35 +0000 (22:55 +0000)
2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12529
* testplug.c: Don't include "filenames.h".
(onclaim_file): Don't use filename_cmp.

ld/ChangeLog
ld/testplug.c

index 8ed86f3bf4002eaee23e7f2cd4fda7e125159e3b..4f5f2c8d4c29e606238e2482205069d85ea682ae 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/12529
+       * testplug.c: Don't include "filenames.h".
+       (onclaim_file): Don't use filename_cmp.
+
 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
 
        * emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp.
index 9e1561c40fd0b73342d634774a032afd9c61d45a..f04df10fa051061262cb77fcc4d38e1acdfd2b11 100644 (file)
@@ -23,7 +23,6 @@
 #include "plugin-api.h"
 /* For ARRAY_SIZE macro only - we don't link the library itself.  */
 #include "libiberty.h"
-#include "filenames.h"
 
 extern enum ld_plugin_status onload (struct ld_plugin_tv *tv);
 static enum ld_plugin_status onclaim_file (const struct ld_plugin_input_file *file,
@@ -520,7 +519,7 @@ onclaim_file (const struct ld_plugin_input_file *file, int *claimed)
   claim_file_t *claimfile = claimfiles_list;
   while (claimfile)
     {
-      if (!filename_cmp (file->name, claimfile->file.name))
+      if (!strcmp (file->name, claimfile->file.name))
        break;
       claimfile = claimfile->next;
     }