aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-06-11 14:29:53 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-06-11 12:29:53 +0000
commit7ea6b6cf97363a0f4dfb1a72a7cda31c59350bbc (patch)
treeb9d5e6003412755a9b91c08dbafc60f251457051 /gcc/tree-flow.h
parent2ee3cb3591bfa67a216efe877ddcfca65851bbc8 (diff)
downloadgcc-7ea6b6cf97363a0f4dfb1a72a7cda31c59350bbc.zip
gcc-7ea6b6cf97363a0f4dfb1a72a7cda31c59350bbc.tar.gz
gcc-7ea6b6cf97363a0f4dfb1a72a7cda31c59350bbc.tar.bz2
invoke.texi (Wsuggest-attribute): Document.
* 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. From-SVN: r160606
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r--gcc/tree-flow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h
index f28ef31..1830ffa 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -872,6 +872,9 @@ unsigned int execute_free_datastructures (void);
unsigned int execute_fixup_cfg (void);
bool fixup_noreturn_call (gimple stmt);
+/* In ipa-pure-const.c */
+void warn_function_noreturn (tree);
+
#include "tree-flow-inline.h"
void swap_tree_operands (gimple, tree *, tree *);