diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-21 09:46:11 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-21 09:46:11 +0000 |
commit | 3f2930d891ecaca678a3351e31354b6e618bddaa (patch) | |
tree | f2703985f3ba0f658ced8d1bb4ac68c69a393e5a /gcc/tree-flow-inline.h | |
parent | 370ae5992fa38d0161157ce8b237174d220054bf (diff) | |
download | gcc-3f2930d891ecaca678a3351e31354b6e618bddaa.zip gcc-3f2930d891ecaca678a3351e31354b6e618bddaa.tar.gz gcc-3f2930d891ecaca678a3351e31354b6e618bddaa.tar.bz2 |
tree-flow.h (referenced_var): Move define ...
2010-07-21 Richard Guenther <rguenther@suse.de>
* tree-flow.h (referenced_var): Move define ...
* tree-flow-inline.h (referenced_var): ... here as an inline
function. Assert here ...
* tree-dfa.c (referenced_var_lookup): ... instead of here.
* tree-ssa.c (maybe_optimize_var): Check if the variable
is in referenced vars.
(execute_update_addresses_taken): Remove old broken check.
* gimple-pretty-print.c (pp_points_to_solution): Use
referenced_var_lookup.
* tree-into-ssa.c (dump_decl_set): Likewise.
From-SVN: r162368
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 7e93537..7103d23 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -98,6 +98,16 @@ next_htab_element (htab_iterator *hti) return NULL; } +/* Get the variable with uid UID from the list of referenced vars. */ + +static inline tree +referenced_var (unsigned int uid) +{ + tree var = referenced_var_lookup (uid); + gcc_assert (var || uid == 0); + return var; +} + /* Initialize ITER to point to the first referenced variable in the referenced_vars hashtable, and return that variable. */ |