* toplev.c (main): Don't complain about options for other languages.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 14 Oct 1999 22:22:32 +0000 (22:22 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 14 Oct 1999 22:22:32 +0000 (18:22 -0400)
From-SVN: r29987

gcc/ChangeLog
gcc/toplev.c

index 29f3c97..0912479 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct 14 13:54:25 1999  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * toplev.c (main): Don't complain about options for other languages.
+
 Thu Oct 14 10:51:49 1999  Richard Henderson  <rth@cygnus.com>
 
        * m68k.md (zero_extendsidi2): Add missing output reload constraint.
index 2e5a508..d37150d 100644 (file)
@@ -5387,15 +5387,15 @@ main (argc, argv)
         only be decoded in a language independent way if the were not
         decoded in a langauge specific way, which is why 'lang_processed'
         is passed in.  */
-      indep_processed = independent_decode_option (argc - i, argv + i, lang_processed);
+      indep_processed = independent_decode_option (argc - i, argv + i,
+                                                  lang_processed);
 
       if (lang_processed || indep_processed)
-       i += lang_processed > indep_processed ? lang_processed : indep_processed;
+       i += (lang_processed > indep_processed
+             ? lang_processed : indep_processed);
       else
-       {
-         error ("Invalid option `%s'", argv[i]);
-         i++;
-       }
+       /* This option applies to some other language; ignore it.  *
+       i++;
     }
 
   /* Checker uses the frame pointer.  */