summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-11-10 22:35:13 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-11-10 22:35:13 +0000
commitd5478783983705a1044961df3c3d59f2ff3d52dc (patch)
treef57929816077a497be812af640de16726bdb0e24 /gcc/flags.h
parent8e7a6ed68c18117b0b248bccd932b5a477d2f8c2 (diff)
common.opt (flag_excess_precision_cmdline, [...]): New Variable declarations.
* 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. From-SVN: r166565
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h44
1 files changed, 3 insertions, 41 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 1125440ea3f..7aa9ff14be3 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -49,9 +49,6 @@ extern bool use_gnu_debug_info_extensions;
an actual variable not a macro. */
extern int flag_compare_debug;
-/* The default visibility for all symbols (unless overridden). */
-extern enum symbol_visibility default_visibility;
-
/* Global visibility options. */
extern struct visibility_flags visibility_options;
@@ -62,31 +59,14 @@ extern struct visibility_flags visibility_options;
extern bool in_lto_p;
-/* Nonzero if we should write GIMPLE bytecode for link-time optimization. */
-
-extern int flag_generate_lto;
-
-/* Used to set the level of -Wstrict-aliasing, when no level is specified.
- The external way to set the default level is to use
+/* Used to set the level of -Wstrict-aliasing in OPTS, when no level
+ is specified. The external way to set the default level is to use
-Wstrict-aliasing=level.
ONOFF is assumed to take value 1 when -Wstrict-aliasing is specified,
and 0 otherwise. After calling this function, wstrict_aliasing will be
set to the default value of -Wstrict_aliasing=level. */
-extern void set_Wstrict_aliasing (int onoff);
-
-/* Nonzero means warn about any objects definitions whose size is larger
- than N bytes. Also want about function definitions whose returned
- values are larger than N bytes. The value N is in `larger_than_size'. */
-
-extern bool warn_larger_than;
-extern HOST_WIDE_INT larger_than_size;
-
-/* Nonzero means warn about any function whose frame size is larger
- than N bytes. */
-
-extern bool warn_frame_larger_than;
-extern HOST_WIDE_INT frame_larger_than_size;
+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. */
@@ -99,28 +79,14 @@ extern int flag_print_asm_name;
extern int rtl_dump_and_exit;
-/* Nonzero means we should save auxiliary info into a .X file. */
-
-extern int flag_gen_aux_info;
-
/* True if printing into -fdump-final-insns= dump. */
extern bool final_insns_dump_p;
-/* Nonzero means change certain warnings into errors.
- Usually these are warnings about failure to conform to some standard. */
-
-extern int flag_pedantic_errors;
-
/* Nonzero means make permerror produce warnings instead of errors. */
extern int flag_permissive;
-/* Nonzero if we are compiling code for a shared library, zero for
- executable. */
-
-extern int flag_shlib;
-
/* -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
@@ -135,10 +101,6 @@ extern int flag_debug_asm;
extern int flag_next_runtime;
extern int flag_dump_rtl_in_asm;
-
-/* The excess precision specified on the command line, or defaulted by
- the front end. */
-extern enum excess_precision flag_excess_precision_cmdline;
/* Other basic status info about current function. */