diff options
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index c533ca3..2c8fdde 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -614,11 +614,11 @@ Warn when an optimization pass is disabled. Werror Common Var(warnings_are_errors) -Treat all warnings as errors. +Turn all warnings into errors. Werror= Common Joined -Treat specified warning as error. +Turn the specified warning into an error. Wextra Common Var(extra_warnings) Warning @@ -693,6 +693,14 @@ Does nothing. Preserved for backward compatibility. Wmissing-noreturn Common Warning Alias(Wsuggest-attribute=noreturn) +Wmusttail-local-addr +Common Var(warn_musttail_local_addr) Init(1) Warning +Warn about passing a pointer/reference to a local or temporary variable to a musttail call argument. + +Wmaybe-musttail-local-addr +Common Var(warn_maybe_musttail_local_addr) Warning EnabledBy(Wextra) +Warn about pointer/reference to a local or temporary variable possibly escaping to a musttail call. + Wodr Common Var(warn_odr_violations) Init(1) Warning Warn about some C++ One Definition Rule violations during link time optimization. @@ -885,6 +893,18 @@ Common Var(warn_too_many_conditions) Init(1) Warning Warn when a conditional has too many terms and condition coverage profiling gives up instrumenting the expression. +fpath-coverage-limit= +Common RejectNegative Joined UInteger Var(path_coverage_limit) Init(250000) +-fpath-coverage-limit=<number> Don't instrument functions path count exceeding +<number>. + +Wcoverage-too-many-paths +Common Var(warn_too_many_paths) Init(1) Warning +Warn if a function exceeds the number of paths (controlled by +-fpath-coverage-limit) and path coverage give up instrumenting the function. +The limit is approximate and conservative and coverage might give up even if +the actual number is slightly below the limit. + Wmissing-profile Common Var(warn_missing_profile) Init(1) Warning Warn in case profiles in -fprofile-use do not exist. @@ -2035,6 +2055,7 @@ Enum(ilsop_fn) String(memset) Value(ILSOP_MEMSET) Set(4) fcf-protection Common RejectNegative Alias(fcf-protection=,full) +Equivalent to -fcf-protection=full. fcf-protection= Common Joined RejectNegative Enum(cf_protection_level) EnumSet Var(flag_cf_protection) Init(CF_NONE) @@ -2454,6 +2475,10 @@ foptimize-sibling-calls Common Var(flag_optimize_sibling_calls) Optimization Optimize sibling and tail recursive calls. +fpath-coverage +Common Var(path_coverage_flag) +Insert path profiling code. + fpartial-inlining Common Var(flag_partial_inlining) Optimization Perform partial inlining. @@ -3781,7 +3806,7 @@ Common Alias(Wpedantic) pedantic-errors Common Var(flag_pedantic_errors) -Like -pedantic but issue them as errors. +Like -pedantic but issue errors instead of warnings. pg Driver |