aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-06-05 06:12:40 +0000
committerAlan Modra <amodra@gmail.com>2006-06-05 06:12:40 +0000
commit87aa7f19be683da7463abd0baf080580d3c50e9a (patch)
treeaf75ac5a840a3aa7536eb9435b7df01c20061c30 /ld/ldlang.c
parentcae6199cc267116c100bc8bb5b7e00fbd18d44f6 (diff)
downloadgdb-87aa7f19be683da7463abd0baf080580d3c50e9a.zip
gdb-87aa7f19be683da7463abd0baf080580d3c50e9a.tar.gz
gdb-87aa7f19be683da7463abd0baf080580d3c50e9a.tar.bz2
* ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 7b026b0..e7fa5c7 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))