diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-19 03:36:15 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-19 03:36:15 +0000 |
commit | 28982d9410803f5885d6ae4dbd16e1562b21abd2 (patch) | |
tree | 880e6bcccb700c5d4ffc320ff94104a03e895fc9 /gcc/tree-flow-inline.h | |
parent | 0526a3ffe67ff3f491e097332f73f7b986373527 (diff) | |
download | gcc-28982d9410803f5885d6ae4dbd16e1562b21abd2.tar.gz |
2005-07-18 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/22483
* tree-complex.c (create_components): Use
safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
* tree-flow-inline.h (fill_referenced_var_vec): New function.
* tree-flow.h (safe_referenced_var_iterator): New structure.
(FOR_EACH_REFERENCED_VAR_SAFE): New macro.
* tree-ssa-alias.c (setup_pointers_and_addressables): Use
safe_referenced_var iterator.
(add_type_alias): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 4874c77f686..30d13ab4ae4 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -105,7 +105,19 @@ next_referenced_var (referenced_var_iterator *iter) return NULL; return itm->to; } - + +/* Fill up VEC with the variables in the referenced vars hashtable. */ + +static inline void +fill_referenced_var_vec (VEC (tree, heap) **vec) +{ + referenced_var_iterator rvi; + tree var; + *vec = NULL; + FOR_EACH_REFERENCED_VAR (var, rvi) + VEC_safe_push (tree, heap, *vec, var); +} + /* Return the variable annotation for T, which must be a _DECL node. Return NULL if the variable annotation doesn't already exist. */ static inline var_ann_t |