From 7cd909bfb21573dcd6d34570f720d9043bb83f99 Mon Sep 17 00:00:00 2001 From: dberlin Date: Sat, 12 Jun 2004 00:18:35 +0000 Subject: 2004-06-11 Steven Bosscher * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Don't try to mark anything control dependent on the entry or exit blocks. 2004-06-11 Daniel Berlin Fix Bug 15899 Fix Bug 15460 * tree.h (SSA_NAME_VALUE): New macro. (struct tree_ssa_name): Add value_handle member. * tree-ssa-pre.c: Replaced. * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN. (struct cst_ann_d): New. (struct expr_ann_d): New. (union tree_ann_d): Add cst_ann, expr_ann. * tree-dfa.c (create_cst_ann): New function. (create_expr_ann): Ditto. * tree-flow-inline.h (cst_ann): New function. (expr_ann): Ditto. (get_cst_ann): Ditto. (get_expr_ann): Ditto.. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83010 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-flow-inline.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gcc/tree-flow-inline.h') diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 4bb5e41d318..c8cf12c1eff 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -46,6 +46,47 @@ get_var_ann (tree var) return (ann) ? ann : create_var_ann (var); } + +static inline cst_ann_t +cst_ann (tree t) +{ +#if defined ENABLE_CHECKING + if (TREE_CODE_CLASS (TREE_CODE (t)) != 'c' + || (t->common.ann + && t->common.ann->common.type != CST_ANN)) + abort (); +#endif + + return (cst_ann_t) t->common.ann; +} + +static inline cst_ann_t +get_cst_ann (tree var) +{ + cst_ann_t ann = cst_ann (var); + return (ann) ? ann : create_cst_ann (var); +} + +static inline expr_ann_t +expr_ann (tree t) +{ +#if defined ENABLE_CHECKING + if (!EXPR_P (t) + || (t->common.ann + && t->common.ann->common.type != EXPR_ANN)) + abort (); +#endif + + return (expr_ann_t) t->common.ann; +} + +static inline expr_ann_t +get_expr_ann (tree var) +{ + expr_ann_t ann = expr_ann (var); + return (ann) ? ann : create_expr_ann (var); +} + static inline stmt_ann_t stmt_ann (tree t) { -- cgit v1.2.1