From b5b6485f1cc54f21713b5b03c5d63d56839ca458 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 23 Oct 2019 20:18:31 +0200 Subject: ipa-reference.h (ipa_reference_var_uid): Move offline. * ipa-reference.h (ipa_reference_var_uid): Move offline. * ipa-reference.c (reference_vars_map_t): new type. (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars. (ipa_reference_var_uid): Implement. (varpool_node_hooks): New static var. (varpool_removal_hook): New function. (is_improper): Do not check bitmap for id==-1 (get_static_name): Update. (ipa_init): Initialize new datastructures. (analyze_function): Do not recompute ids. (propagate): Free reference_vars_to_consider. (stream_out_bitmap): Update. (ipa_reference_read_optimization_summary): Update. From-SVN: r277345 --- gcc/ipa-reference.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/ipa-reference.h') diff --git a/gcc/ipa-reference.h b/gcc/ipa-reference.h index 3be02fb..6563db6 100644 --- a/gcc/ipa-reference.h +++ b/gcc/ipa-reference.h @@ -25,12 +25,7 @@ along with GCC; see the file COPYING3. If not see bitmap ipa_reference_get_not_read_global (struct cgraph_node *fn); bitmap ipa_reference_get_not_written_global (struct cgraph_node *fn); void ipa_reference_c_finalize (void); - -inline int -ipa_reference_var_uid (tree t) -{ - return DECL_UID (symtab_node::get (t)->ultimate_alias_target (NULL)->decl); -} +int ipa_reference_var_uid (tree t); #endif /* GCC_IPA_REFERENCE_H */ -- cgit v1.1