c-opts.c (complain_wrong_lang, [...]): Remove.
authorNeil Booth <neil@daikokuya.co.uk>
Wed, 25 Jun 2003 20:43:11 +0000 (20:43 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 25 Jun 2003 20:43:11 +0000 (20:43 +0000)
commitf18754d6403e23cb34e62bb6e09a15a357fa2782
tree25f8abe318d6c95cb74e8c8f0c6880e9b296e4bf
parent37f2200463a45c51ccb631f74439475b135907cf
c-opts.c (complain_wrong_lang, [...]): Remove.

* c-opts.c (complain_wrong_lang, write_langs): Remove.
(c_common_handle_option): Complaints about wrong language are
handled in opts.c now.
* opts.c (complain_wrong_lang, write_langs, handle_options): New.
(find_opt): Fix thinko.
(handle_option): Update prototype.  Complain about switches for
a different front end.
* opts.h (lang_names, handle_options): New.
(handle_option): Remove.
* opts.sh: Write out language names array.
* toplev.c (parse_options_and_default_flags): Use handle_options.

From-SVN: r68495
gcc/ChangeLog
gcc/c-opts.c
gcc/opts.c
gcc/opts.h
gcc/opts.sh
gcc/testsuite/g++.old-deja/g++.law/memoized1.C [deleted file]
gcc/testsuite/g++.old-deja/g++.mike/memoize1.C [deleted file]
gcc/toplev.c