aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-10-14 22:22:32 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-10-14 18:22:32 -0400
commit5dff71ed6d75a74c7bc7129db4a7696d0f6c6125 (patch)
tree14f61c562a235283676a5aa34e70bc3979ce388a
parentbe929cff4ce50267572625e9574a25f0d59133a9 (diff)
downloadgcc-5dff71ed6d75a74c7bc7129db4a7696d0f6c6125.zip
gcc-5dff71ed6d75a74c7bc7129db4a7696d0f6c6125.tar.gz
gcc-5dff71ed6d75a74c7bc7129db4a7696d0f6c6125.tar.bz2
* toplev.c (main): Don't complain about options for other languages.
From-SVN: r29987
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 29f3c97..0912479 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 2e5a508..d37150d 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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. */