diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-12 00:18:35 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-12 00:18:35 +0000 |
commit | 7cd909bfb21573dcd6d34570f720d9043bb83f99 (patch) | |
tree | ca99eaea2a64c9280cab7d983086bb2ab6db10a1 /gcc/tree-flow-inline.h | |
parent | aefd3b994394feac1321c3ea2aa7350538484b75 (diff) | |
download | gcc-7cd909bfb21573dcd6d34570f720d9043bb83f99.tar.gz |
2004-06-11 Steven Bosscher <stevenb@suse.de>
* 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 <dberlin@dberlin.org>
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
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 41 |
1 files changed, 41 insertions, 0 deletions
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) { |