diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-16 10:15:15 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-16 10:15:15 +0000 |
commit | e28aa11462a447d3a30e8a53a7058d1158e33e5f (patch) | |
tree | a8e55701ad8152ef11268c33109062e262817e2e /gcc/c-family | |
parent | 9a14ba4fd861436294514c3008d03f1f77de058a (diff) | |
download | gcc-e28aa11462a447d3a30e8a53a7058d1158e33e5f.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c.opt | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 56aabb45665..80034e6d6ec 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2010-08-16 Joseph Myers <joseph@codesourcery.com> + + * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. + 2010-08-12 Joseph Myers <joseph@codesourcery.com> * c.opt (MD, MMD): Change to MDX and MMDX. diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 98569cbae12..d1aa10e1887 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -73,7 +73,7 @@ C ObjC C++ ObjC++ Generate make dependencies MDX -C ObjC C++ ObjC++ Separate MissingArgError(missing filename after %qs) +C ObjC C++ ObjC++ RejectDriver Separate MissingArgError(missing filename after %qs) -MD Generate make dependencies and compile MF @@ -89,7 +89,7 @@ C ObjC C++ ObjC++ Like -M but ignore system header files MMDX -C ObjC C++ ObjC++ Separate MissingArgError(missing filename after %qs) +C ObjC C++ ObjC++ RejectDriver Separate MissingArgError(missing filename after %qs) -MMD Like -MD but ignore system header files MP @@ -926,7 +926,7 @@ C ObjC C++ ObjC++ Joined Separate -iwithprefixbefore <dir> Add <dir> to the end of the main include path lang-asm -C Undocumented +C Undocumented RejectDriver nostdinc C ObjC C++ ObjC++ |