diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-11-24 00:54:26 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-11-24 00:54:26 +0000 |
commit | 299404a1ec3d2dc7e2b19ea79c3e9f3552b6215d (patch) | |
tree | 083c8faf230cd5683309b75bc0500baa489ad7cc /gcc/flags.h | |
parent | c98cd5bff60fa2a0bd31fcdbd2f0758a32639c09 (diff) | |
download | gcc-299404a1ec3d2dc7e2b19ea79c3e9f3552b6215d.zip gcc-299404a1ec3d2dc7e2b19ea79c3e9f3552b6215d.tar.gz gcc-299404a1ec3d2dc7e2b19ea79c3e9f3552b6215d.tar.bz2 |
common.opt (initial_max_fld_align, [...]): New Variable entries.
* common.opt (initial_max_fld_align, flag_debug_asm,
flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
flag_print_asm_name, graph_dump_format, help_printed,
help_columns, flag_opts_finished): New Variable entries.
(fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
frandom-seed=): Mark deferred.
(fsched-verbose=): Use UInteger and Var.
* flags.h (set_struct_debug_option, flag_print_asm_name,
rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
graph_dump_format): Don't declare here.
* haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
* opts-global.c: Include dbgcnt.h and debug.h.
(decode_options): Pass location to finish_options.
(handle_common_deferred_options): Check flag_dump_all_passed.
Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
OPT_fstack_limit.
* opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
(set_struct_debug_option): Add location_t parameter. Update
recursive call. Use error_at.
(default_options_optimization): Use error_at.
(finish_options): Add location_t parameter. Use
opts->x_flag_opts_finished instead of first_time_p. Use
opts->x_optimize instead of optimize. Use error_at. Pass
location to inform.
(print_filtered_help): Use opts->x_help_printed to track what
options have been printed.
(print_specific_help): Use opts->x_help_columns to track number of
columns.
(common_handle_option): Pass locations and gcc_options pointers to
more functions. Use warning_at instead of fnotice and warning.
Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
OPT_fdebug_prefix_map_. Use error_at. Set
opts->x_initial_max_fld_align; don't set maximum_field_alignment.
Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
OPT_fsched_verbose_.
(handle_param): Add location_r parameter. Use error_at.
(set_debug_level): Add location_r parameter. Use error_at and
warning_at.
(setup_core_dumping): Add diagnostic_context parameter.
(decode_d_option): Add gcc_options, location_t and
diagnostic_context parameters and use them instead of global
state. Use warning_at.
(enable_warning_as_error): Use error_at.
* opts.h (finish_options): Update prototype.
(set_struct_debug_option): Declare here.
* rtl.h (fix_sched_param): Remove.
* stor-layout.c (initial_max_fld_align): Remove.
* toplev.c (rtl_dump_and_exit, flag_print_asm_name,
graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
(process_options): Set maximum_field_alignment.
* tree.h (initial_max_fld_align) Don't declare here.
* Makefile.in (opts.o, opts-global.o): Update dependencies.
c-family:
* c-opts.c (c_common_handle_option): Pass location to
set_struct_debug_option.
testsuite:
* gcc.dg/opts-5.c: New test.
From-SVN: r167106
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 47a93a9..a3e277c 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -33,8 +33,6 @@ extern const char *const debug_type_names[]; extern void strip_off_ending (char *, int); extern int base_of_path (const char *path, const char **base_out); -extern void set_struct_debug_option (struct gcc_options *opts, - const char *value); /* Run the second compilation of -fcompare-debug. Not defined using Var in common.opt because this is used in Ada code and so must be @@ -60,18 +58,9 @@ extern bool fast_math_flags_struct_set_p (struct cl_optimization *); set to the default value of -Wstrict_aliasing=level. */ extern void set_Wstrict_aliasing (struct gcc_options *opts, int onoff); - -/* Nonzero for -dp: annotate the assembly with a comment describing the - pattern and alternative used. */ - -extern int flag_print_asm_name; /* Now the symbols that are set with `-f' switches. */ -/* Nonzero if we are only using compiler to check syntax errors. */ - -extern int rtl_dump_and_exit; - /* True if printing into -fdump-final-insns= dump. */ extern bool final_insns_dump_p; @@ -80,20 +69,9 @@ extern bool final_insns_dump_p; extern int flag_permissive; -/* -dA causes debug information to be produced in - the generated assembly code (to make it more readable). This option - is generally only of use to those who actually need to read the - generated assembly code (perhaps while debugging the compiler itself). - Currently, this switch is only used by dwarfout.c; however, it is intended - to be a catchall for printing debug information in the assembler file. */ - -extern int flag_debug_asm; - /* Generate code for GNU or NeXT Objective-C runtime environment. */ extern int flag_next_runtime; - -extern int flag_dump_rtl_in_asm; /* Other basic status info about current function. */ @@ -142,8 +120,6 @@ extern struct target_flag_state *this_target_flag_state; /* Nonzero if we dump in VCG format, not plain text. */ extern int dump_for_graph; -extern enum graph_dump_types graph_dump_format; - extern enum stack_check_type flag_stack_check; /* Returns TRUE if generated code should match ABI version N or |