diff options
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 2da0286..b9e74cd 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. @@ -3797,7 +3805,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 |