diff options
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 08dc0ef..d48f205 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -421,6 +421,16 @@ phi_arg_from_edge (tree phi, edge e) return -1; } +/* Mark VAR as used, so that it'll be preserved during rtl expansion. */ + +static inline void +set_is_used (tree var) +{ + var_ann_t ann = get_var_ann (var); + ann->used = 1; +} + + /* ----------------------------------------------------------------------- */ /* Return true if T is an executable statement. */ @@ -453,9 +463,7 @@ is_label_stmt (tree t) static inline void set_default_def (tree var, tree def) { - var_ann_t ann = var_ann (var); - if (ann == NULL) - ann = create_var_ann (var); + var_ann_t ann = get_var_ann (var); ann->default_def = def; } |