(print_switch_values): Ignore -o.
authorDoug Evans <dje@gnu.org>
Fri, 17 May 1996 19:55:44 +0000 (19:55 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 17 May 1996 19:55:44 +0000 (19:55 +0000)
From-SVN: r12014

gcc/toplev.c

index 8b084d3cd1ef166fc7cd83a7f3043de95b6d251d..5d5eb45ac1f48b12c69e46856bfb745df16eb40d 100644 (file)
@@ -4141,10 +4141,16 @@ print_switch_values (file, pos, max, indent, sep, term)
   pos = print_single_switch (file, pos, max, indent, *indent ? " " : "", term,
                             "options passed: ", "");
 
-  for (p = &save_argv[1]; *p != (char *)0; p++)
+  for (p = &save_argv[1]; *p != NULL; p++)
     if (**p == '-')
       {
        /* Ignore these.  */
+       if (strcmp (*p, "-o") == 0)
+         {
+           if (p[1] != NULL)
+             p++;
+           continue;
+         }
        if (strcmp (*p, "-quiet") == 0)
          continue;
        if (strcmp (*p, "-version") == 0)