OSDN Git Service

* Makefile.in: Update to use common.opt and lang_opt_files.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jun 2003 12:26:36 +0000 (12:26 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jun 2003 12:26:36 +0000 (12:26 +0000)
commit3272db82faf87eb82c5b56586dffb5b4b675501d
treec305de4bdbbe6e6f7807a99ebcbbb965f0549ad6
parentd493b8a1d36cc7a1dd0a3541c0b2b5779efd4404
* Makefile.in: Update to use common.opt and lang_opt_files.
(c-options.c, c-options.h): Remove.
(options.c, options.h): Add.
* c-opts.c: Include options.h not c-options.h.
* common.opt: New file.
* configure, configure.in: Add lang_opt_files.
* opts.c: Include flags.h and diagnostic.h.
(common_handle_option): New.
(handle_option): Update to recognize common options and all
language-dependent options.
* opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
(struct cl_option): Make flags of type int.
* opts.h: Flag option with front ends to which it applies.
Handle duplicate options.
* toplev.c (filename): Remove.
(independent_decode_option): Don't handle filenames and -quiet.
(process_options, do_compile): Update.
ada:
* Make-lang.in: Update to use options.c and options.h.
* misc.c: Include options.h not aoptions.h.
(gnat_handle_option): Abort on unrecognized switch.
(gnat_init_options): Request Ada switches.
cp:
* Make-lang.in: Remove c-options.o.
f:
* Make-lang.in: Update to use options.c and options.h.
* top.c: Include options.h not f-options.h.
(gnat_handle_option): Abort on unrecognized switch.
(ffe_init_options): From com.c.  Request F77 options.
(ffe_handle_options): Abort on unrecognized switch.
* com.c (ffe_init_options): Move to top.c.
* top.h (fee_init_options): New.
java:
* Make-lang.in: Update to use options.c and options.h.
* lang.c: Include options.h not j-options.h.
(java_handle_option): Abort on unrecognized option.
(java_init_options): Request Java switches.
treelang:
* Make-lang.in: Update to use options.c and options.h.
* tree1.c: Include options.h not t-options.h.
(treelang_init_options): New.
(treelang_handle_option): Abort on unrecognized switch.
* treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
* treetree.h (treelang_init_options): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67941 138bc75d-0d04-0410-961f-82ee72b054a4
28 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/ada/ChangeLog
gcc/ada/Make-lang.in
gcc/ada/misc.c
gcc/c-opts.c
gcc/common.opt [new file with mode: 0644]
gcc/configure
gcc/configure.in
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/f/ChangeLog
gcc/f/Make-lang.in
gcc/f/com.c
gcc/f/top.c
gcc/f/top.h
gcc/java/ChangeLog
gcc/java/Make-lang.in
gcc/java/lang.c
gcc/opts.c
gcc/opts.h
gcc/opts.sh
gcc/toplev.c
gcc/treelang/ChangeLog
gcc/treelang/Make-lang.in
gcc/treelang/tree1.c
gcc/treelang/treetree.c
gcc/treelang/treetree.h