diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-24 12:33:49 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-24 12:33:49 +0000 |
commit | 1b55a29e6f18009cb3cd698e03be48d770398679 (patch) | |
tree | 75e0e3fd63130e66ee5ef53fc1590ec6a8160b24 /gcc/tree-flow-inline.h | |
parent | a2623f6b69da259d9fd23be2a789aa271f5ba6c7 (diff) | |
download | gcc-1b55a29e6f18009cb3cd698e03be48d770398679.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187829 138bc75d-0d04-0410-961f-82ee72b054a4
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 8627fc37250..748a97c236e 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; } |