This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Miscellaneous opts.c global state avoidance
- From: Diego Novillo <dnovillo at google dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Nov 2010 18:55:35 -0500
- Subject: Re: Miscellaneous opts.c global state avoidance
- References: <Pine.LNX.4.64.1011222353430.26790@digraph.polyomino.org.uk>
On Mon, Nov 22, 2010 at 18:54, Joseph S. Myers <joseph@codesourcery.com> wrote:
> 2010-11-22 ÂJoseph Myers Â<joseph@codesourcery.com>
>
> Â Â Â Â* common.opt (exit_after_options, write_symbols, debug_info_level,
> Â Â Â Âuse_gnu_debug_info_extensions): New Variable entries.
> Â Â Â Â(fprofile-dir=): Use Var.
> Â Â Â Â* flag-types.h (enum debug_info_level): Rename to enum
> Â Â Â Âdebug_info_levels.
> Â Â Â Â* flags.h (write_symbols, debug_info_level,
> Â Â Â Âuse_gnu_debug_info_extensions): Remove declarations.
> Â Â Â Â* opts.c (exit_after_options, write_symbols, debug_info_level):
> Â Â Â ÂRemove.
> Â Â Â Â(set_struct_debug_option): Make static variables const.
> Â Â Â Â(use_gnu_debug_info_extensions): Remove.
> Â Â Â Â(set_debug_level, print_filtered_help, print_specific_help,
> Â Â Â Âfast_math_flags_set_p): Take gcc_options parameters and use them
> Â Â Â Âin place of global variables.
> Â Â Â Â(print_filtered_help): Make new_help non-static.
> Â Â Â Â(print_specific_help): Update call to print_filtered_help.
> Â Â Â Â(common_handle_option): Update calls to print_specific_help. ÂUse
> Â Â Â Âgcc_options structure for more settings. ÂMake --help table
> Â Â Â Âconst. ÂDon't handle OPT_fprofile_dir_ here. ÂUpdate calls to
> Â Â Â Âset_debug_level.
> Â Â Â Â* toplev.c (profile_data_prefix): Remove.
> Â Â Â Â* toplev.h (profile_data_prefix, exit_after_options): Remove
> Â Â Â Âdeclarations.
> Â Â Â Â(fast_math_flags_set_p): Update prototype.
> Â Â Â Â* cppbuiltin.c (define_builtin_macros_for_compilation_flags):
> Â Â Â ÂUpdate call to fast_math_flags_set_p.
>
> objc:
> 2010-11-22 ÂJoseph Myers Â<joseph@codesourcery.com>
>
> Â Â Â Â* objc-act.c (write_symbols): Don't declare here.
OK.
Diego.