From: Alan Modra Date: Mon, 5 Jun 2006 06:12:40 +0000 (+0000) Subject: * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=87aa7f19be683da7463abd0baf080580d3c50e9a;p=deliverable%2Fbinutils-gdb.git * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index cacf8fa595..ef759d6010 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2006-06-05 Alan Modra + + * ldlang.c (lookup_name): Delete dead code. Remove FIXMEs. + 2006-06-03 Alan Modra * emultempl/elf32.em (global_found): Make it a pointer. diff --git a/ld/ldlang.c b/ld/ldlang.c index 7b026b0f6b..e7fa5c7f44 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2214,12 +2214,9 @@ lookup_name (const char *name) /* Use the local_sym_name as the name of the file that has already been loaded as filename might have been transformed via the search directory lookup mechanism. */ - const char * filename = search->local_sym_name; + const char *filename = search->local_sym_name; - if (filename == NULL && name == NULL) - return search; if (filename != NULL - && name != NULL && strcmp (filename, name) == 0) break; } @@ -2229,11 +2226,8 @@ lookup_name (const char *name) default_target, FALSE); /* If we have already added this file, or this file is not real - (FIXME: can that ever actually happen?) or the name is NULL - (FIXME: can that ever actually happen?) don't add this file. */ - if (search->loaded - || ! search->real - || search->filename == NULL) + don't add this file. */ + if (search->loaded || !search->real) return search; if (! load_symbols (search, NULL))