diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-10-08 20:12:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-10-08 20:12:45 +0000 |
commit | c04c958616ae94eed97dd1575ba39ad24b0b1db0 (patch) | |
tree | 0ca4321daebc1124b43e90fc8298c8cc58c627a1 /ld/ldlang.c | |
parent | 299bf75951d7a50e5c0dc9f9a33813d5e5589f8b (diff) | |
download | gdb-c04c958616ae94eed97dd1575ba39ad24b0b1db0.zip gdb-c04c958616ae94eed97dd1575ba39ad24b0b1db0.tar.gz gdb-c04c958616ae94eed97dd1575ba39ad24b0b1db0.tar.bz2 |
2002-10-08 H.J. Lu <hjl@gnu.org>
* ldlang.c (lang_file_exist): Removed.
(new_afile): Revert the last change.
* ldlang.h (lang_file_exist): Removed.
* lexsup.c (parse_args): Revert the last change.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index a7a3932..1df0532 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -459,27 +459,6 @@ lang_list_init (list) list->tail = &list->head; } -/* Check if a file exist in the input_file_chain list. */ - -boolean -lang_file_exists (name) - const char *name; -{ - lang_input_statement_type *p; - - if (name == NULL) - return false; - - for (p = (lang_input_statement_type *) input_file_chain.head; - p != (lang_input_statement_type *) NULL; - p = (lang_input_statement_type *) p->next_real_file) - if (p->filename != (char *) NULL - && strcmp (p->filename, name) == 0) - return true; - - return false; -} - /* Build a new statement node for the parse tree. */ static lang_statement_union_type * @@ -515,11 +494,6 @@ new_afile (name, file_type, target, add_to_list) { lang_input_statement_type *p; - /* We abort if an input file name is identical with the output file name. */ - if (name != NULL && output_filename != NULL - && !strcmp (name, output_filename)) - einfo ("%P%F: input file %s is also the output file!\n", name); - if (add_to_list) p = new_stat (lang_input_statement, stat_ptr); else |