diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-10 22:35:13 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-10 22:35:13 +0000 |
commit | 6bd9d862e29cd8444002527aba7daea833ab3e61 (patch) | |
tree | f57929816077a497be812af640de16726bdb0e24 /gcc/toplev.c | |
parent | 18df8ffd69db44738e648ae8bb4c71021df5c4e4 (diff) | |
download | gcc-6bd9d862e29cd8444002527aba7daea833ab3e61.tar.gz |
* common.opt (flag_excess_precision_cmdline, flag_generate_lto,
warn_larger_than, larger_than_size, warn_frame_larger_than,
frame_larger_than_size, flag_gen_aux_info, flag_shlib,
default_visibility, flag_tls_default): New Variable declarations.
(aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
(v): Declare as Common and document here.
* flags.h (default_visibility, flag_generate_lto,
warn_larger_than, larger_than_size, warn_frame_larger_than,
frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
flag_shlib, flag_excess_precision_cmdline): Remove.
(set_Wstrict_aliasing): Update prototype.
* gcc.c (verbose_flag): Remove.
(driver_handle_option): Add diagnostic_context parameter. Don't
handle OPT_v explicitly here. Set verbose_flag to 1 rather than
incrementing it.
* opts-common.c (handle_option): Pass dc to handler.
* opts.c (warn_larger_than, larger_than_size,
warn_frame_larger_than, frame_larger_than_size,
default_visibility): Remove.
(common_handle_option): Add diagnostic_context parameter.
(set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
gcc_options parameters.
(lang_handle_option, target_handle_option, read_cmdline_options,
decode_options): Add diagnostic_context parameters.
(finish_options): Access option state through opts pointer where
possible.
(common_handle_option): Access option state through opts pointer
where possible. Do not set local static variable verbose. Do not
explicitly handle OPT_v, OPT_Wstrict_aliasing_,
OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
OPT_fwhopr_. Do not explicitly set .opt file variables for
OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic
context.
(set_Wstrict_aliasing): Add gcc_options parameter.
* opts.h (struct cl_option_handler_func): Add diagnostic_context
parameter to handler.
(decode_options): Add diagnostic_context parameter.
* toplev.c (dump_base_name, dump_dir_name, aux_base_name,
asm_file_name, flag_generate_lto, flag_gen_aux_info,
aux_info_file_name, flag_shlib, flag_tls_default,
flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
(toplev_main): Pass global_dc to decode_options.
* toplev.h (dump_base_name, dump_dir_name, aux_base_name,
aux_info_file_name, asm_file_name): Remove.
* tree.h (flag_tls_default): Remove.
c-family:
* c-common.c (parse_optimize_options): Pass global_dc to
decode_options.
* c-opts.c (c_common_handle_option): Pass &global_options to
set_Wstrict_aliasing.
* c.opt (v): Don't mark Common or document here.
fortran:
* cpp.c (asm_file_name): Don't declare here.
objc:
* objc-act.c (dump_base_name): Don't declare here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166565 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 49 |
1 files changed, 2 insertions, 47 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 596fb89832e..0a41c02d085 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -140,18 +140,6 @@ const char *main_input_filename; to optimize in process_options (). */ #define AUTODETECT_VALUE 2 -/* Name to use as base of names for dump output files. */ - -const char *dump_base_name; - -/* Directory used for dump output files. */ - -const char *dump_dir_name; - -/* Name to use as a base for auxiliary output files. */ - -const char *aux_base_name; - /* Prefix for profile data files */ const char *profile_data_prefix; @@ -165,10 +153,6 @@ int rtl_dump_and_exit; int flag_print_asm_name; enum graph_dump_types graph_dump_format; -/* Name for output file of assembly code, specified with -o. */ - -const char *asm_file_name; - /* True if this is the lto front end. This is used to disable gimple generation and lowering passes that are normally run on the output of a front end. These passes must be bypassed for lto since @@ -176,10 +160,6 @@ const char *asm_file_name; bool in_lto_p = false; -/* Nonzero if we should write GIMPLE bytecode for link-time optimization. */ - -int flag_generate_lto; - /* The FUNCTION_DECL for the function currently being compiled, or 0 if between functions. */ tree current_function_decl; @@ -198,19 +178,6 @@ unsigned local_tick; /* -f flags. */ -/* Nonzero means we should be saving declaration info into a .X file. */ - -int flag_gen_aux_info = 0; - -/* Specified name of aux-info file. */ - -const char *aux_info_file_name; - -/* Nonzero if we are compiling code for a shared library, zero for - executable. */ - -int flag_shlib; - /* Generate code for GNU or NeXT Objective-C runtime environment. */ #ifdef NEXT_OBJC_RUNTIME @@ -219,19 +186,6 @@ int flag_next_runtime = 1; int flag_next_runtime = 0; #endif -/* Set to the default thread-local storage (tls) model to use. */ - -enum tls_model flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC; - -/* Set the default for excess precision. */ - -enum excess_precision flag_excess_precision_cmdline = EXCESS_PRECISION_DEFAULT; - -/* Nonzero means change certain warnings into errors. - Usually these are warnings about failure to conform to some standard. */ - -int flag_pedantic_errors = 0; - /* Nonzero means make permerror produce warnings instead of errors. */ int flag_permissive = 0; @@ -2402,7 +2356,8 @@ toplev_main (int argc, char **argv) /* Parse the options and do minimal processing; basically just enough to default flags appropriately. */ decode_options (&global_options, &global_options_set, - save_decoded_options, save_decoded_options_count); + save_decoded_options, save_decoded_options_count, + global_dc); init_local_tick (); |