aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
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/common.opt
parent8e7a6ed68c18117b0b248bccd932b5a477d2f8c2 (diff)
downloadgcc-d5478783983705a1044961df3c3d59f2ff3d52dc.zip
gcc-d5478783983705a1044961df3c3d59f2ff3d52dc.tar.gz
gcc-d5478783983705a1044961df3c3d59f2ff3d52dc.tar.bz2
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/common.opt')
-rw-r--r--gcc/common.opt66
1 files changed, 55 insertions, 11 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 551c335..71f4578 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -62,6 +62,49 @@ int *param_values
Variable
enum fp_contract_mode flag_fp_contract_mode = FP_CONTRACT_FAST
+; The excess precision specified on the command line, or defaulted by
+; the front end.
+Variable
+enum excess_precision flag_excess_precision_cmdline = EXCESS_PRECISION_DEFAULT
+
+; Nonzero if we should write GIMPLE bytecode for link-time optimization.
+Variable
+int flag_generate_lto
+
+; True to 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, where N is 'larger_than_size'.
+Variable
+bool warn_larger_than
+
+Variable
+HOST_WIDE_INT larger_than_size
+
+; True to warn about any function whose frame size is larger
+; than N bytes.
+Variable
+bool warn_frame_larger_than
+
+Variable
+HOST_WIDE_INT frame_larger_than_size
+
+; Nonzero means we should be saving declaration info into a .X file.
+Variable
+int flag_gen_aux_info = 0
+
+; Nonzero if we are compiling code for a shared library, zero for
+; executable.
+Variable
+int flag_shlib
+
+; The default visibility for all symbols (unless overridden).
+Variable
+enum symbol_visibility default_visibility = VISIBILITY_DEFAULT
+
+; Set to the default thread-local storage (tls) model to use.
+Variable
+enum tls_model flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC
+
###
Driver
@@ -522,14 +565,14 @@ Xpreprocessor
Driver Separate
aux-info
-Common Separate
+Common Separate Var(aux_info_file_name)
-aux-info <file> Emit declaration information into <file>
aux-info=
Common Joined Alias(aux-info)
auxbase
-Common Separate RejectDriver
+Common Separate RejectDriver Var(aux_base_name)
auxbase-strip
Common Separate RejectDriver
@@ -545,11 +588,11 @@ Common Joined
-d<letters> Enable dumps from specific passes of the compiler
dumpbase
-Common Separate
+Common Separate Var(dump_base_name)
-dumpbase <file> Set the file basename to be used for dumps
dumpdir
-Common Separate
+Common Separate Var(dump_dir_name)
-dumpdir <dir> Set the directory name to be used for dumps
dumpmachine
@@ -591,28 +634,28 @@ Common Report Var(align_functions,0) Optimization UInteger
Align the start of functions
falign-functions=
-Common RejectNegative Joined UInteger
+Common RejectNegative Joined UInteger Var(align_functions)
falign-jumps
Common Report Var(align_jumps,0) Optimization UInteger
Align labels which are only reached by jumping
falign-jumps=
-Common RejectNegative Joined UInteger
+Common RejectNegative Joined UInteger Var(align_jumps)
falign-labels
Common Report Var(align_labels,0) Optimization UInteger
Align all labels
falign-labels=
-Common RejectNegative Joined UInteger
+Common RejectNegative Joined UInteger Var(align_labels)
falign-loops
Common Report Var(align_loops,0) Optimization UInteger
Align the start of loops
falign-loops=
-Common RejectNegative Joined UInteger
+Common RejectNegative Joined UInteger Var(align_loops)
fargument-alias
Common Ignore
@@ -1928,7 +1971,7 @@ nostdlib
Driver
o
-Common Driver Joined Separate MissingArgError(missing filename after %qs)
+Common Driver Joined Separate Var(asm_file_name) MissingArgError(missing filename after %qs)
-o <file> Place output into <file>
p
@@ -1943,7 +1986,7 @@ Common Var(pedantic)
Issue warnings needed for strict compliance to the standard
pedantic-errors
-Common
+Common Var(flag_pedantic_errors)
Like -pedantic but issue them as errors
pg
@@ -2003,7 +2046,8 @@ Driver
; C option, but driver must not handle as "-u ndef".
v
-Driver
+Common Driver Var(verbose_flag)
+Enable verbose output
version
Common Var(version_flag) RejectDriver