+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.
+
2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
* pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
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 *
{
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
struct bfd_elf_version_deps *));
boolean unique_section_p PARAMS ((const char *));
extern void lang_add_unique PARAMS ((const char *));
-extern boolean lang_file_exists PARAMS ((const char *));
#endif
link_info.optimize = strtoul (optarg, NULL, 0) ? true : false;
break;
case 'o':
- if (lang_file_exists (optarg))
- einfo ("%P%F: output file %s is also an input file!\n", optarg);
lang_add_output (optarg, 0);
break;
case OPTION_OFORMAT: