aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-02-02 20:58:39 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-02-02 20:58:39 +0000
commit7ded35b4c2c8ebf53faa42987703616e2a813421 (patch)
tree8186ca6684edf68798355acd2929c8c432d3b55b /gcc/tree-flow.h
parentd01da8bd5ea37af2e5b6d382e489de7a73579a01 (diff)
downloadgcc-7ded35b4c2c8ebf53faa42987703616e2a813421.zip
gcc-7ded35b4c2c8ebf53faa42987703616e2a813421.tar.gz
gcc-7ded35b4c2c8ebf53faa42987703616e2a813421.tar.bz2
re PR tree-optimization/19578 (function pointer propagation fails for noreturn functions (part 2))
PR tree-optimization/19578 * tree-flow.h (modified_noreturn_calls): Declare. (noreturn_call_p): Declare. * tree-flow-inline.h (noreturn_call_p): New function. (modify_stmt): Add modified noreturn calls to modified_noreturn_calls. * tree-cfg.c (modified_noreturn_calls): New variable. (cleanup_control_flow): Use noreturn_call_p. Split basic blocks that contain a mid-block noreturn call. * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls. From-SVN: r94610
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 d8d64fb..b0d0c0f 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -297,6 +297,8 @@ union tree_ann_d GTY((desc ("ann_type ((tree_ann_t)&%h)")))
struct stmt_ann_d GTY((tag ("STMT_ANN"))) stmt;
};
+extern GTY(()) VEC(tree) *modified_noreturn_calls;
+
typedef union tree_ann_d *tree_ann_t;
typedef struct var_ann_d *var_ann_t;
typedef struct stmt_ann_d *stmt_ann_t;
@@ -310,6 +312,7 @@ static inline stmt_ann_t get_stmt_ann (tree);
static inline enum tree_ann_type ann_type (tree_ann_t);
static inline basic_block bb_for_stmt (tree);
extern void set_bb_for_stmt (tree, basic_block);
+static inline bool noreturn_call_p (tree);
static inline void modify_stmt (tree);
static inline void unmodify_stmt (tree);
static inline bool stmt_modified_p (tree);