diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-03-01 22:55:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-03-01 22:55:35 +0000 |
commit | f4c37f565534febceafa8587b932bb83bfda9340 (patch) | |
tree | 1458923a42c077933673f5244121eb584bc88ee5 | |
parent | 5ce6495039d4449a0770331ab29d3d2dfe8bae71 (diff) | |
download | gdb-f4c37f565534febceafa8587b932bb83bfda9340.zip gdb-f4c37f565534febceafa8587b932bb83bfda9340.tar.gz gdb-f4c37f565534febceafa8587b932bb83bfda9340.tar.bz2 |
Don't use filename_cmp in plugin test DSO.
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.
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testplug.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8ed86f3..4f5f2c8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/testplug.c b/ld/testplug.c index 9e1561c..f04df10 100644 --- a/ld/testplug.c +++ b/ld/testplug.c @@ -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; } |