2002-10-08 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Oct 2002 20:12:45 +0000 (20:12 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Oct 2002 20:12:45 +0000 (20:12 +0000)
* 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.

ld/ChangeLog
ld/ldlang.c
ld/ldlang.h
ld/lexsup.c

index c2575d53f1ada91f96a461dd2fcf77b7cdfea7a9..48764f52dc750326288ef5a96d998b137bcd3274 100644 (file)
@@ -1,3 +1,10 @@
+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
index a7a393298b6e26c30f4d00e4b1858b7e47ba99dd..1df05321fb3670a4ae39c4ceace1103ce5a2d1b6 100644 (file)
@@ -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
index e587d67c878f8cee6e0e7061618decac53e99423..cb4b6d332dc1faf208ecea664440107e8c22cb92 100644 (file)
@@ -483,6 +483,5 @@ extern void lang_register_vers_node
           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
index 69b1af28bbc1a771a66e6d6d89f5b03c31f71b43..bfb0feaaf7e590ec2552da490f8c06028adb44bf 100644 (file)
@@ -796,8 +796,6 @@ parse_args (argc, argv)
          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:
This page took 0.032447 seconds and 4 git commands to generate.