diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-11 12:29:53 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-11 12:29:53 +0000 |
commit | 43d60d6437eb2d2213344f35f78994372ca22d00 (patch) | |
tree | b9d5e6003412755a9b91c08dbafc60f251457051 /gcc/common.opt | |
parent | 80373d81743bf073adc43299fb4679b8f03c8f0f (diff) | |
download | gcc-43d60d6437eb2d2213344f35f78994372ca22d00.tar.gz |
* doc/invoke.texi (Wsuggest-attribute): Document.
(Wmissing-noreturn): Remove.
* ipa-pure-const.c (warn_function_noreturn): New function.
* opts.c (decode_options): Set warn_suggest_attribute_noreturn on
warn_missing_noreturn.
* common.opt (Wsuggest-attribute=noreturn): New.
* tree-flow.h (warn_function_noreturn): Declare.
* tree-cfg.c (execute_warn_function_noreturn): Use
warn_function_noreturn.
(gate_warn_function_noreturn): New.
(pass_warn_function_noreturn): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160606 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index a96158237dd..f001e026fc9 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -192,6 +192,10 @@ Wsuggest-attribute=pure Common Var(warn_suggest_attribute_pure) Warning Warn about functions which might be candidates for __attribute__((pure)) +Wsuggest-attribute=noreturn +Common Var(warn_suggest_attribute_noreturn) Warning +Warn about functions which might be candidates for __attribute__((noreturn)) + Wswitch Common Var(warn_switch) Warning Warn about enumerated switches, with no default, missing a case |