diff options
author | Richard Guenther <rguenther@suse.de> | 2012-05-24 12:33:49 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-05-24 12:33:49 +0000 |
commit | 0faa05629e036ed79335e55c1473458c642278a8 (patch) | |
tree | 75e0e3fd63130e66ee5ef53fc1590ec6a8160b24 /gcc/tree-flow-inline.h | |
parent | 0d5a9e784849c3fe7ae59c4a328ccffa60b1d32f (diff) | |
download | gcc-0faa05629e036ed79335e55c1473458c642278a8.zip gcc-0faa05629e036ed79335e55c1473458c642278a8.tar.gz gcc-0faa05629e036ed79335e55c1473458c642278a8.tar.bz2 |
tree-flow.h (create_var_ann): Remove.
2012-05-24 Richard Guenther <rguenther@suse.de>
* tree-flow.h (create_var_ann): Remove.
* tree-dfa.c (create_var_ann): Remove and inline into its
single caller ...
(add_referenced_var_1): ... here.
* varpool.c (add_new_static_var): Do not call add_referenced_var
for global vars.
* gimple-fold.c (canonicalize_constructor_val): Likewise.
* tree-switch-conversion.c (build_one_array): Likewise.
* tree-profile.c (gimple_gen_ic_profiler): Likewise.
* tree-flow-inline.h (gimple_referenced_vars): Guard against
NULL fn argument.
* tree-inline.c (remap_gimple_op_r): Likewise. Check
gimple_referenced_vars instead of gimple_in_ssa_p.
(copy_tree_body_r): Likewise.
(setup_one_parameter): Likewise.
(declare_return_variable): Likewise.
(tree_function_versioning): Likewise.
From-SVN: r187829
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 8627fc3..748a97c 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -39,7 +39,7 @@ gimple_in_ssa_p (const struct function *fun) static inline htab_t gimple_referenced_vars (const struct function *fun) { - if (!fun->gimple_df) + if (!fun || !fun->gimple_df) return NULL; return fun->gimple_df->referenced_vars; } |