This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Move handle_option and read_cmdline_option to opts-common.c
- From: Andrew Haley <aph at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 23 Jun 2010 08:28:29 +0100
- Subject: Re: Move handle_option and read_cmdline_option to opts-common.c
- References: <Pine.LNX.4.64.1006230049250.28257@digraph.polyomino.org.uk>
On 06/23/2010 01:50 AM, Joseph S. Myers wrote:
> 2010-06-22 Joseph Myers <joseph@codesourcery.com>
>
> * coretypes.h (struct cl_option_handlers): Declare.
> * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
> * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
> * langhooks-def.h (lhd_handle_option): Declare.
> (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
> * langhooks.c (lhd_handle_option): New.
> * langhooks.h (struct lang_hooks): Update prototype and return
> value type of handle_option hook.
> * optc-gen.awk: Generate target_flags_explicit definition for the
> driver.
> * opts-common.c: Include diagnostic.h.
> (handle_option): Move from opts.c. Update prototype and return
> value type. Use handlers structure.
> (read_cmdline_option): Move from opts.c. Update prototype. Use
> handlers structure.
> (set_option): Move from opts.c.
> * opts.c (common_handle_option): Update prototype and return value
> type. Update calls to handle_option and enable_warning_as_error.
> (unknown_option_callback, post_handling_callback,
> lang_handle_option, target_handle_option): New.
> (handle_option, read_cmdline_option): Move to opts-common.c.
> (read_cmdline_options): Update prototype. Update call to
> read_cmdline_option.
> (decode_options): Initialize and use handlers structure.
> (set_option): Move to opts-common.c.
> (enable_warning_as_error): Update prototype. Update call to
> handle_option.
> * opts.h (struct cl_option_handler_func, struct
> cl_option_handlers): New.
> (handle_option, enable_warning_as_error): Update prototypes.
> (read_cmdline_option): Declare.
> * Makefile.in (opts-common.o): Update dependencies.
OK for Java.
Andrew.