OSDN Git Service

* gcc.c (main): Don't warn about unused -B prefixes
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Sep 2000 16:40:12 +0000 (16:40 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Sep 2000 16:40:12 +0000 (16:40 +0000)
        (unused_prefix_warnings): remove

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36320 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index ec9d501..bbb3bfc 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-11  DJ Delorie  <dj@redhat.com>
+
+       * gcc.c (main): Don't warn about unused -B prefixes
+       (unused_prefix_warnings): remove
+
 2000-09-11  Kazu Hirata  <kazu@hxi.com>
 
        * integrate.c: Fix formatting.
index e87b143..6324b43 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -243,7 +243,6 @@ static void add_assembler_option    PARAMS ((const char *, int));
 static void add_linker_option          PARAMS ((const char *, int));
 static void process_command            PARAMS ((int, const char *const *));
 static int execute                     PARAMS ((void));
-static void unused_prefix_warnings     PARAMS ((struct path_prefix *));
 static void clear_args                 PARAMS ((void));
 static void fatal_error                        PARAMS ((int));
 static void set_input                  PARAMS ((const char *));
@@ -2388,32 +2387,6 @@ add_prefix (pprefix, prefix, component, priority, require_machine_suffix, warn)
   pl->next = (*prev);
   (*prev) = pl;
 }
-
-/* Print warnings for any prefixes in the list PPREFIX that were not used.  */
-
-static void
-unused_prefix_warnings (pprefix)
-     struct path_prefix *pprefix;
-{
-  struct prefix_list *pl = pprefix->plist;
-
-  while (pl)
-    {
-      if (pl->used_flag_ptr != 0 && !*pl->used_flag_ptr)
-       {
-         if (pl->require_machine_suffix && machine_suffix)
-           error ("file path prefix `%s%s' never used", pl->prefix,
-                  machine_suffix);
-         else
-           error ("file path prefix `%s' never used", pl->prefix);
-
-         /* Prevent duplicate warnings.  */
-         *pl->used_flag_ptr = 1;
-       }
-
-      pl = pl->next;
-    }
-}
 \f
 /* Execute the command specified by the arguments on the current line of spec.
    When using pipes, this includes several piped-together commands
@@ -5553,10 +5526,6 @@ main (argc, argv)
       linker_was_run = (tmp != execution_count);
     }
 
-  /* Warn if a -B option was specified but the prefix was never used.  */
-  unused_prefix_warnings (&exec_prefixes);
-  unused_prefix_warnings (&startfile_prefixes);
-
   /* If options said don't run linker,
      complain about input files to be given to the linker.  */