]> git.ipfire.org Git - thirdparty/gcc.git/commit
common.opt: Add driver options.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 16 Aug 2010 10:15:15 +0000 (11:15 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 16 Aug 2010 10:15:15 +0000 (11:15 +0100)
commit603349bf3ddd56a90ad8091a41038f0c38eb4838
treea8e55701ad8152ef11268c33109062e262817e2e
parent4b228e61a98d8bdd1286e536a1f74cdbce50d0ff
common.opt: Add driver options.

* common.opt: Add driver options.
(auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
* doc/options.texi (Driver, RejectDriver): Document.
* gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
print_prog_name, print_multi_directory, print_sysroot,
print_multi_os_directory, print_multi_lib,
print_sysroot_headers_suffix, report_times, combine_flag,
use_pipes, wrapper_string): Remove.
(save_switch, driver_unknown_option_callback,
driver_wrong_lang_callback, driver_post_handling_callback,
driver_handle_option): New.
(spec_lang, last_language_n_infiles): Make file-scope static
instead of local to process_command.
(process_command): Use decode_cmdline_options_to_array and
read_cmdline_option for option processing.  Compute have_c in
prescan of decoded options.
* opt-functions.awk (switch_flags): Handle Driver and
RejectDriver.
(var_type, var_type_struct): Handle Separate options as generating
const char * variables.
* opts-common.c (decode_cmdline_option): Expect CL_COMMON and
CL_TARGET to be passed by caller if required.
(decode_cmdline_options_to_array): Update comment.
* opts.c (complain_wrong_lang): Handle options only valid for the
driver.
(decode_options): Update call to decode_cmdline_options_to_array.
(print_filtered_help): Ignore driver-only options.
(print_specific_help): Ignore CL_DRIVER.
(common_handle_option): Don't call print_specific_help for
CL_DRIVER.
* opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
Update values.

c-family:
* c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.

fortran:
* lang.opt (MDX, MMDX): Mark RejectDriver.

java:
* lang.opt (MD_, MMD_, version): Mark RejectDriver.

From-SVN: r163279
14 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/common.opt
gcc/doc/options.texi
gcc/fortran/ChangeLog
gcc/fortran/lang.opt
gcc/gcc.c
gcc/java/ChangeLog
gcc/java/lang.opt
gcc/opt-functions.awk
gcc/opts-common.c
gcc/opts.c
gcc/opts.h