opts.h (struct cl_option_handler_func): Make handler take cl_decoded_option structure...
commit481e1176d7614dcd519e50c488a155312280913e
authorJoseph Myers <joseph@codesourcery.com>
Wed, 11 Aug 2010 10:04:43 +0000 (11 11:04 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 11 Aug 2010 10:04:43 +0000 (11 11:04 +0100)
tree48318d1dff4b32ecb5516a974e71f0e815752ba3
parent3abeaf8f89f246f481c869a09d0715a2762bde28
opts.h (struct cl_option_handler_func): Make handler take cl_decoded_option structure as parameter, not individual elements.

* opts.h (struct cl_option_handler_func): Make handler take
cl_decoded_option structure as parameter, not individual elements.
(struct cl_option_handlers): Make callbacks take cl_decoded_option
structure as parameter, not individual elements.
(handle_option): Take cl_decoded_option structure as parameter,
not individual elements.
(handle_generated_option): Declare.
* opts-common.c (handle_option): Take cl_decoded_option structure
as parameter, not individual elements.  Update calls to callback
and handler functions.
(handle_generated_option): New.
(read_cmdline_option): Update calls to callback functions and
handle_option.
* opts.c (common_handle_option, complain_wrong_lang,
unknown_option_callback, post_handling_callback,
lang_handle_option, target_handle_option): Take cl_decoded_option
structure as parameter, not individual elements.
(lang_handle_option, target_handle_option, common_handle_option):
Assert option has at most one argument.
(enable_warning_as_error): Call handle_generated_option instead of
handle_option.  Do not pass -Werror argument as argument of
generated option.

c-family:
* c-opts.c (c_common_handle_option): Call handle_generated_option
instead of handle_option.

From-SVN: r163095
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/opts-common.c
gcc/opts.c
gcc/opts.h